Exception in thread "main" java.lang.NoClassDefFoundError during starting your Tomcat in Eclipse

6,047 views
Skip to first unread message

areeg samir

unread,
Jan 27, 2013, 6:26:49 AM1/27/13
to bpelunde...@googlegroups.com
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:

  1. Double click on the installed Ode v1.x Server in the 'Server' View.
  2.  Click on Open launch configuration. figure1
  3. Choose  Classpath tab > Add External JARs > [your TOMCAT_DIR]\bin\tomcat-juli.jar. figure 2,3,4
  4.  Then Apply then OK.
  5. 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

Kesten Broughton

unread,
Feb 16, 2013, 12:20:58 PM2/16/13
to bpelunde...@googlegroups.com
thanks! worked for me.

kesten

Areeg Samir

unread,
Feb 18, 2013, 7:11:40 AM2/18/13
to bpelunde...@googlegroups.com
you are welcome

Kesten Broughton

unread,
Feb 18, 2013, 4:13:59 PM2/18/13
to bpelunde...@googlegroups.com
Strange.  The fix works to start the ode server.

However, when I stop or restart the ode server I get the error again by right-clicking on the ode server in the Eclipse Servers window:
--------------

Exception in thread "main" 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(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

... 1 more

----------

And when I close eclipse it hangs with an error about .metadata/logging and i have to use Force Quit to kill it.


kesten



On Sunday, January 27, 2013 5:26:49 AM UTC-6, Areeg Samir wrote:

Sweta Sahu

unread,
Jun 10, 2014, 2:27:16 PM6/10/14
to bpelunde...@googlegroups.com
solution is worked for me

Debranjan Pal

unread,
Dec 4, 2015, 12:49:36 PM12/4/15
to BPELunderEclipse
Thanks you very much..After a lots of searching the solution also working for me...
Reply all
Reply to author
Forward
0 new messages