This discussion is archived
4 Replies Latest reply: Oct 2, 2012 8:47 AM by 294331 RSS

deploy from eclipse wronlgly appends "PortType"

294331 Newbie
Currently Being Moderated
I have an SIB annotated with "portName". It is generated with JAXRPC option.
I know by default "PortType" would be appended if none specified.

When i try to deploy the War containing WS from Eclipse-Juno, container appends PortType to my implementation complaining that class not found... Any solution for this? thanks.

wsdl: (specifies same port name as my annotated class)
<wsdl:service name="FooBarService">
          <wsdl:port name="FooBarServicePort" binding ...

SIB:
@WebService(
serviceName="FooBarService",
targetNamespace="http://FooBarService",
portName="FooBarServicePort",
endpointInterface="com.services.FooBarServicePortType")
@WLHttpTransport(contextPath="...",serviceUri="FooBarService",portName="FooBarServicePort")
public class FooBarServicePortTypeImpl implements FooBarServicePortType {

Deploy Error:
.lang.ClassNotFoundException: com.services.FooBarServicePortTypeImplPortType
  • 1. Re: deploy from eclipse wronlgly appends "PortType"
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    can you check on server log and give me error stack from there....
  • 2. Re: deploy from eclipse wronlgly appends "PortType"
    294331 Newbie
    Currently Being Moderated
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "ExchangeServiceServlethttp" failed to preload on startup in Web application: "Mass/Sales".
    weblogic.wsee.ws.WsException: Failed to load class com.foobar.channelmaintain.services.ExchangeServicePortTypeImplPortType:weblogic.xml.schema.binding.util.ClassUtil$ClassUtilException: unable to load class:java.lang.ClassNotFoundException: com.foobar.channelmaintain.services.ExchangeServicePortTypeImplPortType
         at weblogic.wsee.ws.WSBuilderHelper.loadClass(WSBuilderHelper.java:298)
         at weblogic.wsee.ws.WSBuilderHelper.populatePort(WSBuilderHelper.java:242)
         at weblogic.wsee.ws.WSBuilderHelper.buildWsPort(WSBuilderHelper.java:195)
         at weblogic.wsee.ws.WSBuilderHelper.buildService(WSBuilderHelper.java:88)
         at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:197)
         at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:54)
         at weblogic.wsee.deploy.ServletDeployInfo.createWsService(ServletDeployInfo.java:91)
         at weblogic.wsee.deploy.DeployInfo.createWsPort(DeployInfo.java:372)
         at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:83)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         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:52)
         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:671)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:531)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: weblogic.xml.schema.binding.util.ClassUtil$ClassUtilException: unable to load class:java.lang.ClassNotFoundException: com.foobar.channelmaintain.services.ExchangeServicePortTypeImplPortType
         at weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)
         at weblogic.wsee.ws.WSBuilderHelper.loadClass(WSBuilderHelper.java:295)
         ... 51 more

         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         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:52)
         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:671)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:531)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: weblogic.xml.schema.binding.util.ClassUtil$ClassUtilException: unable to load class:java.lang.ClassNotFoundException: com.foobar.channelmaintain.services.ExchangeServicePortTypeImplPortType
         at weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)
         at weblogic.wsee.ws.WSBuilderHelper.loadClass(WSBuilderHelper.java:295)
         at weblogic.wsee.ws.WSBuilderHelper.populatePort(WSBuilderHelper.java:242)
         at weblogic.wsee.ws.WSBuilderHelper.buildWsPort(WSBuilderHelper.java:195)
         at weblogic.wsee.ws.WSBuilderHelper.buildService(WSBuilderHelper.java:88)
         at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:197)
         at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:54)
         at weblogic.wsee.deploy.ServletDeployInfo.createWsService(ServletDeployInfo.java:91)
         at weblogic.wsee.deploy.DeployInfo.createWsPort(DeployInfo.java:372)
         at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:83)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         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:52)
         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:671)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:531)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
  • 3. Re: deploy from eclipse wronlgly appends "PortType"
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    Hi,

    check following error cause here.

    Caused by: weblogic.xml.schema.binding.util.ClassUtil$ClassUtilException: unable to load class:java.lang.ClassNotFoundException: com.foobar.channelmaintain.services.ExchangeServicePortTypeImplPortType
    at weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)


    try to include prefer-web-inf as true with in weblogic.xml file.

    and try to deploy and check again if still issue persist or not.

    Regards,
    Kal
  • 4. Re: deploy from eclipse wronlgly appends "PortType"
    294331 Newbie
    Currently Being Moderated
    thanks, yes, the classnotfound was obvious from initial post.
    found the issue, it was
    <webservice-description-name>com.foobar.channelmaintain.services.ExchangeServicePortTypeImplPortType</webservice-description-name> inside webservices.xml

    somehow my build script generated the wrong name:
    com.foobar.channelmaintain.services.ExchangeServicePortTypeImplPortType

    appending an extra "PortType" to my SIB class: com.foobar.channelmaintain.services.ExchangeServicePortTypeImpl

Legend

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