This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Restful Web Service runs in Shell but not Eclipse Juno Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Restful Web Service runs in Shell but not Eclipse Juno" Watch "Restful Web Service runs in Shell but not Eclipse Juno" New topic
Author

Restful Web Service runs in Shell but not Eclipse Juno

James Dekker
Ranch Hand

Joined: Dec 09, 2006
Posts: 215
Hello, I am using Eclipse Juno, Jersey, Maven 2.2.1, tomcat 7, and m2eclipse plug-in.

Am able to create a war file for my Web Service using both m2eclipse and maven using the command line.

Afterwards, I have a shell script which deploys the war file from my $ProjectDir/target to $CATALINA_HOME/webapps

When I start up tomcat from the command line, everything runs well in catalina.out (console output).

However, when I run tomcat using Eclipse, it gives me this error:



My web.xml file looks like this:



Inside my particular web app's WEB-INF/lib dir, I have the following files (automatically packaged by maven install):

asm-3.1.jar
jersey-core-1.15.jar
jersey-server-1.15.jar

Why do I not receive this stack trace when running tomcat from the command line but I do receive it in Eclipse?

Thank you for taking the time to read this...
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Look inside the file /home/dev01/DevTools/apache-tomcat-7.0.32/webapps/RESTfulExample.war and make sure that the jersey libraries are there also. I suspect that Eclipse didn't package them...


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Restful Web Service runs in Shell but not Eclipse Juno
 
Similar Threads
Maven Pom Error - Can not find parent for Jersey
JSF 1.1 and Tomcat 6
TOMCAT can't find classes in /WEB-INF/classes
Cant Run Simple Jersey REST Webservice Example
struts2-maven File not found exception problem