On Sep 30, 2008, at 4:14 PM, Mark Petrovic wrote:


My app is pretty simple, and thus far has no traditional state I need to maintain - except the notion of "is logged in".

I'd like to use the Jetty connector.

As I said, I'm using the Simple connector in my FirstResource-like app, and when I remove from my runtime classpath

estlet-1.1rc2/lib/org.simpleframework_3.1/org.simpleframework.jar

and add

restlet-1.1rc2/lib/org.mortbay.jetty_6.1/org.mortbay.jetty.jar
restlet-1.1rc2/lib/javax.servlet_2.5/javax.servlet.jar

per

http://www.restlet.org/documentation/1.1/connectors#jetty

I get on startup:

Exception in thread "main" java.lang.NoClassDefFoundError: simple/ http/ProtocolHandler

which indicates that something in my build is still looking for Simple connector support. I looked to the Configuration section here

http://www.restlet.org/documentation/1.1/connectors#server_connectors

to understand how to code the server's main() entry point, but couldn't see how my FirstResource-like app, with its Component, subclassed Application, and Routers ( and router.attach()'s ) translates. If in fact translation is necessary? That is, perhaps the NoClassDefError owes to something else?



My mistake: I had two Simple support jars on my runtime classpath, but removed only one of them in the transition to using Jetty connectors. Having removed both Simple jars and adding all the Jetty support jars, my unmodified FirstResource-like app now works again, using the jetty connector.

Thanks.

Reply via email to