Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Vince Aggrippino
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!