LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Debian Tomcat7 Won't Start (http://www.linuxquestions.org/questions/linux-server-73/debian-tomcat7-wont-start-4175428056/)

mpapet 09-19-2012 04:32 PM

Debian Tomcat7 Won't Start
 
I'm a complete newbie to Tomcat and I'm trying to get Debian's Tomcat7 packages to run on a Debian Testing installation.

So far the only thing I've tried is "apt-get install --reinstall tomcat7 tomcat7-common tomcat7-admin tomcat7-user
"

/etc/init.d/tomcat7 start returns
Code:

tail /var/log/tomcat7/catalina.out
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:426)

That's all that is logged. I'm at a total loss here as I'm not a java/tomcat admin until now.

arun5002 09-20-2012 12:45 AM

I Guess it could be java installation ? Did you install java package before starting up tomcat application

These command shows you whether java has benn installed properly are not

#java -version

mpapet 09-20-2012 10:45 AM

An update, I installed tomcat7 on a VM and it works just fine, so there's something different about this machine in particular. I got the packages identical on both machines and it still won't run.

I think it has to do with a java or tomcat path variables because the machine that won't start tomcat7 had a liferay portal all-in-one installation on /opt/liferay on it for a little bit.

I double-checked any system-wide variables on both machines with printenv and there are no differences.

Running /usr/share/tomcat7/bin/configtest.sh returns:

Code:

configtest.sh
Using CATALINA_BASE:  /usr/share/tomcat7
Using CATALINA_HOME:  /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME:        /usr
Using CLASSPATH:      /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:426)

On the VM where Tomcat7 works, there's no ClassNotFoundException error. Ideas?


All times are GMT -5. The time now is 09:08 AM.