This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 722
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: 722
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