You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by cwhistler <ch...@sungard.com> on 2011/07/15 19:25:10 UTC
CXF Java first service, using XMLBean generated objects as the
input and output parameters
So I have XML schemas from a client, and I have compiled them with XMLBeans
2.2.0 into java objects. now I want to use those objects as input and
response parameters for some CXF generated web services. I have tried CXF
versions 2.2.7 and 2.4.0.
I am deploying this in Weblogic 10.3.3 using Spring configuration.
So in my Java class I have tried using the generated document interface, the
implemenation class and the type class but none of these make any
difference. My interface is setup as:
@WebService(name = "NasuProcessor", targetNamespace = "http://www.test.com")
@SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
parameterStyle=ParameterStyle.WRAPPED)
public interface NasuProcessor {
@WebMethod
public MmmfResponseImpl wsProcess(@WebParam(name = "nasu") MmmfAccountImpl
nasuInput);
}
Most of the details that I can find simply state that I have to add the
XmlBeansDataBinding to my service configuration:
<jaxws:endpoint id="NasuProcessorBasicAuth"
implementor="#nasuProcessor"
address="/NasuProcessorBasicAuth">
<jaxws:dataBinding>
<bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding" />
</jaxws:dataBinding>
<jaxws:inInterceptors>
<ref bean="securityInterceptor"/>
</jaxws:inInterceptors>
</jaxws:endpoint>
so I've tried this but I continue to receive the following exceptions. it
just seems that the dataBinding is not being used.
Jul 15, 2011 12:03:20 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service {http://www.test.com}NasuProcessorImplService from
class com.test.processors.nasu.NasuProcessor
Jul 15, 2011 12:03:20 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /NasuProcessorBasicAuth
Caused By: java.security.PrivilegedActionException:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 7 counts of
IllegalAnnotationExceptions
noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl does not have a
no-arg default constructor.
this problem is related to the following location:
at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
com.test.processors.maint.jaxws.WsProcess.maint
at com.test.processors.maint.jaxws.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo is an interface, and
JAXB can't handle interfaces.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
at public noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl.getAddressInfoArray()
at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
com.test.processors.maint.jaxws.WsProcess.maint
at com.test.processors.maint.jaxws.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo does not have a
no-arg default constructor.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
at public noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl.getAddressInfoArray()
at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
com.test.processors.maint.jaxws.WsProcess.maint
at com.test.processors.maint.jaxws.WsProcess
org.apache.xmlbeans.impl.values.XmlComplexContentImpl does not have a no-arg
default constructor.
this problem is related to the following location:
at org.apache.xmlbeans.impl.values.XmlComplexContentImpl
at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
com.test.processors.maint.jaxws.WsProcess.maint
at com.test.processors.maint.jaxws.WsProcess
org.apache.xmlbeans.StringEnumAbstractBase does not have a no-arg default
constructor.
this problem is related to the following location:
at org.apache.xmlbeans.StringEnumAbstractBase
at public org.apache.xmlbeans.StringEnumAbstractBase
org.apache.xmlbeans.impl.values.XmlObjectBase.getEnumValue()
at org.apache.xmlbeans.impl.values.XmlObjectBase
at org.apache.xmlbeans.impl.values.XmlComplexContentImpl
at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
com.test.processors.maint.jaxws.WsProcess.maint
at com.test.processors.maint.jaxws.WsProcess
org.apache.xmlbeans.GDate does not have a no-arg default constructor.
this problem is related to the following location:
at org.apache.xmlbeans.GDate
at public org.apache.xmlbeans.GDate
org.apache.xmlbeans.impl.values.XmlObjectBase.getGDateValue()
at org.apache.xmlbeans.impl.values.XmlObjectBase
at org.apache.xmlbeans.impl.values.XmlComplexContentImpl
at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
com.test.processors.maint.jaxws.WsProcess.maint
at comtest.processors.maint.jaxws.WsProcess
noNamespace.impl.MmmfResponseDocumentImpl$MmmfResponseImpl does not have a
no-arg default constructor.
this problem is related to the following location:
at noNamespace.impl.MmmfResponseDocumentImpl$MmmfResponseImpl
at public noNamespace.impl.MmmfResponseDocumentImpl$MmmfResponseImpl
com.test.processors.maint.jaxws.WsProcessResponse._return
at com.test.processors.maint.jaxws.WsProcessResponse
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
at
com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:265)
at
com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:363)
Truncated. see log file for complete stacktrace
Can someone help?
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Java-first-service-using-XMLBean-generated-objects-as-the-input-and-output-parameters-tp4591548p4591548.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: CXF Java first service, using XMLBean generated objects as the input and output parameters
Posted by Daniel Kulp <dk...@apache.org>.
>From the log, it looks like the deploy from the CXF side worked fine.
> Jul 27, 2011 2:04:16 PM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be /TradeProcessorBasicAuth
What it looks like is happening is that WebLogic's classpath scanning is
kicking in and deploying everything that has an @WebService annotation as a
webservice. I'm not familiar enough with WebLogic to really help figure out
how to deal with that issue.
You may be able to remove the @WebService annotation from the impl and then
add a bunch more attributes to the jaxws:endpoint cxf config (targetNamespace,
endpointName, serviceName, etc....), but I'm not really sure on that.
Dan
On Wednesday, July 27, 2011 12:11:06 PM cwhistler wrote:
> Yeah my bad. I lost the binding entries in my services. Now that I've
> added them back I still get the original exception:
> <jaxws:endpoint id="NasuProcessorBasicAuth"
>
> implementorClass="com.sungard.aa.ta.citioli.processors.nasu.NasuProcessorImp
> l" implementor="#nasuProcessor"
> address="/NasuProcessorBasicAuth">
> *<jaxws:dataBinding>
> <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding" />
> </jaxws:dataBinding>*
> <jaxws:inInterceptors>
> <ref bean="securityInterceptor"/>
> </jaxws:inInterceptors>
> </jaxws:endpoint>
>
> I don't see anything else here that I can prefer in my ear to get around
> this.
>
> Jul 27, 2011 2:04:16 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service {http://www.sungard.com/aata}NasuProcessorImplService
> from class com.sungard.aa.ta.citioli.processors.nasu.NasuProcessor Jul 27,
> 2011 2:04:16 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO:
> Setting the server's publish address to be /NasuProcessorBasicAuth Jul 27,
> 2011 2:04:16 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service
> {http://www.sungard.com/aata}MaintProcessorImplService from class
> com.sungard.aa.ta.citioli.processors.maint.MaintProcessor
> Jul 27, 2011 2:04:16 PM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be /MaintProcessorBasicAuth
> Jul 27, 2011 2:04:16 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service
> {http://www.sungard.com/aata}TradeProcessorImplService from class
> com.sungard.aa.ta.citioli.processors.trade.TradeProcessor
> Jul 27, 2011 2:04:16 PM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be /TradeProcessorBasicAuth
> <Jul 27, 2011 2:04:16 PM CDT> <Error> <HTTP> <BEA-101216> <Servlet:
> "com.sungard.aa.ta.citioli.processors.maint.MaintProcessorImpl" failed to
> preload on startup in Web application: "/citioli".
> javax.xml.ws.WebServiceException: Unable to create JAXBContext
> at
> com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModel
> Impl.java:164) at
> com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.j
> ava:94) at
> com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:26
> 5) at
> com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:36
> 3) at
> com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:20
> 2) Truncated. see log file for complete stacktrace
>
> Caused By: java.security.PrivilegedActionException:
> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10 counts of
> IllegalAnnotationExceptions
> noNamespace.MmmfAccountDocument is an interface, and JAXB can't handle
> interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument
> at public noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
> noNamespace.MmmfAccountDocument does not have a no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument
> at public noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount is an interface, and JAXB can't
> handle interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at public noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount does not have a no-arg default
> constructor.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at public noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo is an interface, and
> JAXB can't handle interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
> at public abstract
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
> noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at public noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo does not have a
> no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
> at public abstract
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
> noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at public noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
> noNamespace.MmmfResponseDocument is an interface, and JAXB can't handle
> interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfResponseDocument
> at public noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
> at
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
> noNamespace.MmmfResponseDocument does not have a no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.MmmfResponseDocument
> at public noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
> at
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
> noNamespace.MmmfResponseDocument$MmmfResponse is an interface, and JAXB
> can't handle interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfResponseDocument$MmmfResponse
> at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
> noNamespace.MmmfResponseDocument.getMmmfResponse()
> at noNamespace.MmmfResponseDocument
> at public noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
> at
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
> noNamespace.MmmfResponseDocument$MmmfResponse does not have a no-arg default
> constructor.
> this problem is related to the following location:
> at noNamespace.MmmfResponseDocument$MmmfResponse
> at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
> noNamespace.MmmfResponseDocument.getMmmfResponse()
> at noNamespace.MmmfResponseDocument
> at public noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
> at
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
>
> at java.security.AccessController.doPrivileged(AccessController.java:255)
> at
> com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModel
> Impl.java:151) at
> com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.j
> ava:94) at
> com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:26
> 5) at
> com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:36
> 3) Truncated. see log file for complete stacktrace
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-Java-first-service-using-XMLBean-genera
> ted-objects-as-the-input-and-output-parameters-tp4591548p4639963.html Sent
> from the cxf-dev mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com
Re: CXF Java first service, using XMLBean generated objects as the
input and output parameters
Posted by cwhistler <ch...@sungard.com>.
Yeah my bad. I lost the binding entries in my services. Now that I've added
them back I still get the original exception:
<jaxws:endpoint id="NasuProcessorBasicAuth"
implementorClass="com.sungard.aa.ta.citioli.processors.nasu.NasuProcessorImpl"
implementor="#nasuProcessor"
address="/NasuProcessorBasicAuth">
*<jaxws:dataBinding>
<bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding" />
</jaxws:dataBinding>*
<jaxws:inInterceptors>
<ref bean="securityInterceptor"/>
</jaxws:inInterceptors>
</jaxws:endpoint>
I don't see anything else here that I can prefer in my ear to get around
this.
Jul 27, 2011 2:04:16 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service {http://www.sungard.com/aata}NasuProcessorImplService
from class com.sungard.aa.ta.citioli.processors.nasu.NasuProcessor
Jul 27, 2011 2:04:16 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /NasuProcessorBasicAuth
Jul 27, 2011 2:04:16 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service
{http://www.sungard.com/aata}MaintProcessorImplService from class
com.sungard.aa.ta.citioli.processors.maint.MaintProcessor
Jul 27, 2011 2:04:16 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /MaintProcessorBasicAuth
Jul 27, 2011 2:04:16 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service
{http://www.sungard.com/aata}TradeProcessorImplService from class
com.sungard.aa.ta.citioli.processors.trade.TradeProcessor
Jul 27, 2011 2:04:16 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /TradeProcessorBasicAuth
<Jul 27, 2011 2:04:16 PM CDT> <Error> <HTTP> <BEA-101216> <Servlet:
"com.sungard.aa.ta.citioli.processors.maint.MaintProcessorImpl" failed to
preload on startup in Web application: "/citioli".
javax.xml.ws.WebServiceException: Unable to create JAXBContext
at
com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:164)
at
com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:265)
at
com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:363)
at
com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:202)
Truncated. see log file for complete stacktrace
Caused By: java.security.PrivilegedActionException:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10 counts of
IllegalAnnotationExceptions
noNamespace.MmmfAccountDocument is an interface, and JAXB can't handle
interfaces.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument
at public noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
noNamespace.MmmfAccountDocument does not have a no-arg default constructor.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument
at public noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount is an interface, and JAXB can't
handle interfaces.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at public noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount does not have a no-arg default
constructor.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at public noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo is an interface, and
JAXB can't handle interfaces.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
at public abstract
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at public noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo does not have a
no-arg default constructor.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
at public abstract
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at public noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcess
noNamespace.MmmfResponseDocument is an interface, and JAXB can't handle
interfaces.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument
at public noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
noNamespace.MmmfResponseDocument does not have a no-arg default constructor.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument
at public noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
noNamespace.MmmfResponseDocument$MmmfResponse is an interface, and JAXB
can't handle interfaces.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument$MmmfResponse
at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
noNamespace.MmmfResponseDocument.getMmmfResponse()
at noNamespace.MmmfResponseDocument
at public noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
noNamespace.MmmfResponseDocument$MmmfResponse does not have a no-arg default
constructor.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument$MmmfResponse
at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
noNamespace.MmmfResponseDocument.getMmmfResponse()
at noNamespace.MmmfResponseDocument
at public noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.maint.jaxws.WsProcessResponse
at java.security.AccessController.doPrivileged(AccessController.java:255)
at
com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
at
com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:265)
at
com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:363)
Truncated. see log file for complete stacktrace
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Java-first-service-using-XMLBean-generated-objects-as-the-input-and-output-parameters-tp4591548p4639963.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: CXF Java first service, using XMLBean generated objects as the input and output parameters
Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday, July 27, 2011 11:55:44 AM cwhistler wrote:
> I put the app in an ear and preferred the org.apache.cxf package to ensure i
> am using cxf. Still I can't get it to start up
Well, now it's using CXF, but it's set to use the JAXBDataBinding, not
XMLBeans:
> ing.java:502) at
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:322)
> ... 68 more
>
Thus, the configuration is either wrong or not being picked up properly to
configure it to use XMLBeans. The easiest may be to just add:
@DataBinding(org.apache.cxf.xmlbeans.XmlBeansDataBinding.class)
to the interface and/or implementation bean.
Dan
>
> Jul 27, 2011 1:29:41 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service {http://www.sungard.com/aata}NasuProcessorImplService
> from class com.sungard.aa.ta.citioli.processors.nasu.NasuProcessor 827
> [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
> (self-tuning)'] ERROR org.springframework.web.context.ContextLoader -
> Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'NasuProcessorBasicAuth': Invocation of init method failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1420) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:456) at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
> stractBeanFactory.java:291) at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
> ngleton(DefaultSingletonBeanRegistry.java:222) at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
> ractBeanFactory.java:288) at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
> ctBeanFactory.java:190) at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
> antiateSingletons(DefaultListableBeanFactory.java:580) at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFac
> toryInitialization(AbstractApplicationContext.java:895) at
> org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
> actApplicationContext.java:425) at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(Co
> ntextLoader.java:276) at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
> extLoader.java:197) at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
> textLoaderListener.java:47) at
> com.oracle.weblogic.wsee.wrapper.org.springframework.web.context.ContextLoad
> erListener.contextInitialized(Unknown Source)
> at
> weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(Events
> Manager.java:481) at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
> t.java:321) at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> at
> weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsMana
> ger.java:181) at
> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServle
> tContext.java:1863) at
> weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.ja
> va:3126) at
> weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
> at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486) at
> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDrive
> r.java:425) at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.j
> ava:41) at
> weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver
> .java:119) at
> weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriv
> er.java:200) at
> weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListene
> rInvoker.java:247) at
> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDrive
> r.java:425) at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.j
> ava:41) at
> weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver
> .java:119) at
> weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlo
> w.java:27) at
> weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267
> ) at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.j
> ava:41) at
> weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:40
> 9) at
> weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
> at
> weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStat
> eChecker.java:161) at
> weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContai
> nerInvoker.java:79) at
> weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployme
> nt.java:184) at
> weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLife
> cycle(BasicDeployment.java:361) at
> weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(Deploymen
> tAdapter.java:51) at
> weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAda
> pter.java:200) at
> weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransit
> ion.java:30) at
> weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(Con
> figuredDeployments.java:240) at
> weblogic.management.deploy.internal.ConfiguredDeployments.activate(Configure
> dDeployments.java:169) at
> weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredD
> eployments.java:123) at
> weblogic.management.deploy.internal.DeploymentServerService.resume(Deploymen
> tServerService.java:180) at
> weblogic.management.deploy.internal.DeploymentServerService.start(Deployment
> ServerService.java:96) at
> weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at
> weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
> at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
> Caused by: javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:331)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:234)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:477)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48
> ) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:37) at java.lang.reflect.Method.invoke(Method.java:600)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1417) ... 49 more
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
> at
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:339)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFrom
> Class(ReflectionServiceFactoryBean.java:429) at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(J
> axWsServiceFactoryBean.java:637) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServic
> eModel(ReflectionServiceFactoryBean.java:492) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflectio
> nServiceFactoryBean.java:240) at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFact
> oryBean.java:180) at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Abst
> ractWSDLBasedEndpointFactory.java:99) at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
> at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.ja
> va:177) at
> org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:403) at
> org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:310) ... 58
> more
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10
> counts of IllegalAnnotationExceptions
> noNamespace.MmmfAccountDocument is an interface, and JAXB can't handle
> interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument
> at private noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
> noNamespace.MmmfAccountDocument does not have a no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument
> at private noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount is an interface, and JAXB can't
> handle interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at private noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount does not have a no-arg default
> constructor.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at private noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo is an interface, and
> JAXB can't handle interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
> at public abstract
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
> noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at private noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo does not have a
> no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
> at public abstract
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
> noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
> at noNamespace.MmmfAccountDocument$MmmfAccount
> at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
> noNamespace.MmmfAccountDocument.getMmmfAccount()
> at noNamespace.MmmfAccountDocument
> at private noNamespace.MmmfAccountDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
> at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
> noNamespace.MmmfResponseDocument is an interface, and JAXB can't handle
> interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfResponseDocument
> at private noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._retur
> n at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
> noNamespace.MmmfResponseDocument does not have a no-arg default
> constructor. this problem is related to the following location:
> at noNamespace.MmmfResponseDocument
> at private noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._retur
> n at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
> noNamespace.MmmfResponseDocument$MmmfResponse is an interface, and JAXB
> can't handle interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfResponseDocument$MmmfResponse
> at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
> noNamespace.MmmfResponseDocument.getMmmfResponse()
> at noNamespace.MmmfResponseDocument
> at private noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._retur
> n at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
> noNamespace.MmmfResponseDocument$MmmfResponse does not have a no-arg
> default constructor.
> this problem is related to the following location:
> at noNamespace.MmmfResponseDocument$MmmfResponse
> at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
> noNamespace.MmmfResponseDocument.getMmmfResponse()
> at noNamespace.MmmfResponseDocument
> at private noNamespace.MmmfResponseDocument
> com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._retur
> n at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
>
> at
> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Illega
> lAnnotationsException.java:102) at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.j
> ava:448) at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:297)
> at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
> at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48
> ) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:37) at java.lang.reflect.Method.invoke(Method.java:600)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:383)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:585)
> at
> org.apache.cxf.jaxb.JAXBDataBinding.createContext(JAXBDataBinding.java:562)
> at
> org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBind
> ing.java:502) at
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:322)
> ... 68 more
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-Java-first-service-using-XMLBean-genera
> ted-objects-as-the-input-and-output-parameters-tp4591548p4639882.html Sent
> from the cxf-dev mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com
Re: CXF Java first service, using XMLBean generated objects as the
input and output parameters
Posted by cwhistler <ch...@sungard.com>.
I put the app in an ear and preferred the org.apache.cxf package to ensure i
am using cxf. Still I can't get it to start up
Jul 27, 2011 1:29:41 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service {http://www.sungard.com/aata}NasuProcessorImplService
from class com.sungard.aa.ta.citioli.processors.nasu.NasuProcessor
827 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] ERROR org.springframework.web.context.ContextLoader -
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'NasuProcessorBasicAuth': Invocation of init method failed; nested
exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at
com.oracle.weblogic.wsee.wrapper.org.springframework.web.context.ContextLoaderListener.contextInitialized(Unknown
Source)
at
weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1863)
at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
at
weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at
weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at
weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at
weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at
weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at
weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at
weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at
weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at
weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at
weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at
weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:331)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:234)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:477)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 49 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:339)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:429)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:637)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:492)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:240)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:180)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:99)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:177)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:403)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:310)
... 58 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10
counts of IllegalAnnotationExceptions
noNamespace.MmmfAccountDocument is an interface, and JAXB can't handle
interfaces.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument
at private noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
noNamespace.MmmfAccountDocument does not have a no-arg default constructor.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument
at private noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount is an interface, and JAXB can't
handle interfaces.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at private noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount does not have a no-arg default
constructor.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at private noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo is an interface, and
JAXB can't handle interfaces.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
at public abstract
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at private noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo does not have a
no-arg default constructor.
this problem is related to the following location:
at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
at public abstract
noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
noNamespace.MmmfAccountDocument$MmmfAccount.getAddressInfoArray()
at noNamespace.MmmfAccountDocument$MmmfAccount
at public abstract noNamespace.MmmfAccountDocument$MmmfAccount
noNamespace.MmmfAccountDocument.getMmmfAccount()
at noNamespace.MmmfAccountDocument
at private noNamespace.MmmfAccountDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess.inputVO
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcess
noNamespace.MmmfResponseDocument is an interface, and JAXB can't handle
interfaces.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument
at private noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
noNamespace.MmmfResponseDocument does not have a no-arg default constructor.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument
at private noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
noNamespace.MmmfResponseDocument$MmmfResponse is an interface, and JAXB
can't handle interfaces.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument$MmmfResponse
at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
noNamespace.MmmfResponseDocument.getMmmfResponse()
at noNamespace.MmmfResponseDocument
at private noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
noNamespace.MmmfResponseDocument$MmmfResponse does not have a no-arg default
constructor.
this problem is related to the following location:
at noNamespace.MmmfResponseDocument$MmmfResponse
at public abstract noNamespace.MmmfResponseDocument$MmmfResponse
noNamespace.MmmfResponseDocument.getMmmfResponse()
at noNamespace.MmmfResponseDocument
at private noNamespace.MmmfResponseDocument
com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse._return
at com.sungard.aa.ta.citioli.processors.nasu.jaxws_asm.WsProcessResponse
at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:448)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:297)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:383)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:585)
at
org.apache.cxf.jaxb.JAXBDataBinding.createContext(JAXBDataBinding.java:562)
at
org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:502)
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:322)
... 68 more
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Java-first-service-using-XMLBean-generated-objects-as-the-input-and-output-parameters-tp4591548p4639882.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: CXF Java first service, using XMLBean generated objects as the input and output parameters
Posted by Daniel Kulp <dk...@apache.org>.
Well, you aren't using CXF:
at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:265)
at
com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:363)
those are from the Sun reference implementation, not CXF.
Dan
On Friday, July 15, 2011 10:25:10 AM cwhistler wrote:
> So I have XML schemas from a client, and I have compiled them with XMLBeans
> 2.2.0 into java objects. now I want to use those objects as input and
> response parameters for some CXF generated web services. I have tried CXF
> versions 2.2.7 and 2.4.0.
>
> I am deploying this in Weblogic 10.3.3 using Spring configuration.
>
> So in my Java class I have tried using the generated document interface, the
> implemenation class and the type class but none of these make any
> difference. My interface is setup as:
>
> @WebService(name = "NasuProcessor", targetNamespace = "http://www.test.com")
> @SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
> parameterStyle=ParameterStyle.WRAPPED)
> public interface NasuProcessor {
> @WebMethod
> public MmmfResponseImpl wsProcess(@WebParam(name = "nasu")
MmmfAccountImpl
> nasuInput);
>
> }
>
>
> Most of the details that I can find simply state that I have to add the
> XmlBeansDataBinding to my service configuration:
> <jaxws:endpoint id="NasuProcessorBasicAuth"
> implementor="#nasuProcessor"
> address="/NasuProcessorBasicAuth">
> <jaxws:dataBinding>
> <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding" />
> </jaxws:dataBinding>
> <jaxws:inInterceptors>
> <ref bean="securityInterceptor"/>
> </jaxws:inInterceptors>
> </jaxws:endpoint>
>
> so I've tried this but I continue to receive the following exceptions. it
> just seems that the dataBinding is not being used.
>
>
> Jul 15, 2011 12:03:20 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service {http://www.test.com}NasuProcessorImplService from
> class com.test.processors.nasu.NasuProcessor
> Jul 15, 2011 12:03:20 PM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be /NasuProcessorBasicAuth
>
> Caused By: java.security.PrivilegedActionException:
> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 7 counts of
> IllegalAnnotationExceptions
> noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl does not have a
> no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> com.test.processors.maint.jaxws.WsProcess.maint
> at com.test.processors.maint.jaxws.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo is an interface, and
> JAXB can't handle interfaces.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
> at public noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
> noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl.getAddressInfoArray
> () at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> com.test.processors.maint.jaxws.WsProcess.maint
> at com.test.processors.maint.jaxws.WsProcess
> noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo does not have a
> no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo
> at public noNamespace.MmmfAccountDocument$MmmfAccount$AddressInfo[]
> noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl.getAddressInfoArray
> () at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> com.test.processors.maint.jaxws.WsProcess.maint
> at com.test.processors.maint.jaxws.WsProcess
> org.apache.xmlbeans.impl.values.XmlComplexContentImpl does not have a no-arg
> default constructor.
> this problem is related to the following location:
> at org.apache.xmlbeans.impl.values.XmlComplexContentImpl
> at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> com.test.processors.maint.jaxws.WsProcess.maint
> at com.test.processors.maint.jaxws.WsProcess
> org.apache.xmlbeans.StringEnumAbstractBase does not have a no-arg default
> constructor.
> this problem is related to the following location:
> at org.apache.xmlbeans.StringEnumAbstractBase
> at public org.apache.xmlbeans.StringEnumAbstractBase
> org.apache.xmlbeans.impl.values.XmlObjectBase.getEnumValue()
> at org.apache.xmlbeans.impl.values.XmlObjectBase
> at org.apache.xmlbeans.impl.values.XmlComplexContentImpl
> at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> com.test.processors.maint.jaxws.WsProcess.maint
> at com.test.processors.maint.jaxws.WsProcess
> org.apache.xmlbeans.GDate does not have a no-arg default constructor.
> this problem is related to the following location:
> at org.apache.xmlbeans.GDate
> at public org.apache.xmlbeans.GDate
> org.apache.xmlbeans.impl.values.XmlObjectBase.getGDateValue()
> at org.apache.xmlbeans.impl.values.XmlObjectBase
> at org.apache.xmlbeans.impl.values.XmlComplexContentImpl
> at noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> at public noNamespace.impl.MmmfAccountDocumentImpl$MmmfAccountImpl
> com.test.processors.maint.jaxws.WsProcess.maint
> at comtest.processors.maint.jaxws.WsProcess
> noNamespace.impl.MmmfResponseDocumentImpl$MmmfResponseImpl does not have a
> no-arg default constructor.
> this problem is related to the following location:
> at noNamespace.impl.MmmfResponseDocumentImpl$MmmfResponseImpl
> at public noNamespace.impl.MmmfResponseDocumentImpl$MmmfResponseImpl
> com.test.processors.maint.jaxws.WsProcessResponse._return
> at com.test.processors.maint.jaxws.WsProcessResponse
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModel
> Impl.java:151) at
> com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.j
> ava:94) at
> com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:26
> 5) at
> com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:36
> 3) Truncated. see log file for complete stacktrace
>
> Can someone help?
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-Java-first-service-using-XMLBean-genera
> ted-objects-as-the-input-and-output-parameters-tp4591548p4591548.html Sent
> from the cxf-dev mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com