Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Tomcat classpath problem
Tomcat classpath problem [message #100586] Fri, 06 May 2005 19:24 Go to next message
Eclipse UserFriend
Originally posted by: kcheang.k-swiss.com

Hi everyone,

I am using Eclipse 3.1M6 with Tomcat 5.0. I am having some classpath
problem. When I use Run->Run and manually add classpath entries to the
run configuration, Tomcat server can not detect my libraries. However,
if I manually copy library jar files to /WEB-INF/lib directory, it
works. Does anyone know a solution to this?

Thanks!

Kenny
Re: Tomcat classpath problem [message #103455 is a reply to message #100586] Fri, 13 May 2005 09:10 Go to previous message
Eclipse UserFriend
I tried what you describe and it worked for me, so I can't say what
exactly went wrong in your situation. Note that there is a big
difference between adding a jar to the classpath and adding it to
WEB-INF/lib. Many classes, such as the javax.servlet classes, are
visible to classes found in WEB-INF/lib, but are not visible to classes
on the classpath. Also, since it leads to portability issues, adding
classes to the classpath of the server is generally considered a bad
idea. Is there a specific reason, you don't want the jar in WEB-INF/lib?

Cheers,
Larry

Kenny Cheang wrote:
> Hi everyone,
>
> I am using Eclipse 3.1M6 with Tomcat 5.0. I am having some classpath
> problem. When I use Run->Run and manually add classpath entries to the
> run configuration, Tomcat server can not detect my libraries. However,
> if I manually copy library jar files to /WEB-INF/lib directory, it
> works. Does anyone know a solution to this?
>
> Thanks!
>
> Kenny
Previous Topic:org.eclipse.wst.common.uriresolver.resolverExtensions howto?
Next Topic:Tomcat 5.0/5.5 startup using WSTM4
Goto Forum:
  


Current Time: Wed May 28 19:18:36 EDT 2025

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

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

Back to the top