Tomcat classpath problem [message #100586] |
Fri, 06 May 2005 19:24  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02526 seconds