Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » tomcat failed to start (ubuntu dapper + tomcat5 + eclipse3.2)
tomcat failed to start (ubuntu dapper + tomcat5 + eclipse3.2) [message #181760] Sat, 21 October 2006 05:42 Go to next message
Eclipse UserFriend
Originally posted by: jaguar.fender.yahoo.com

Hi all,

I'm running Ubuntu Dapper and have Tomcat (tomcat5) installed via Apt.
My Eclipse version is 3.2.0 (manually download)

I created a tomcat server(5.0) in "Servers" view but when i started it,
the following error appeared in the console:

Bootstrap: Class loader creation threw exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.tomcat.util.compat.JdkCompat.<clinit>(JdkCompat.java:55)
at
org.apache.catalina.startup.ClassLoaderFactory.<clinit>(ClassLoaderFactory.java:63)
at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Boots trap.java:103)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:19 6)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:40 2)



i even changed /etc/default/tomcat5 to start tomcat as the same user as
eclipse (me) but had no luck.


do i have to add any .jar to path and how to?


anyone have successfully started tomcat from eclipse using packaged
install of tomcat?


PS:
How to find out whether i'm "Run modules directly..."?



Thx in advance.
Re: tomcat failed to start (ubuntu dapper + tomcat5 + eclipse3.2) [message #181789 is a reply to message #181760] Mon, 23 October 2006 12:12 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
In the standard binary release of Tomcat, the MANIFEST.MF file in
bootstrap.jar specifies the additional jars required to boot Tomcat.
The Tomcat plug-in in Web Tools takes advantage of this by only
including bootstrap.jar on the classpath from the Tomcat installation.
This allows Tomcat to define the remainder of the classpath and helps
insulate the Tomcat plug-in from changes in Tomcat.

However, in a packaged install, this classpath is typically removed from
the MANIFEST.MF so that packaged installs of these dependencies can be
used. The classpath is instead built in a batch file that is part of
Tomcat startup, probably catalina.sh. You will need to examine this
file and see what additional jars are being included on the classpath
and where they are located. Most likely, adding commons-logging-api.jar
will be enough to get you past this current hurdle.

Cheers,
Larry

Gilbert wrote:
> Hi all,
>
> I'm running Ubuntu Dapper and have Tomcat (tomcat5) installed via Apt.
> My Eclipse version is 3.2.0 (manually download)
>
> I created a tomcat server(5.0) in "Servers" view but when i started it,
> the following error appeared in the console:
>
> Bootstrap: Class loader creation threw exception
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> at org.apache.tomcat.util.compat.JdkCompat.<clinit>(JdkCompat.java:55)
> at
> org.apache.catalina.startup.ClassLoaderFactory.<clinit>(ClassLoaderFactory.java:63)
>
> at
> org.apache.catalina.startup.Bootstrap.initClassLoaders(Boots trap.java:103)
> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:19 6)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:40 2)
>
>
>
> i even changed /etc/default/tomcat5 to start tomcat as the same user as
> eclipse (me) but had no luck.
>
>
> do i have to add any .jar to path and how to?
>
>
> anyone have successfully started tomcat from eclipse using packaged
> install of tomcat?
>
>
> PS:
> How to find out whether i'm "Run modules directly..."?
>
>
>
> Thx in advance.
Previous Topic:WTP
Next Topic:New JUnit Servlet Test Case caused 100% cpu loop
Goto Forum:
  


Current Time: Mon Nov 24 18:05:10 GMT 2014

Powered by FUDForum. Page generated in 0.03064 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software