cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming ME Webservice with ME SDK

Former Member
0 Kudos

Hi,

i try to consume the ProductionServiceService -> RemoveFutureHoldService Webservice. I want to consume it within an EJB Class.

For some overview i give the reproduction steps here:

- import ProdcutionServiceService.wsdl into the Web Service Client (Outbound) Project

- create classes

- run build.webservice.client.out ant

- import generated <vendor>-webservice-client.jar

- consume webservice

It works fine. No bugs reported by the system and i can compile and build.

If i try to deploy my SAPME.sca i get the following error report:

1. Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sap.me.plant.ws.SiteService" must implement "javax.servlet.Servlet"., file: me.webservices.web-5.2.7.12-Base.war#WEB-INF/web.xml, column 0, line 0, severity: warning

Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sap.me.productdefinition.ws.BOMService" must implement "javax.servlet.Servlet"., file: me.webservices.web-5.2.7.12-Base.war#WEB-INF/web.xml, column 0, line 0, severity: warning

Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sap.me.appconfig.ws.SystemRuleService" must implement "javax.servlet.Servlet"., file: me.webservices.web-5.2.7.12-Base.war#WEB-INF/web.xml, column 0, line 0, severity: warning

Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sap.me.numbering.ws.NextNumberService" must implement "javax.servlet.Servlet"., file: me.webservices.web-5.2.7.12-Base.war#WEB-INF/web.xml, column 0, line 0, severity: warning

...

Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sapdev.xi.me.plannedorder.CustomProductionOrder" must implement "javax.servlet.Servlet"., file: sapdev-webservice.war#WEB-INF/web.xml, column 0, line 0, severity: warning

Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sap.me.production.ws.ProductionAlarmService" must implement "javax.servlet.Servlet"., file: me.webservices.web-5.2.7.12-Base.war#WEB-INF/web.xml, column 0, line 0, severity: warning

Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sap.me.productdefinition.ws.RouterService" must implement "javax.servlet.Servlet"., file: me.webservices.web-5.2.7.12-Base.war#WEB-INF/web.xml, column 0, line 0, severity: warning

Warning occurred on server 6857650 during deploy sap.com/me~ear : Web Class Existence Test: The servlet "com.sap.me.integration.ws.CollaborationDefinitionService" must implement "javax.servlet.Servlet"., file: me.webservices.web-5.2.7.12-Base.war#WEB-INF/web.xml, column 0, line 0, severity: warning
  2. Exception has been returned while the [sap.com/me~ear] was starting. Warning/Exception :[
][[ERROR CODE DPL.DS.6193] Error while ; nested exception is:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Exception occurred during web services deployment. Unable to generate serialization framework for web service ServiceOrderServiceService, application sap.com/me~ear.]

The warnings appeared with the new Webservice-classes but also other classes throw warnings now.

A solution i found is this one :

http://wiki.sdn.sap.com/wiki/display/TechTSG/(JSTTSG)(Web)Problems-IDE+Warnings

but i still dont know what to do?!

I cant find a solution so i hope someone here can help me?!

Regards,

Sascha

Accepted Solutions (1)

Accepted Solutions (1)

tim_drury
Active Participant
0 Kudos

I'm not proud of this answer, but here goes: ignore the warnings about a web service not implementing jvaax.servlet.Servlet.  We see those too. 

However, it appears you have some other error (not warning) regarding ServiceOrderServiceService - is this a custom web service?  Is there more information in the NW logs?

Former Member
0 Kudos

Hi Tim,

thanks for your reply.

The ServiceOrderServiceService is a SAP-Standard Webservice, but now i can see the package-names are equal. Maybe ii doesnt work because of this namespace-crossover?

If i try to start me in Webbrowser after deployment failed, i get the following :


