Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
login.jsp (again)
rblaust
I know this has been discussed before but even after reading all the threads on this and following the steps that "should" work I still have not had success. In TeaSite 5.5.2 I am modifying the /iw-home/httpd/webapps/webdesk/teamsite/login.jsp. After I modify the file (owned by root/other and perms are 644) I ran $sudo /iw-home/install/install_webapps.ipl -c webdesk
This returned ..Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
Lastly I restarted the ui by running iwuiboot restart
My changes to the login page do not show up.
What am I missing?
Thanks
Randy
Find more posts tagged with
Comments
Migrateduser
I might not be able to help, but what aspect of login.jsp are you trying to modify?
Dave
Current Environment(s):
(1) TS 6.1 SP2 on W2K3
(2) TS 6.1 SP1 on W2K
(3) TS 6.1 SP2 on Win2K
rblaust
I am trying to add some text. This was done for version 5.0 by I have not been able to make it work in 5.5.2. Here is the code snippet
<table border="0"
cellpadding="0"
cellspacing="2"
width="50%"
align="center">
<tr><td>
You are about to access a United States government computer network
intended for authorized users only. You should have no expectation of privacy in
your use of this network. Use of this network constitutes consent to monitoring,
retrieval, and disclosure of any information stored within the network for any
purpose including criminal prosecution.
</td></tr>
<tr><td><BR></td></tr>
</table>
Thanks
Randy
Gregg Faus
Did you restart the servletd daemon as well?
rblaust
Yes...I ran
/iw-home/private/bin/iwuiboot restart
and then I ran
/iw-home/bin/iwreset -ui
and still my changes did not show
Johnny
Look to see if the time stamp changed for that file in IWHOME/servletd/work/
might need to run it with -u or -f (not really sure) or you could delete (backup) the directories under there when you've stopped the servlet engine.
John Cuiuli
rblaust
I tried your suggestion but the servletd/work directory is not updating. When I run the install_webapps.ipl when it get to "Configuring JSPs" I get the following message: Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details.
Randy
shanon
that message about deprecation is no big deal, it just means that some of the code is using old APIs ... everything will still work.
if the directory isn't getting updated, then tomcat's not looking for an updated jsp.
try this:
1. stop servletd.
2. delete all the stuff under the "work" directory... you can back it up first, but it's just tomcat's cache of jsp files... it will get regenerated.
3. restart the servletd
4. hit the login page.
you should see it.
Shanon Levenherz
Mercer eBusiness Team
shanon.levenherz@mercer.com
http://www.mercerhr.com
rblaust
OK...now I'm confused. As you suggested I stopped servletd, moved everything in the /work directory to another location, restarted servletd and hit the login page. The changes I made to the login.jsp still do not show up and the /work directory is still empty (but I was able to hit the login page and login)
Randy
shanon
Okay Randy, I just went and did it myself because I wanted to be sure ...
It turns out that the servletd/work directory isn't used for the webdesk web applicatoin because all of the .class files are precompiled by the install_webapps.ipl script.
As such, there are a variety of ways to add in your changes, but I feel the easiest is to do the following:
1. Make a backup copy of iwhome/httpd/webapps/webdesk.war and store it somewhere safe.
2. Modify iwhome/httpd/webapps/webdesk/teamsite/login.jsp
3. Use the jar utility to put this jsp into webdesk.war:
a. cd <iw-home>/httpd/webapps/webdesk
b. jar uvf ../webdesk.war teamsite/login.jsp
4. Run install_webapps.ipl again to install the newly mod'd webdesk.war:
install_webapps.ipl -f webdesk
Worked just fine for me, good luck!
Oh, and there is one downside, you may need to repeat this process after applying a patch to the system because the login.jsp page may be overwritten. This is the price you must pay for editing system files.
Of course, if you have more time, you can easily code a script to automate this process for each file that you change.
Shanon
Shanon Levenherz
Mercer eBusiness Team
shanon.levenherz@mercer.com
http://www.mercerhr.com
Edited by shanon on 02/08/05 08:21 PM (server time).
rblaust
Thanks Shannon I appreciate your helping out here. There must be another step somewhere. I performed the steps you outlined but I am getting an unexpected result.
1. Make a backup copy of iwhome/httpd/webapps/webdesk.war and store it somewhere safe.
done
2. Modify iwhome/httpd/webapps/webdesk/teamsite/login.jsp
done (with a backup copy of the modified login.jsp stored in another directory)
3. Use the jar utility to put this jsp into webdesk.war:
a. cd <iw-home>/httpd/webapps/webdesk
done
b. jar uvf ../webdesk.war teamsite/login.jsp
done...
At this point everything is still good and working as expected.
4. Run install_webapps.ipl again to install the newly mod'd webdesk.war:
install_webapps.ipl -f webdesk
After running install_webapps.ipl as above the /iw-home/httpd/webapps/webdesk/teamsite/login.jsp is reverted back to the original version which does not contain my modifications.
Randy
shanon
well, first off, i did this on windows vs. solaris so i'm not sure, although i would bet it's the same procedure since we're in java-land.
ummm, just double check that everything worked:
1. cd /tmp
2. mkdir webdesk
3. cd webdesk
4. jar xvf <iw-home>/httpd/webapps/webdesk.war .
5. check that the login.jsp page has your modifications.
if it does, then i'm really not sure what's going on with that procedure...
however, the desired effect is to have a login.class file in the webapps/webdesk/WEB-INF/classes/teamsite directory that reflects the changes in your login jsp. to do this, you need to run a jsp compiler on login.jsp and have the resulting class(es) stored in the aforementioned directory...
depending on how far you want to take this, you can look into the install_webapps.ipl file for the jspcompile function. just insert a print stmt right before the system call that compiles the jsps. the reason i say use a print stmt is because you'll need to get the complete classpath in order to successfully compile the class. run install_webapps.ipl -f webdesk and the jsp compilation command will be printed to stdout. save that print stmt and run it manually on the mod'd login.jsp. this will update the login.class in webapps/webdesk/WEB-INF/classes/teamsite and then you'll need to restart servletd and it will definitely work.
obviously the latter method is a pain in the ... however it will certainly work.
good luck!
shanon
Shanon Levenherz
Mercer eBusiness Team
shanon.levenherz@mercer.com
http://www.mercerhr.com