This discussion is archived
1 Reply Latest reply: Jan 3, 2012 10:21 AM by 857055 RSS

Problem exporting webservice document/literal in Weblogic Workshop 10.3

user11236154 Newbie
Currently Being Moderated
While migrating an applications from Weblogic 8.1 to Weblogic 10.3 and facing a problem with one webservice, the others webservices have been migrated without any problems.

When try to export and deploy the webservice getting the following error:

Exception in DocumentoCompulsado
com.bea.control.ServiceControlException: Unable to retrieve ServiceClass for WSDL at path wsdl/CompulsaWSSOAPControl_CompulsaWSWsdl.wsdl, service CompulsaWS for control wsdl.CompulsaWSSOAPControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource wsdl/CompulsaWSSOAPControlServiceClassMemento.ser, service CompulsaWS for control wsdl.CompulsaWSSOAPControl]
Caused by: com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource wsdl/CompulsaWSSOAPControlServiceClassMemento.ser, service CompulsaWS for control wsdl.CompulsaWSSOAPControl
... 50 more
Caused by: com.bea.control.servicecontrol.util.memento.ServiceClassMementoException: Could not load the following resource file: wsdl/CompulsaWSSOAPControlServiceClassMemento.ser. There are two possibilities why this would occur. The first is that you are trying to run a 9.0 version of the service control. In this case everything should still work fine and you can ignore this exception. The other case is that the resource file is not in the proper location of the classpath. It should be in the same directory as the service control interface class. You might have to change your build scripts to make this work out for you. The resource file is generated during control assembly time and needs to be moved to the same directory as the service control interface class.

Trying to deploy the webservice, Weblogic fails telling that there is not a file named wsdl/CompulsaWSSOAPControlServiceClassMemento.ser and it is true, that file is not in the file we are trying to deploy. So the problem seems to be in Workshop which is not including the file required.

Looking for differences between this webservice and the others, realized that this webservice has declared, in its WSDL file, the document-literal binding and the others have rpc-literal.

Found a workaround. The webserice is called by using a ServiceControl. If the Service Control is type rpc, the webservice is exported and deployed without any problems, but if we use xmlbean option the webservice could not be deployed, the .ser file is not generated. I think this is reasonable because .ser files are relationed with xmlbeans.

Is it a known issue? if yes, could you please tell me the bug/CR number?
  • 1. Re: Problem exporting webservice document/literal in Weblogic Workshop 10.3
    857055 Newbie
    Currently Being Moderated
    I am getting the same error, but another situation; I have generated an EAR file, it works perfectly in one machine but I am getting this error in another.

    Unable to retrieve ServiceClass for WSDL at path com/nononononon/nono/nono/services/SearchServices.wsdl, service SearchServices for control com.nononononon.nono.nono.services.SearchServicesServiceControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononononon/nono/nono/services/SearchServicesServiceControlServiceClassMemento.ser, service SearchServices for control com.nononononon.nono.nono.services.SearchServicesServiceControl]


    I have searched the web without finding an resolution, exploding my EAR I see that I have the


    *ClassMemento.ser

    in the same folder as my service control. As I said before it works in one machine but not in another.

    Does anyone have any idea what is going on?


    PS: I have stooped the server where I am getting this error and cleaned tmp and stage folder. No success.


    The full stack trace looks like this

    [2012.01.03 13:07:39] - [286821] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [FATAL] - com.bea.control.ServiceControlException: Unable to retrieve ServiceClass for WSDL at path com/nononono/nono/nono/controls/MarketingOffers.wsdl, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl]
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.getServiceClass(ServiceControlImpl.java:1734)
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.invoke(ServiceControlImpl.java:524)
         at com.nononono.nono.nono.controls.MarketingOffersServiceControlBean.getQualifiers(MarketingOffersServiceControlBean.java:309)
         at com.nononono.nono.nono.services.MarketOffers.getQualifiers(Unknown Source)
         at com.nononono.nono.nono.services.MarketOffers.GetQualifiers(Unknown Source)
         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:597)
         at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
         at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
         at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
         at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
         at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
         at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
         at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl
         at com.bea.control.servicecontrol.util.ServiceClassCache.insertEntry(ServiceClassCache.java:140)
         at com.bea.control.servicecontrol.util.ServiceClassCache.getServiceClass(ServiceClassCache.java:75)
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.getServiceClass(ServiceControlImpl.java:1718)
         ... 30 more
    Caused by: com.bea.control.servicecontrol.util.memento.ServiceClassMementoException: Could not load the ServiceClassMemento from the following resource file: com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser. This is probably due to a versioning issue and if the developer was astute when they made the change then this should not be the reason. Another possibility is that this resource has become corrupt. The good news is a rebuild of your app should fix it.
         at com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil.loadServiceClass(ServiceClassMementoUtil.java:77)
         at com.bea.control.servicecontrol.util.ServiceClassCache.insertEntry(ServiceClassCache.java:96)
         ... 32 more
    Caused by: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = -9120448754896609940, local class serialVersionUID = 4418622981026545151
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at java.util.HashMap.readObject(HashMap.java:1159)
         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil.loadServiceClass(ServiceClassMementoUtil.java:69)
         ... 33 more

    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - e.save()finished
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [FATAL] - >>ESB.MarketOffers.GetQualifiers:GetQualifiers Webservice
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - >> Duration 15
    [2012.01.03 13:07:40] - [288220] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList().start
    [2012.01.03 13:07:40] - [288232] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlerts().start
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlerts().end
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList() event logging error.null
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList().end
    [2012.01.03 13:08:04] - [312812] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - >>>MSC message consuming timed out!
    [2012.01.03 13:08:04] - [312812] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - Before consume MSC Message!

    Edited by: vkonrad on Jan 3, 2012 10:19 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points