Wednesday, December 29, 2010

Re: Out of memory running on jetty (on web service instanciation)

Perhaps you're running into issues fixed by r9214: http://code.google.com/p/google-web-toolkit/source/detail?r=9214

On Thu, Dec 23, 2010 at 10:02 AM, David R. <david.renoux@gmail.com> wrote:

Hello,


I just got a problem running my application under Jetty. (I have no
problem deploying with the web mode under glassfish).

I want to instanciate a web service stub right after an RPC call.

Here is the stack:

Caused by: java.lang.OutOfMemoryError: PermGen space
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
141)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
       at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
       at com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload
$WebAppClassLoaderExtension.findClass(JettyLauncher.java:354)
       at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
366)
       at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
337)
       at
com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl.newMessageFactory(SAAJMetaFactoryImpl.java:
59)
       at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
       at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:176)
       at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:82)
       at com.sun.xml.ws.api.BindingID.<clinit>(BindingID.java:335)
       at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseBinding(RuntimeWSDLParser.java:
456)
       at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:
353)
       at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:
168)
       at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:
131)
       at
com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:
271)
       at
com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
234)
       at
com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
182)
       at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:
106)
       at javax.xml.ws.Service.<init>(Service.java:57)

I'm using GWT 2.0.4 and Metro WS 2.0.1 (webservices-api.2.0.1)
installed under the jre/lib/endorsed of my JDK.
Even using the -Xmx1024 doesn't help, seems Jetty fails to retrieve
elements on the classloader and this causes an exception.

The only difference between glassfish and Jetty regarding
configuration files deployed is the web.xml.

For Jetty:
<!--  servlet configured to disable the Folder Listing -->
       <servlet>
               <servlet-name>default</servlet-name>
               <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-
class>
               <init-param> ...

For glassfish :
<!--  servlet configured to disable the Folder Listing -->
       <servlet>
               <servlet-name>default</servlet-name>
               <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-
class>
               <init-param> ...


Any clue ?

David

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment