I am really stuck up at a major situation. I have a class in the maven dependancy and also can be referenced from within the class but on running the server displays ClassNotFoundException.
Thanks in advance
update:
Environment:-
- Eclipse Juno.
- Maven M2E plugin
- Tomcat 7
I created a maven project in eclipse and converted it to a dynamic web project in facet changes - and added the following in the pom.xml and also gave the mvn eclipse:eclipse -Dwtpversion=2.0
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.8</version>
</dependency>
This has downloaded the available jars containing the class com.sun.jersey.spi.container.servlet.ServletContainer
But on running the server - java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer