Skip to main content



      Home
Home » Newcomers » Newcomers » Can't start Tomcat 7 server from inside the IDE
Can't start Tomcat 7 server from inside the IDE [message #710058] Thu, 04 August 2011 12:29 Go to next message
Eclipse UserFriend
I'm using Eclipse - Indigo Release and Tomcat 7.0.19 with Windows installer.
And for two days I'm trying to launch the server from the IDE!!!!
I'm on a verge of crying!

The server works normally when started outside of the IDE, but when I try to start the server from the servers list, I get these errors.

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 sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	... 1 more
Exception in thread "main" 


And from the Java Virtual Machine pop up launcher , I get:
"Could not find the class : org.apache.catalina.startup.Bootstrap  
Program will now exit"

Can someone help me with this?
Re: Can't start Tomcat 7 server from inside the IDE [message #710081 is a reply to message #710058] Thu, 04 August 2011 12:47 Go to previous messageGo to next message
Eclipse UserFriend
On 04-Aug-11 10:29, ivan wrote:
> I'm using Eclipse - Indigo Release and Tomcat 7.0.19 with Windows
> installer.
> And for two days I'm trying to launch the server from the IDE!!!!
> I'm on a verge of crying!
>
> The server works normally when started outside of the IDE, but when I
> try to start the server from the servers list, I get these errors.
>
> 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 sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> ... 1 more
> Exception in thread "main"
> And from the Java Virtual Machine pop up launcher , I get:
>
> "Could not find the class : org.apache.catalina.startup.Bootstrap
> Program will now exit"
>
> Can someone help me with this?

Are you perhaps missing juli-x.y.z.jar (for example, juli-6.0.13.jar) in
your project? Is it in the deployment assembly?

(This question more properly belongs in the Eclisep web tools forum.)
Re: Can't start Tomcat 7 server from inside the IDE [message #710116 is a reply to message #710081] Thu, 04 August 2011 14:11 Go to previous messageGo to next message
Eclipse UserFriend
I haven't changed anything regarding .jar files. Just properly added the server.

I'm just trying to launch the server, irregardless of the project, it doesn't work.
Re: Can't start Tomcat 7 server from inside the IDE [message #710205 is a reply to message #710116] Thu, 04 August 2011 15:48 Go to previous messageGo to next message
Eclipse UserFriend
On 04-Aug-11 12:11, ivan wrote:
> I haven't changed anything regarding .jar files. Just properly added the
> server.
>
> I'm just trying to launch the server, irregardless of the project, it
> doesn't work.

I may have misunderstood then. Nevertheless, it appears to be missing
org.apache.juli.logging.LogFactory. When a ClassNotFoundException
happens to me, I look for a JAR that furnishes it, the best JAR if there
is more than one (somewhat rare), and add it to Build Path to see if
that fixes the problem. It usually does. Occasionally, I find out at a
late date a better way to obtain the symbol, but this usually works for me.

I looked this class up for you in my previous response. Obviously, I
don't know if it will help you or not as I'm not running your workbench.

Best of luck to you. There are more experts on such issues in the
Eclipse web tools forum.
Re: Can't start Tomcat 7 server from inside the IDE [message #711012 is a reply to message #710058] Fri, 05 August 2011 13:13 Go to previous message
Eclipse UserFriend
On 8/4/2011 12:29 PM, ivan wrote:
> I'm using Eclipse - Indigo Release and Tomcat 7.0.19 with Windows
> installer.

You almost never want to use an "installed" copy of Tomcat, regardless
of the OS you're on. The only truly consistent paths that can be used
to create the necessary classpath to launch Tomcat from Eclipse and
use/manipulate its configuration files are the ones from the
..zip/.tar.gz downloads.

See also
http://wiki.eclipse.org/WTP_Tomcat_FAQ#Why_won.27t_the_New_Server_Runtime_dialog_recognize_my_Linux_installed_version_of_Tomcat.3F

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
Previous Topic:Undo history cleared on Save
Next Topic:How do I deploy a webapp (i.e., make the warfile)
Goto Forum:
  


Current Time: Tue Jul 15 09:59:55 EDT 2025

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

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

Back to the top