[jboss-user] [JBossWS] - Unable to create JavaBean of type org.w3c.dom.Element
amit_sri
do-not-reply at jboss.com
Fri Sep 15 13:15:21 EDT 2006
Hi,
I have developed a webservice with JWSDP-2.0 (jax-rpc wscompile tool) deployed it on JBoss 4.0.2 AS. I have taken bottom-up approach starting with Service interface which takes org.w3c.dom.Element and return the same.
Everything happened smoothly until I invoked the deployed WS using client (generated by wscompile tool plz see stacktrace below) . If anyone has faced this before please provide me some insight.
Thanks in advance,
Amit Srivastava..
I am getting following exceptions-
22:24:48,375 ERROR [RPCInvocation] org.xml.sax.SAXException: Unable to create Ja
vaBean of type org.w3c.dom.Element. Missing default constructor? Error was: ja
va.lang.InstantiationException: org.w3c.dom.Element.
org.xml.sax.SAXException: Unable to create JavaBean of type org.w3c.dom.Element.
Missing default constructor? Error was: java.lang.InstantiationException: org
.w3c.dom.Element.
at org.jboss.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeser
ializer.java:219)
at org.jboss.axis.encoding.DeserializerImpl.startElement(DeserializerImp
l.java:466)
at org.jboss.axis.encoding.DeserializationContextImpl.startElement(Deser
ializationContextImpl.java:1182)
at org.jboss.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.jav
a:244)
at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPEleme
ntAxisImpl.java:1386)
at org.jboss.axis.encoding.DeserializerImpl.startElement(DeserializerImp
l.java:436)
at org.jboss.axis.encoding.DeserializationContextImpl.startElement(Deser
ializationContextImpl.java:1182)
at org.jboss.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.jav
a:244)
at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPEleme
ntAxisImpl.java:1386)
at org.jboss.axis.message.RPCElement.deserialize(RPCElement.java:262)
at org.jboss.axis.message.RPCElement.getParams(RPCElement.java:396)
at org.jboss.axis.providers.java.RPCInvocation.prepareFromRequestEnvelop
e(RPCInvocation.java:235)
at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.
java:103)
at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:3
58)
at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy
.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
at org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.
java:200)
at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:89)
at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:905
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase
.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
ipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:153)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
22:24:48,421 ERROR [ServerEngine] Server error: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Unable to create JavaBean of type org.w3c.dom.Element. Missing de
fault constructor? Error was: java.lang.InstantiationException: org.w3c.dom.Ele
ment.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Unabl
e to create JavaBean of type org.w3c.dom.Element. Missing default constructor?
Error was: java.lang.InstantiationException: org.w3c.dom.Element.
at org.jboss.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeser
ializer.java:219)
at org.jboss.axis.encoding.DeserializerImpl.startElement
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971985#3971985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971985
More information about the jboss-user
mailing list