When I try to undeploy my restlet application from a running servlet
container it can't remove the deployed app completely because it seems
unable to delete com.noelios.restlet.jar from the exploded WAR contents.
I assume there is still some resource in use within the reference
implementation code (possibly because of the way I'm using it?) but I
can't figure out what.  Does anyone have any experience with this
problem or something similar, and what I can do to work around it?

I've tried a variety of app servers (Tomcat 6.0, Sun App Server PE 9,
BEA WebLogic 9.2), and they've all shown the same behavior.  Here's my
super-stripped-down test application:

import org.restlet.*;
import org.restlet.data.*;

public class SimpleApp extends Application {
        public SimpleApp(Context context) { super(context); }
        public Restlet createRoot() {
                return new Restlet() {
                        public void handle(Request rqst, Response resp)
{
                                resp.setEntity(
        
rqst.getResourceRef().toString(),
                                        MediaType.TEXT_PLAIN);
                        }
                };
        }
}

I build this application into a WAR with a web.xml file like the sample
shown in question 2 of the developer FAQ.  I should mention that if I
stop and restart the app server before ever accessing my web service
then it undeploys correctly (the code has to be loaded and executed for
the problem to occur).

I'd appreciate any help or advice you can give.

Hayden

Reply via email to