Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[SOLVED] Jersey Issue

 
Michael Golightly
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to get Jersey to run as an embedded web server within an existing java application.

When I start up the application, I get this log/exception:


When I google for the exception, nothing of use comes up.

Anyone have any ideas what the problem is?


The code:

WebControlServer.java:


TimeResource.java (this is just a Hello World type of resource to make sure it's running properly)
 
Michael Golightly
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update: This appears to be some sort of environment issue between when I run the WebControlServer directly through eclipse vs packaging it through ant which the existing application is doing. I can run a copy of the code in eclipse without issue, but when I put it in with the existing application, I get the error from my previous post.
 
Michael Golightly
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update:

This post fixed the problem:
http://stackoverflow.com/questions/1190646/ant-jar-files-and-class-path-oh-my

I added a classpath variable to the manifest in the jar that I am creating in the build.xml:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic