Apache ode 添加到eclipse的错误

启动时报错:

Java Virtual Machine Launcher displays:

"could not find the main class : org,apache.catalina.startup.Bootstrap. Program will exist."

Message from console:

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

解决:1.双击servers里的ODE ,这应该打开服务器配置编辑器,

2. 点击 "Open launch configuration" 链接

3. 选择"Classpath"  -   "Add externals jars..."

4. 加入 $CATALINA_HOME/bin 下的 tomcat-juli.jar

感谢Bob老兄

http://www.eclipse.org/forums/index.php/m/998410/

相关推荐