If you are using Tomcat v.6 or v.7, you probably get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory 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:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 1 more Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.
This error occurs because it misses the tomcat-juli.jar in the Launch environment
So to solve it do the following steps:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory 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:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 1 more Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.
This error occurs because it misses the tomcat-juli.jar in the Launch environment
So to solve it do the following steps:
- Double click on the installed Ode v1.x Server in the 'Server' View.
- Click on Open launch configuration. figure1
- Choose Classpath tab > Add External JARs > [your TOMCAT_DIR]\bin\tomcat-juli.jar. figure 2,3,4
- Then Apply then OK.
- Start your Ode v1.x Server in the Server View by right clicking on it > Start or press the start icon.
Ode server at localhost |
click on User Entries then add external jars |
Choose tomcat-juli.jar |
click Apply the OK |
Start your server up by clicking on start or icon |
Comments
Post a Comment