aspose file tools
The moose likes Tomcat and the fly likes Tomcat isn't seeing JARs in webapps/appname/lib? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat isn Watch "Tomcat isn New topic

Tomcat isn't seeing JARs in webapps/appname/lib?

Vince Aggrippino

Joined: May 19, 2006
Posts: 14
This is related to my previous post, but slightly different circumstances.

Apache Tomcat 6.0.14
Java 1.6.0_02-b05
Wicket 1.3.0-beta3

I'm trying to run a Wicket application and it's not working. I'm getting a NoClassDefFoundError:

java.lang.NoClassDefFoundError: org/apache/wicket/protocol/http/WebApplication

I think I must be misunderstanding something basic about Tomcat web application deployment.

So, I create a basic "HelloWorld" type servlet using Wicket to try and troubleshoot the problem.

I've double- and triple-checked the package against the documentation and even verified it by listing the contents of the JAR with unzip.

What am I doing wrong?

The Wicket JAR file and two of its dependencies are in WEB-INF/lib:
@home:~/dev/tomcat/webapps/HelloWicket/WEB-INF/classes$ ls -ltr ../lib
total 1648
-rw-r--r-- 1 vince vince 1657246 2007-09-04 10:00 wicket-1.3.0-beta3.jar
-rw-r--r-- 1 vince vince 7449 2007-09-04 10:00 slf4j-simple-1.4.3.jar
-rw-r--r-- 1 vince vince 15345 2007-09-04 10:00 slf4j-api-1.4.3.jar

Here's my web.xml:

Here's the layout of my servlet's directory:

Thank you,

-- Vince
Consider Paul's rocket mass heater.
subject: Tomcat isn't seeing JARs in webapps/appname/lib?