users@glassfish.java.net

WebappClassLoader not yet started or already stopped

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 Oct 2009 01:32:39 PDT

Hello,
I get the following error:
java.lang.Error: WebappClassLoader WebappClassLoader
  delegate: true
  repositories:
 not yet started or already stopped

when invoking a JAX-RS Web Service on my deployment glassfish v3 Prelude server.
The stack trace in the server logs shows that the http request returned a response but immediately afterwards I get this error.
However it works on my development machine.

The service implementation just uses Apache HttpClient to make a simple HTTP GET request:
This are the relevant lines of code:

        HttpGet httpget = new HttpGet(uri);
        System.out.println(httpget.getURI());
        HttpClient httpclient = new DefaultHttpClient();
        HttpResponse response = httpclient.execute(httpget);
        HttpEntity entity = response.getEntity();
        String result = new String();
        if (entity != null) {
            result = EntityUtils.toString(entity);
            System.out.println(result);
        }

        return result;

Thanks.
[Message sent by forum member 'dabd' (dario.rehman_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=367087