Unable to Start Tomcat 6 with Catalina Base Set
> I installed Tomcat 6.0.16 to /usr/local/apache-tomcat-6.0.16 (this is > my CATALINA_HOME). Then I made an instance of tomcat at > /var/www/tomcat-instances/default-tomcat6 (this is my CATALINA_BASE). > > My CATALINA_BASE/bin/startup.sh looks like this: > > CATALINA_BASE=/var/www/tomcat-instances/default-tomcat6 > export CATALINA_BASE > > CATALINA_HOME=/usr/local/apache-tomcat-6.0.16 > export CATALINA_HOME > > CATALINA_OPTS="-Xms768m -Xmx768m -XX:MaxPermSize=768m" > export CATALINA_OPTS > > JAVA_HOME=/usr/local/java > export JAVA_HOME > > $CATALINA_HOME/bin/startup.sh > > I am getting the following error in my CATALINA_BASE/logs/catalina.out > file: > > java.lang.ClassNotFoundException: > org.apache.catalina.startup.Catalina > at > java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native > Method) > at > java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at > org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) > > My CATALINA_BASE contains the following files: > > bin > bin/shutdown.sh > bin/startup.sh > conf > conf/Catalina > conf/Catalina/localhost > conf/Catalina/localhost/manager.xml > conf/Catalina/localhost/admin.xml > conf/Catalina/dumbsterdiver.nicholsonkovac.com > conf/Catalina/dumbsterdiver.nicholsonkovac.com/manager.xml > conf/Catalina/dumbsterdiver.nicholsonkovac.com/admin.xml > conf/server.xml > conf/server.xml.1 > conf/catalina.policy > conf/catalina.properties > conf/context.xml > conf/logging.properties > conf/web.xml > logs > shared > shared/classes > shared/lib > temp > work > > I am executing CATALINA_BASE/bin/startup.sh as root. When I execute > CATALINA_HOME/bin/startup.sh, tomcat starts up fine. > > I tried copying CATALINA_HOME/lib to CATALINA_BASE/lib, and I got the > same error. > > I really need help with this issue. > Thanks! > - > Stephen Wick > Kansas City, MO USA
Re: Unable to Start Tomcat 6 with Catalina Base Set
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen Wick wrote: |> I installed Tomcat 6.0.16 to /usr/local/apache-tomcat-6.0.16 (this is |> my CATALINA_HOME). Then I made an instance of tomcat at |> /var/www/tomcat-instances/default-tomcat6 (this is my CATALINA_BASE). |> |> My CATALINA_BASE/bin/startup.sh looks like this: |> |> CATALINA_BASE=/var/www/tomcat-instances/default-tomcat6 |> export CATALINA_BASE |> |> CATALINA_HOME=/usr/local/apache-tomcat-6.0.16 |> export CATALINA_HOME |> |> CATALINA_OPTS="-Xms768m -Xmx768m -XX:MaxPermSize=768m" |> export CATALINA_OPTS |> |> JAVA_HOME=/usr/local/java |> export JAVA_HOME |> |> $CATALINA_HOME/bin/startup.sh This looks okay. |> I am executing CATALINA_BASE/bin/startup.sh as root. :( |> When I execute CATALINA_HOME/bin/startup.sh, tomcat starts up fine. Strange. So, if you set all those environment variables directly on the command-line, and then run CATALINA_HOME/bin/startup.bat, everything works okay? All the scripts I've ever written set only JAVA_HOME and CATALINA_BASE. Try /not/ setting CATALINA_HOME (although that should make no difference at all). Also, try adding some 'echo' statements to CATALINA_HOME/bin/catalina.sh to print out the values of various environment vars, especially CLASSPATH (which you should definitely not set yourself... just observe what path is determined). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhNW8oACgkQ9CaO5/Lv0PBIzgCfebd9hmvocNEwxyLSzjjlrQhU QqgAoIkviT22UDOBB8L8mLWdu6B/vCts =uQJF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]