RE: AW: Setting Context Path of Webapp as Root on Tomcat 5.5.3
Here is what worked for me (Tomcat 3.3.2 ) --> in apps-198.xxx.xxx.xxx.xml in the conf directory. I guess that it can be defferent for tomcat 5.5.3. But we never know! Regards -Original Message- From: Jojo Paderes [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 1:24 PM To: [EMAIL PROTECTED] Subject: Re: AW: Setting Context Path of Webapp as Root on Tomcat 5.5.3 Here's my context.xml file: Seems to be not working either. When I access the root context (http://localhost), I still get the Tomcat default page and not my webapp's index page. I'm deploying my webapp on a default Tomcat 5.5.3 setup. I will try this on 5.5.4. Am I missing something here like some configurations on the server.xml or web.xml under $CATALINA_HOME/conf/? The simplest solution, as Nick suggested, is to rename my webapp WAR file to ROOT.war. I'm looking at a solution similar on a typical EAR file deployment on a J2EE app (i.e. Jboss) where I can specify my webapp to use the root context path in the application.xml file. On Fri, 5 Nov 2004 13:00:15 +0100, Nick Pellow <[EMAIL PROTECTED]> wrote: > Hi Jojo, > > I wanted to do the same as you. I got it to work, > when the context path is the empty string "". > ie. > > What however was annoying, was that tomcat then unpacks > this war in a directory called ROOT. Hence, when you restart > tomcat, it deploys the webapp under ROOT with context of /, > *and*, the webapp called myrootapp.war with context of /myrootapp . > > Problem was, that I have my META-INF/context.xml in myrootapp. > This seems to cause a lot of confusion for tomcat. > > The cleanest solution I found, was to call myrootapp.war ROOT.war... > > I would like to know a neater solution if there is one.. > > Cheers, > nick > > >-Ursprungliche Nachricht- > >Von: Jojo Paderes [mailto:[EMAIL PROTECTED] > >Gesendet: Freitag, 5. November 2004 12:45 > >An: [EMAIL PROTECTED] > >Betreff: Setting Context Path of Webapp as Root on Tomcat 5.5.3 > > > > > >Hi, > > > >Is there a way to set a webapp to use the root context path in Tomcat > >5.5.3. For example, I want to access by webapp named "mywebapp" by > >using this url: > > > >http://mydomain.com/ > > > >instead of this: > > > >http://mydomain.com/mywebapp/ > > > >In a J2EE EAR file, I can set the webapp to use the root context path > >by setting the value to /. I'm looking for a similar > >way on WAR file deployed on Tomcat. > > > >I was able to do this by just renaming my webapp to ROOT, but I prefer > >something else. Any suggestions? > > > > > >regards, > > > >jOjO - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with LD_LIBRARY_PATH --(SOLVED)-
All, The problem is solved. rather than to call perl /usr/PP/perl/auth I call a ksh script setting the environment and exec perl with the command line. It work now. Many thanks to everybody, specially those who responded. Regards Andre Her BlarenbergLaan,2 2800 Mechelen Belgium Tel : +32 (0)15 78 6887 Fax: +32 (0)15 78 5405 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with LD_LIBRARY_PATH !
for the moment I am starting tomcat with $TOMCAT_HOME/bin/startup. I have included # Shell script to startup the server LD_LIBRARY_PATH="/usr/lib:/usr/local/lib/:/usr/local/perl5/lib:/usr/java/lib " ;export LD_LIBRARY_PATH TOMCAT_HOME="/usr/tomcat/tomcat" ;export TOMCAT_HOME BASEDIR=`dirname $0` I have exported LD_LIBRARY_PATH already from my .bashrc I have placed context_param in conf/apps-19x.xx.xx.xml and init-param in WEB-INFO/web.xml But so far, no results Also, the perl script (with the $ENV{'LD_LIBRARY_PATH'} =.. ) is working when I call it manually eg: /usr/local/bin/perl user_auth even if I first do a unset LD_LIBRARY_PATH BTW: I am running tomact on a Solaris 9 server. Regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 2:23 PM To: Tomcat Users List Subject: Re: problems with LD_LIBRARY_PATH ! >>I have tried every thing I could think of, even including a >>$ENV{'LD_LIBRARY_PATH'} = "/usr/lib:/usr/local/lib:/usr/local/perl/lib"; >>in the perl script, but still fails loading libraries *.so !! >> >>Any idea someone !? >>Many thanks in advances >>Regards >>Andre >> >> How do you start your Tomcat?! Trough a init.d script, or from bash, sh or another shell? If it is from a shell you have to be sure that your LD_LIBRARY_PATH is set _before_ you start Tomcat, ie try this: LD_LIBRARY_PATH="/usr/lib:/usr/local/lib:/usr/local/perl/lib" /path/to/tomcat/bin/startup.sh Perhaps this happens because you do not call 'export' when setting an env variable. You have to otherwise it will only exist in the moment you press enter... Claus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with LD_LIBRARY_PATH !
> All, > > I have ported a web application normally running on NT4 / ISS /Jrun to a > tomcat 3.3.2. > The results are mixed. > servlets seems top work OK but some of them do a call to a perl script. > The perl script is well called but > the environment LD_LIBRARY_PATH is not set, so loading of modules and > library fails. > > I have tried every thing I could think of, even including a > $ENV{'LD_LIBRARY_PATH'} = "/usr/lib:/usr/local/lib:/usr/local/perl/lib"; > in the perl script, but still fails loading libraries *.so !! > > Any idea someone !? > Many thanks in advances > Regards > Andre > > > > Andre Her > BlarenbergLaan,2 > 2800 Mechelen > Belgium > Tel : +32 (0)15 78 6887 > Fax: +32 (0)15 78 5405 > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]