You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by 浪迹寰尘 <la...@qq.com> on 2012/07/11 17:15:55 UTC
Apache-tomcat-7.0.29 can't startup in my computer.
hi,
I use windows xp OS.
The tomcat(apache-tomcat-7.0.29) had works very well until last week.
But now it can't startup .
The informations in the log file are as bellow:
"
Exception in thread "main"
2012-07-11 21:54:22 Commons Daemon procrun stderr initialized
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
Exception in thread "main"
"
It seems that I don't add the "tomcat-juli.jar" in the "classpath" system parameters, but I has did that.
I even edit a helloworld.java as bellow:
"
import org.apache.juli.logging.LogFactory;
public class hello_world{
public static void main( String[] args ){
System.out.println( "Hello world!" );
}
}
"
I compile helloworld.java and it is accepted by the compile which is means that I do add "tomcat-juli.jar" in the "classpath" system parameters.
Looking forword to your answer!
Great thx!
jack
Re: Apache-tomcat-7.0.29 can't startup in my computer.
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
浪迹寰尘,
On 7/11/12 11:15 AM, 浪迹寰尘 wrote:
> Exception in thread "main" 2012-07-11 21:54:22 Commons Daemon
> procrun stderr initialized java.lang.NoClassDefFoundError:
> org/apache/juli/logging/LogFactory at
> org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.juli.logging.LogFactory at
> java.net.URLClassLoader$1.run(Unknown Source) at
> java.net.URLClassLoader$1.run(Unknown Source) at
> java.security.AccessController.doPrivileged(Native Method) at
> java.net.URLClassLoader.findClass(Unknown Source) at
> java.lang.ClassLoader.loadClass(Unknown Source) at
> java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more
You look like you have a broken Tomcat installation. Did you install
using the ZIP of EXE packages?
The value of your OS's CLASSPATH variable is not relevant.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/9oXsACgkQ9CaO5/Lv0PB6/wCghkmxRIM83vmi8d3AF+hrR8KB
q+kAoLg2NJIT6BFM8c3RlnwxxcjBpFVY
=7meA
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache-tomcat-7.0.29 can't startup in my computer.
Posted by Isuru Ranawaka <ir...@gmail.com>.
Hi,
This error can be appeared when that class is seen at compile time and not
in run time or if u add and remove relevant jar file more than one
time.then there can be a possibility that at run time it picks a class
which was not picked at compile time.