I'll add the Resin 3.0 server to that list you have. I found this gem because I deploy on a shared server where I am not able to restart Resin, nor am I in a position to debug it. It's been holding onto something for over 5 days now. I tried redeploying an app with the new 1.0.6 lib and it complained that the class loader couldn't find the default Engine implementation resource. (line 155).

Circular reference is not allowing GC to unload?

Joe.


----- Original Message ----- From: "Metz, Hayden" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 19, 2007 10:44 AM
Subject: RE: RE: Unable to cleanly undeploy restlet application from servlet container


Unfortunately moving to version 1.0.6 didn't affect the problem. I opened issue 379 to track this:

http://restlet.tigris.org/issues/show_bug.cgi?id=379

Hayden

-----Original Message-----
From: Jerome Louvel [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 10, 2007 7:37 AM
To: [email protected]
Subject: RE: Unable to cleanly undeploy restlet application from servlet container


Hi Hayden,

That's a weird behavior indeed. Did you make any progress?

I suggest that you try again with the latest 1.0.6 version as we fixed an issue regarding the start/restart of an application.

Otherwise, feel free to post a bug report:
http://restlet.tigris.org/servlets/ProjectIssues

Best regards,
Jerome

-----Message d'origine-----
De : Metz, Hayden [mailto:[EMAIL PROTECTED] Envoyé : mardi 6
novembre 2007 18:36 À : [email protected] Objet : Unable to
cleanly undeploy restlet application from servlet container

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