On Mon, Feb 09, 2009 at 03:34:41PM +0100, Bart Vandewoestyne wrote:
>
> [...]
> When i trie to access the servlet using the URL
> 
>   http://clydet:8180/testbart/helloworld
> 
> I get
> 
>   java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
> 
> I can solve this problem by copying /usr/share/java/servlet-api.jar to the
> ./WEB-INF/lib directory and restarting my tomcat... but somehow this seems
> not the clean solution to me.  I expected tomcat to have servlet-api.jar
> available in its classpath somehow, so that I don't need to copy this file for
> every webapp I have.
> 
> My 2 questions are:
> 
> 1) Is it necessary to copy servlet-api.jar to the WEB-INF/lib directory of
> every web application that i have?  Or can i somehow tell tomcat that this
> file is located in /usr/share/java?
> 
> 2) Is there a way to find out which classpath tomcat is using?  And how does
> the classpath for tomcat gets setup?

For the record: I forgot to mention that my Debian install
provides a symlink

/usr/share/tomcat5.5/common/lib/servlet-api.jar

that links to

/usr/share/java/servlet-api.jar

So i don't understand why tomcat or my webapp can't find it...

Regards,
Bart

-- 
        "Share what you know.  Learn what you don't."

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to