It's not a secret anymore!*
The moose likes Other JSE/JEE APIs and the fly likes [SOLVED] Jersey Issue 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 » Java » Other JSE/JEE APIs
Bookmark "[SOLVED] Jersey Issue" Watch "[SOLVED] Jersey Issue" New topic
Author

[SOLVED] Jersey Issue

Michael Golightly
Greenhorn

Joined: Feb 01, 2011
Posts: 27
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

Joined: Feb 01, 2011
Posts: 27
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

Joined: Feb 01, 2011
Posts: 27
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:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [SOLVED] Jersey Issue
 
Similar Threads
Problem with Spring AOP
Issue with JBoss logging for different jboss instances running on same machine
unable to capture messages from java.util.logging
Grizzly Jersey REST and static HTML
Creating CLI for java daemon