[jboss-user] [JBossWS] - ClassNotFoundException and a generated __JBossWS_... class

jimmycallaghan do-not-reply at jboss.com
Tue Mar 6 08:29:04 EST 2007


We're deploying a JBoss WS application and getting a nasty error:


  | 13:24:34,303 ERROR [AbstractServlet] Error processing web service request
  | javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: javax.xml.bind.MarshalException: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary
  | 	at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:187)
  | 	at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.java:844)
  | 	at org.jboss.ws.soap.SOAPContentElement.getChildNodes(SOAPContentElement.java:761)
  | 	at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:211)
  | ...
  | ...
  | 
  | Caused by: org.jboss.ws.binding.BindingException: javax.xml.bind.MarshalException: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary
  | 	at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.java:112)
  | 	at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:172)
  | 	... 30 more
  | Caused by: javax.xml.bind.MarshalException: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary
  | 	at org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:181)
  | 	at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.java:100)
  | 	... 31 more
  | Caused by: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary
  | 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
  | 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
  | 	at org.jboss.ws.utils.JavaUtils.loadJavaType(JavaUtils.java:81)
  | 	at org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:126)
  | 

There is nothing special about the code and we're not trying to use an isolated classloader or anything. When the relevant classes are included as a stand alone application everything works OK. When we deploy the exact same classes with the main project we get this error.

The client code was generated in Eclipse from the WSDL URL that was provided by JBoss on deploying the application. I've added a classloader log and I can't find any mention of the __JBoss...getSummary class however I do find a __JBoss...getSummaryBeanInfo class.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025380#4025380

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025380



More information about the jboss-user mailing list