File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Cannot run MsgResource in Java Up and Running book 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 » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Cannot run MsgResource in Java Up and Running book" Watch "Cannot run MsgResource in Java Up and Running book" New topic
Author

Cannot run MsgResource in Java Up and Running book

Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 721
Hi,
I used NetBean platform to create a Java Web Application project. I have msg.resources package that has MsgResources.java on p.182 of Java Web Service Up and Running book.
I have JerseyPublisher.java as well, which is outside the msg.resources package.
In the Libraries , I imported all the jar files : asm-3.1.jar , grizzly-servlet-webserver-1.8.3.jar, jersey-core-0.9-ea.jar, jersey-server-0.9-ea.jar and jsr311-api-0.9.jar as
mentioned in the book.

I opened my browser and type http://localhost:9876/
But it returns me "Internal Error".

Please help.
Thanks.
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 721
I found an example at http://theopentutorials.com/examples/java-ee/jax-rs/create-a-simple-restful-web-service-using-jersey-jax-rs/


This can be the JerseyPublisher for the MsgResource example in the book.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot run MsgResource in Java Up and Running book
 
Similar Threads
Jersey jars
@PersistenceContext
Jaxb version from 1.x to 2.1.9
Restful Web Service runs in Shell but not Eclipse Juno
Very Urgent!!! Please Help