WTP 1.0 and Tomcat classpath [message #157652] |
Mon, 23 January 2006 07:18  |
Eclipse User |
|
|
|
Originally posted by: user.domain.com
Hi,
I use Eclipse 3.1.1 with the WTP 1.0 Web Tool Platform. I've set a
Tomcat 5.0 server.
All seems running well now, but I don't understand something:
Why did I need to add the "j2ee.jar" in my Server's classpath ?
If I didn't do so, when I open a page, the HttpServlet class is not
found (ClassDefNotFoundException) ?! Tomcat has the servlet-api.jar in
its classloader path, why through WTP this is lost ?
Or maybe I did something wrong ?
--
JSC
|
|
|
|
Re: WTP 1.0 and Tomcat classpath [message #158613 is a reply to message #158597] |
Tue, 31 January 2006 13:13  |
Eclipse User |
|
|
|
If you have to do this, it implies there is something seriously wrong in
your configuration. The only way I'm aware of having this happen
"beneath the surface" is to try to use a JRE/JDK that has a "polluted"
lib/ext directory.
Check your JRE or JDK's lib/ext directory to see if there any extra jars
there. Only the jars that come with the JRE/JDK should be there. When
other jars are added there, it is easy for the "world" to have to be in
lib/ext for everything to work. Otherwise you get symptoms like that
for this thread. Unfortunately, I can't say for sure if this is your
problem.
Cheers,
Larry
Ben Greenberg wrote:
> I have the same problem.
>
> I'm surprised that *everyone* doesn't have the same problem, and that the solution isn't online somewhere... I'm just trying to set up a vanilla installation of WTP with tomcat.
>
> Any ideas out there?
> Thanks so much in advance...
|
|
|
Powered by
FUDForum. Page generated in 0.06855 seconds