-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Frank,
On 12/7/2010 12:59 PM, frank wrote: > I set CATALINA_BASE and CATALINA_HOME to my directory like: > > CATALINA_BASE=/usr/share/mydir > CATALINA_HOME=/usr/share/mydir Why did you set either of these environment variables? IF you aren't running multiple instances of Tomcat from a single base install, you never need to set CATALINA_BASE and Tomcata auto-detects CATALINA_HOME when you run any of the startup scripts. > then link subdirs (conf/, bin/ ...)of tomcat6 to $CATALINA_HOME Okay, what is "tomcat6" and why did you have to link directories at all? Aren't those directories already there? >, the > "lib/" points to /usr/share/tomcat6/lib. IMO, > tomcat6-servlet-2.5-api.jar, tomcat6-jsp-2.1-api-6.0.26.jar, > tomcat6-el-2.1-api-6.0.26.jar should be automatically be found since > they are located at $CATALINA_HOME/lib/. In fact this doesn't work, I > got errors (see paste at bottom). However, if I added full path of these > JARs to classpath, things worked. I am puzzled, why common class loader > doesn't get these files? thank you. I think what you want is: $ export CATALINA_BASE=/usr/share/mydir $ vi ${CATALINA_BASE}/conf/server.xml $ mkdir ${CATALINA_BASE}/webapps $ cp mywar.war ${CATALINA_BASE}/webapps/ $ export CATALINA_HOME=/usr/share/tomcat6 $ ${CATALINA_HOME}/bin/startup.sh That should be all you need. As Pid mentions, it looks like you're using a re-packaged version of Tomcat. You might want to consider reading the documentation for that package maintainer's version of Tomcat to see how you are supposed to run multiple instances. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0BPywACgkQ9CaO5/Lv0PAJwwCcCP+b7NCANSNgBQUUGdRYdOma VBEAnjjKmH1n4OyHgDL8XdryPpcMyHnM =SG61 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org