Tomcat not using project build path (Indigo) [message #695330] |
Mon, 11 July 2011 14:09  |
Eclipse User |
|
|
|
I have recently upgraded to the latest Eclipse (Indigo) Java EE for web developers, from Eclipse Ganymede.
However after installing Indigo, it appears that my existing webapp project fails to start on tomcat (running within eclipse).
I am also using Apache's JSF 2.0 Implemention (Myfaces).
On starting tomcat it keeps erroring with ClassNotFoundException. Even though the classes are actually in the project build path. In an attempt to get around this, I tried to add the relevant "jars" into the "classpath/User Entries" of the tomcat launch configuration, even though they were already in my project build path.
This would result in it getting past a previous error, but to then error with another ClassNotFoundException, where I would add the relevant "jar" file again to the "User Entries", to get another ClassNotFoundException, and so on. I found that I was adding pretty much all the jars that are in my project build path (including servlet-api.jar and el.jar which are a part of the tomcat libraries as standard).
I am therefore convinced that tomcat on Eclipse is not looking in the right place for it's libraries. This was all working fine on a previous install of Eclipse (Ganymede). Can anyone help me with this?
Thank you so much,
Glen
[Updated on: Mon, 11 July 2011 16:59] by Moderator Report message to a moderator
|
|
|
Re: Tomcat not using project build path (Indigo) [message #696732 is a reply to message #695330] |
Thu, 14 July 2011 17:49  |
Eclipse User |
|
|
|
On 7/11/2011 10:09 AM, forums-noreply@eclipse.org wrote:
> I have recently upgraded to the latest Eclipse (Indigo) Java EE for web
> developers, from Eclipse Ganymede.
>
> However after installing Indigo, it appears that my existing webapp
> project fails to start on tomcat (running within eclipse).
>
> On starting tomcat it keeps erroring with ClassNotFoundException. Even
> though the classes are actually in the project build path. In an attempt
> to get around this, I tried to add the relevant "jars" into the
> "classpath/User Entries" of the tomcat launch configuration, even though
> they were already in my project build path.
Are you using a separate Tomcat launching mechanism from the one
provided in the Eclipse package?
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
|
|
|
Powered by
FUDForum. Page generated in 0.03852 seconds