6 Replies Latest reply: Apr 23, 2012 11:16 AM by Chris_N RSS

    Weblogic Strange Behavior

    843781
      I've written an application in CXF that I'm deploying to WebLogic. The application appears to deploy twice.

      The first deployment of the war file is done via:

      at org.apache.cxf.transport.servlet.AbstractCXFServlet.init(AbstractCXFServlet.java:84)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)

      and the second is done by:

      at javax.servlet.GenericServlet.init(GenericServlet.java:241)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)

      Why does the war file get processed twice? Is there any way to prevent the generic servlet from doing it's search. It looks through the files and finds JAX-WS annotations, then overwrites the configuration from the first analysis of the WAR file.

      Is there anyway to disable the generic servlet from running?

      Thanks,

      Scott Lopez
        • 1. Re: Weblogic Strange Behavior
          Jay SenSharma MiddlewareMagic
          HI,


          Because the GenericServlet implements Servlet interface
          public abstract class javax.servlet.GenericServlet extends java.lang.Object implements javax.servlet.Servlet,javax.servlet.ServletConfig,java.io.Serializable{
          
          }
          And similarly
          public abstract class AbstractCXFServlet extends HttpServlet {
          
          }
          So the Thread Stack Trace execution will start from GenericServlet or through the AbstractCXFServlet ....which is true.


          Thanks
          Jay SenSharma
          • 2. Re: Weblogic Strange Behavior
            843781
            Thanks for replying

            What I don't understand is why does it analyze the same WAR file twice? In addition, it only appears to read the web.xml for CXF, not for the generic servlet.
            • 3. Re: Weblogic Strange Behavior
              843781
              In addition to the above, any ideas on how to avoid the generic servlet analyzing the WAR?

              Thanks again for the help.
              • 4. Re: Weblogic Strange Behavior
                Jay SenSharma MiddlewareMagic
                Hi,

                Can u please post the complete StackTrace? I am suspecting that this is default behavior of WebLogic. I just want to compare your StackTrace with one of mine.


                Thanks
                Jay SenSharma
                • 5. Re: Weblogic Strange Behavior
                  843781
                  Thanks again.

                  Version 10.3.4 of weblogic with the Oracle SOA framework installed.

                  The enclosed stack traces were not thrown by the application. I created them in the constructor to see what was occurring. The first creation has the following lines:

                  <Mar 1, 2011 12:05:56 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <>>>>>>>>>>>>>>>>>>>>>>>>>> TreatmentPlanServiceImpl creation.>
                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.dto.MemberDTO> <BEA-000000> <>>>>>>>>>>>>>>>>>>>>>> creating dto>
                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <***************** member set: <MemberDTO><Address1>bogus address</Address1></MemberDTO>>
                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <************************* post construct called>

                  This is the expected behavior, Spring is initialized and the member dto is created.

                  What follows just after this is:

                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <>>>>>>>>>>>>>>>>>>>>>>>>>> TreatmentPlanServiceImpl creation.>
                  <Mar 1, 2011 12:05:58 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <************************* post construct called>

                  Notice that the web.xml is ignored and the spring framework is not initialized. The second creation overwrites the first causing my problems.

                  The stack traces that show how the calls were made are shown below. As a reminder, I put these exceptions into the constructor so I could see what was going on, the exceptions are not thrown by an application error.

                  <Mar 1, 2011 12:05:56 PM CST> <Error> <org.springframework.security.core.SpringSecurityCoreVersion> <BEA-000000> <Spring Major version '3' expected, b
                  ut you are running with version: 2.5.6.SEC01. Please check your classpath for unwanted jar files.>
                  <Mar 1, 2011 12:05:56 PM CST> <Warning> <org.springframework.security.core.SpringSecurityCoreVersion> <BEA-000000> <You are advised to use Spring 3.0.
                  3 or later with this version. You are running: 2.5.6.SEC01>
                  <Mar 1, 2011 12:05:56 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <>>>>>>>>>>>>>>>>>>>>>>>>>> TreatmentPlanServiceI
                  mpl creation.>
                  java.lang.Exception
                  at test.hps.services.impl.TreatmentPlanServiceImpl.<init>(TreatmentPlanServiceImpl.java:32)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
                  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911
                  )
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
                  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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
                  at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
                  at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)
                  at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:10
                  03)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907
                  )
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
                  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.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServlet.java:190)
                  at org.apache.cxf.transport.servlet.CXFServlet.updateContext(CXFServlet.java:158)
                  at org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:104)
                  at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:73)
                  at org.apache.cxf.transport.servlet.AbstractCXFServlet.init(AbstractCXFServlet.java:84)
                  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:1985)
                  at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
                  at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
                  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
                  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
                  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:636)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
                  at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
                  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.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:528)
                  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                  at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.dto.MemberDTO> <BEA-000000> <>>>>>>>>>>>>>>>>>>>>>> creating dto>
                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <***************** member set: <MemberDTO><Addre
                  ss1>bogus address</Address1></MemberDTO>>
                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <************************* post construct called>

                  <Mar 1, 2011 12:05:57 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <>>>>>>>>>>>>>>>>>>>>>>>>>> TreatmentPlanServiceI
                  mpl creation.>
                  java.lang.Exception
                  at test.hps.services.impl.TreatmentPlanServiceImpl.<init>(TreatmentPlanServiceImpl.java:32)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                  at com.bea.core.repackaged.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
                  at com.bea.core.repackaged.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
                  nFactory.java:875)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapable
                  BeanFactory.java:837)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFa
                  ctory.java:440)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.j
                  ava:409)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
                  ory.java:380)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
                  at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
                  at com.bea.core.repackaged.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
                  at com.bea.core.repackaged.springframework.jee.spi.WSEEComponentContributorBrokerImpl.getBean(WSEEComponentContributorBrokerImpl.java:45)
                  at weblogic.wsee.jaxws.injection.WSEEComponentContributor.loadUsingSpring(WSEEComponentContributor.java:77)
                  at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:49)
                  at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
                  at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
                  at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:34)
                  at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
                  at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
                  at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
                  at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
                  at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:153)
                  at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:67)
                  at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
                  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:1985)
                  at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
                  at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
                  at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
                  at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
                  at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
                  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:636)
                  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
                  at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
                  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.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:528)
                  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                  at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
                  <Mar 1, 2011 12:05:58 PM CST> <Error> <test.hps.services.impl.TreatmentPlanServiceImpl> <BEA-000000> <************************* post construct called>
                  • 6. Issues with WebLogic's Built-In Spring Support
                    Chris_N
                    We are seeing the same behavior: We have a number of webservices based on Spring 3.0.5/JAX-WS, deployed to WebLogic 10.3.3. And it appears that both Spring, as well as WebLogic's GenericServlet, are instantiating our annotated JAX-WS services.

                    The interesting thing is, that deployment does not fail. However, we do end up with duplicate WebLogic system-level MBean registrations, presumably due to the double instantiation. (And as an added bonus, undeployment of our services routinely fails... which we suspect is caused by multiple internal webservice references.)

                    Net-Net: It appears that WebLogic's GenericServlet is detecting that we are utilizing Spring. It then tries to be helpful by instantiating our JAX-WS services a 2nd time, via WebLogic's internal [repackaged] Spring support. The latter is based on the stacktrace, below.

                    The Bottom Line: We have Googled, and Googled, and Googled some more... and have not found a way to disable WebLogic's built-in, and less-than-helpful, Spring support. (Such that we are starting to consider radical approaches, like runtime patching of WebLogic system classes, to block this behavior.) This is obviously the last thing we want to do, given the support implications. But frankly we are at a point where we do not have much choice.

                    So... does anyone know of a way to disable this behavior?


                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                    at com.bea.core.repackaged.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
                    at com.bea.core.repackaged.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:875)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:837)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
                    at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
                    at com.bea.core.repackaged.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
                    at com.bea.core.repackaged.springframework.jee.spi.WSEEComponentContributorBrokerImpl.getBean(WSEEComponentContributorBrokerImpl.java:45)
                    at weblogic.wsee.jaxws.injection.WSEEComponentContributor.loadUsingSpring(WSEEComponentContributor.java:77)
                    at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:49)
                    at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
                    at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
                    at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:34)
                    at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
                    at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
                    at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
                    at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
                    at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:153)
                    at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:67)
                    at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
                    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
                    [...]