Details: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Exception occurred during web services deployment.
Unable to generate serialization framework for web service ServiceOrderServiceService, application sap.com/me~ear.
at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.generateJAXWSFramework(WSInitialStartProcess.java:386)
at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.generateJAXWSFramework(WSInitialStartProcess.java:224)
at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.execute(WSInitialStartProcess.java:145)
at com.sap.engine.services.webservices.server.deploy.WSBaseAbstractDProcess.makeProcess(WSBaseAbstractDProcess.java:313)
at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.makeStartInitially(WebServicesDeployManager.java:669)
at com.sap.engine.services.deploy.server.utils.container.ContainerExtensionWrapper.makeStartInitially(ContainerExtensionWrapper.java:73)
at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.makeStartInitially(StartInitiallyTransaction.java:198)
at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.prepare(StartInitiallyTransaction.java:159)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:374)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:402)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeNestedTransaction(ApplicationTransaction.java:633)
at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitially(StartTransaction.java:479)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:312)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:297)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:374)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:402)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesSequentially(ParallelAdapter.java:295)
at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhases(StartTransaction.java:493)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1486)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:805)
at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:524)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.ApplicationManager.start(ApplicationManager.java:183)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.ApplicationManager.analyseAppStatusMode(ApplicationManager.java:296)
at com.sap.engine.services.servlets_jsp.server.DeployContext.startLazyApplication(DeployContext.java:353)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:145)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:327)
Caused by: javax.xml.bind.JAXBException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
@XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML.
this problem is related to the following location:
at protected java.lang.Object com.sap.xi.sapglobal.gdt.DateTime.value
at com.sap.xi.sapglobal.gdt.DateTime
at protected com.sap.xi.sapglobal.gdt.DateTime com.sap.xi.me.ShopOrderIn.plannedStartDate
at com.sap.xi.me.ShopOrderIn
at protected com.sap.xi.me.ShopOrderIn com.sap.xi.me.ServiceOrderIn.shopOrder
at com.sap.xi.me.ServiceOrderIn
at protected com.sap.xi.me.ServiceOrderIn com.sap.xi.me.ServiceOrderCreateRequestMessageSync.serviceOrder
at com.sap.xi.me.ServiceOrderCreateRequestMessageSync
- with linked exception:
[com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
@XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML.

this problem is related to the following location:
at protected java.lang.Object com.sap.xi.sapglobal.gdt.DateTime.value
at com.sap.xi.sapglobal.gdt.DateTime
at protected com.sap.xi.sapglobal.gdt.DateTime com.sap.xi.me.ShopOrderIn.plannedStartDate
at com.sap.xi.me.ShopOrderIn
at protected com.sap.xi.me.ShopOrderIn com.sap.xi.me.ServiceOrderIn.shopOrder
at com.sap.xi.me.ServiceOrderIn
at protected com.sap.xi.me.ServiceOrderIn com.sap.xi.me.ServiceOrderCreateRequestMessageSync.serviceOrder
at com.sap.xi.me.ServiceOrderCreateRequestMessageSync
]
at com.sap.engine.services.webservices.jaxws.j2w.JaxWsSchemaGenerator.genJaxbMappings(JaxWsSchemaGenerator.java:285)
at com.sap.engine.services.webservices.jaxws.j2w.JaxWsIMappingGenerator.generateWSDL(JaxWsIMappingGenerator.java:113)
at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.generateJAXWSFramework(WSInitialStartProcess.java:305)

... 49 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
@XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML.
this problem is related to the following location:
at protected java.lang.Object com.sap.xi.sapglobal.gdt.DateTime.value
at com.sap.xi.sapglobal.gdt.DateTime
at protected com.sap.xi.sapglobal.gdt.DateTime com.sap.xi.me.ShopOrderIn.plannedStartDate
at com.sap.xi.me.ShopOrderIn
at protected com.sap.xi.me.ShopOrderIn com.sap.xi.me.ServiceOrderIn.shopOrder
at com.sap.xi.me.ServiceOrderIn
at protected com.sap.xi.me.ServiceOrderIn com.sap.xi.me.ServiceOrderCreateRequestMessageSync.serviceOrder
at com.sap.xi.me.ServiceOrderCreateRequestMessageSync

at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:361)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
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:592)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at com.sap.engine.services.webservices.jaxws.j2w.JaxWsSchemaGenerator.genJaxbMappings(JaxWsSchemaGenerator.java:282)
... 51 more

Now i try to get the IllegalAnnotationExceptions killed, but i cant realy find them. I´ll Post the solution inhere after some new investigations.

Regards, Sascha

Former Member
0 Kudos

Tim Drury wrote:

However, it appears you have some other error (not warning) regarding ServiceOrderServiceService - is this a custom web service?  Is there more information in the NW logs?

Hi Tim,

it realy was another error. It was this auto-generated Class : com.sap.xi.sapglobal.gdt.DateTime.value. I removed the @XmlValue Tag and got another error, because of the wrong type of "value". it was declared as object, should be declared as dateTime in the wsdl-file. After some changes and a few little bugs, it work fine for me.

Your post was a shove in the right direction. Thank you.

Regards, Sascha

Answers (0)