Forums Register Login

[SOLVED] Jersey Issue

+Pie Number of slices to send: Send
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)
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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:

Enjoy the full beauty of the english language. Embedded in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 14018 times.
Similar Threads
Problem with Spring AOP
unable to capture messages from java.util.logging
Grizzly Jersey REST and static HTML
Issue with JBoss logging for different jboss instances running on same machine
Creating CLI for java daemon
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:08:17.