Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

Cannot run MsgResource in Java Up and Running book

 
Bartender
Posts: 2397
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 2397
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Not so fast naughty spawn! I want you to know about
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic