cancel
Showing results for 
Search instead for 
Did you mean: 

Exception when deploying Web Service

Former Member
0 Kudos

Hi everyone,

I'm currently writing some web services in JAVA and get the following Exception when deploying.The Web Service has been first modelled within the ESR and then the bean skeleton was generated. I searched the whole SDN but couldn't find a solution for my Problem.


		1. Warning occurred on server 27464150 during update sap.com/bc~nwdemo~sm~ear : MDBsTakerTest: Following tests 

could not be executed because of failed precondition test "MDBsTakerTest" : MDBs Parents Check, file: 

sap.com~bc~nwdemo~sm~po~ejb.jar, column -1, line -1, severity: warning

Warning occurred on server 27464150 during update 

sap.com/bc~nwdemo~sm~ear : MDBsTakerTest: Following tests could not be executed because of failed precondition test 

"MDBsTakerTest" : MDBs Parents Check, file: sap.com~bc~nwdemo~sm~so~ejb.jar, column -1, line -1, severity: warning

Warning 

occurred on server 27464150 during update sap.com/bc~nwdemo~sm~ear : MDBsTakerTest: Following tests could not be executed 

because of failed precondition test "MDBsTakerTest" : MDBs Parents Check, file: sap.com~bc~nwdemo~sm~util~ejb.jar, column -1, 

line -1, severity: warning

Warning occurred on server 27464150 during update sap.com/bc~nwdemo~sm~ear : MDBsTakerTest: Following 

tests could not be executed because of failed precondition test "MDBsTakerTest" : MDBs Parents Check, file: 

sap.com~bc~nwdemo~sm~bp~ejb.jar, column -1, line -1, severity: warning

Warning occurred on server 27464150 during update 

sap.com/bc~nwdemo~sm~ear : MDBsTakerTest: Following tests could not be executed because of failed precondition test 

"MDBsTakerTest" : MDBs Parents Check, file: sap.com~bc~nwdemo~sm~pr~ejb.jar, column -1, line -1, severity: warning
		2. Exception has been returned while the [sap.com/bc~nwdemo~sm~ear] was starting. Warning/Exception :[
][[ERROR CODE DPL.DS.6193] Error while ; nested exception is: 
	

com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: [server ID 

27464150:Exception occured during web services start. Unable to load type mapping registry for web service not available, 

application sap.com/bc~nwdemo~sm~ear.
		 -> class 

com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5:library:jaxb20[AT]com.sap.engine.boot.loader.ResourceMultiParentClassLo

ader[AT]cc518c[AT]alive incompatible with class 

com.sun.xml.bind.v2.model.impl.ClassInfoImpl:library:jaxb20[AT]com.sap.engine.boot.loader.ResourceMultiParentClassLoader[AT]cc518c[AT]ali

ve
server ID 27464150:com.sap.engine.services.deploy.container.DeploymentException: 
	at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.prepareStart

(WebServicesDeployManager.java:782)
	at com.sap.engine.services.deploy.server.utils.container.ContainerWrapper.prepareStart(ContainerWrapper.java:363)
	at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:228)
	at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:186)
	at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer

(ApplicationTransaction.java:502)
	at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases

(ApplicationTransaction.java:544)
	at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:286)
	at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:555)
	at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:197)
	at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:358)
	at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3432)
	at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3418)
	at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3308)
	at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3280)
	at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:105)
	at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:78)
	at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:34)
	at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
	at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessLCMDeplItem

(DefaultDeployPostProcessor.java:91)
	at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcess(DefaultDeployPostProcessor.java:61)
	at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doPostProcessing(DeployerImpl.java:862)
	at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:810)
	at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:640)
	at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:359)
	at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:248)
	at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:897)
	at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:355)
	at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69)
	at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:67)
	at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:41)
	at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:971)
	at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:57)
	at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55)
	at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
	at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Exception occured during web services 

start. Unable to load type mapping registry for web service not available, application sap.com/bc~nwdemo~sm~ear.
	at com.sap.engine.services.webservices.server.deploy.ws.WSStartProcess.loadJAXBContexts(WSStartProcess.java:284)
	at com.sap.engine.services.webservices.server.deploy.ws.WSStartProcess.execute(WSStartProcess.java:107)
	at com.sap.engine.services.webservices.server.deploy.WSBaseAbstractDProcess.makeProcess(WSBaseAbstractDProcess.java:316)
	at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.prepareStartWebServices

(WebServicesDeployManager.java:1140)
	at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.prepareStart

(WebServicesDeployManager.java:778)
	... 34 more
Caused by: java.lang.ClassCastException: class 

com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5:library:jaxb20[AT]com.sap.engine.boot.loader.ResourceMultiParentClassLo

ader[AT]cc518c[AT]alive incompatible with class 

com.sun.xml.bind.v2.model.impl.ClassInfoImpl:library:jaxb20[AT]com.sap.engine.boot.loader.ResourceMultiParentClassLoader[AT]cc518c[AT]ali

ve
	at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170)
	at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:58)
	at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:38)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
	at java.util.AbstractList$Itr.next(AbstractList.java:422)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
	at java.util.AbstractList$Itr.next(AbstractList.java:422)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
	at java.util.AbstractList$Itr.next(AbstractList.java:422)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
	at java.util.AbstractList$Itr.next(AbstractList.java:422)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
	at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
	at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
	at java.util.AbstractList$Itr.next(AbstractList.java:422)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:356)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:217)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76)
	at com.sap.engine.services.webservices.server.deploy.ws.WSStartProcess.createJAXBRIContext(WSStartProcess.java:318)
	at com.sap.engine.services.webservices.server.deploy.ws.WSStartProcess.loadJAXBContexts(WSStartProcess.java:268)
	... 38 more


]]

Thank you for your effort.

Regards,

Carl

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

How do you deploy this web service?

It might be related to your method.

Former Member
0 Kudos

What do you mean with deploy method? I'm using the Deploy View of the NWDS, can't think of another way to deploy stuff on CE.

Or do you mean how the Content is structured? It's a SCA with a couple of DCs, which each consists of an ear, which each contains one ejb module. So the structure looks like the following:

SCA

+DC

++EAR

+++EJB

+DC

++EAR

+++EJB

+DC

++EAR

+++EJB

But it's no completely new project. I just want to add a bunch of web services to the existing ones. Therefore I modelled them with the Enterprise Service Builder and then used the model to let the NWDS generate the EJB Skeleton.

But thanks for your tip anyway.

Former Member
0 Kudos

Well I finally found the problem: It was a simple cast between two objects from different classes with the same name.