Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot run MsgResource in Java Up and Running book

 
Himai Minh
Ranch Hand
Posts: 1249
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1249
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic