jeudi 20 septembre 2012

Problem: Server Ode v1.x Server at localhost failed to start.

when you want to start the Apache ODE server, you may have this problem:

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more


Analyse: miss the tomcat-juli.jar in the Classpath
check by: echo $CLASS_PATH
if the reply is empty, that is.
so you can add the tomcat-juli.jar into the classpath.

Solution:
1. double-click on the ODE server entry in the Servers view; this should open the server configuration editor

http://wiki.eclipse.org/images/0/0b/Server-config-editor.png

2. in the configuration editor, click the "Open launch configuration" link
3. select "Classpath" in the launch configuration dialog and then "Add externals jars..."
4. navigate to your $CATALINA_HOME/bin and select the tomcat-juli.jar

http://wiki.eclipse.org/images/thumb/7/77/Launch-config.png/583px-Launch-config.png

Hope that helps
Bob


this solution comes from the eclipse forum:
http://www.eclipse.org/forums/index.php/m/760341/

-

3 commentaires: