Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot run MsgResource in Java Up and Running book

 
Himai Minh
Ranch Hand
Posts: 1398
8
  • 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: 1398
8
  • 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!