2013-10-08 123 views
3

從10.3升級到weblogic 12c時,我們在Web服務的部署中收到以下空指針異常。相同的web服務在weblogic 10.3中工作正常。我正在使用wsgen來構建web服務。我也用java 1.7,但嘗試了同樣的1.6Weblogic 12c Web服務在部署時生成空指針異常

com.sun.xml.ws.transport.http.servlet.WSServletContextListener parseAdaptersAndCreateDelegate 
SEVERE: WSSERVLET11: failed to parse runtime descriptor java.lang.NullPointerException 
java.lang.NullPointerException 
at org.eclipse.persistence.jaxb.compiler.SchemaGenerator.addSchemaComponents(SchemaGenerator.java:206) 
at org.eclipse.persistence.jaxb.compiler.SchemaGenerator.generateSchema(SchemaGenerator.java:144) 
at org.eclipse.persistence.jaxb.compiler.SchemaGenerator.generateSchema(SchemaGenerator.java:132) 
at org.eclipse.persistence.jaxb.compiler.Generator.generateSchemaFiles(Generator.java:209) 
at org.eclipse.persistence.jaxb.JAXBContext.generateSchema(JAXBContext.java:242) 
at org.eclipse.persistence.jaxb.JAXBContext.generateSchema(JAXBContext.java:215) 
at com.sun.xml.ws.db.toplink.JAXBContextWrapper.generateSchema(JAXBContextWrapper.java:116) 
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.generateTypes(WSDLGenerator.java:433) 
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.generateDocument(WSDLGenerator.java:409) 
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.doGeneration(WSDLGenerator.java:306) 
at com.sun.xml.ws.db.DatabindingImpl.generateWSDL(DatabindingImpl.java:224) 
at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:528) 
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:240) 
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:546) 
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:525) 
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:257) 
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:151) 
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131) 
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:152) 
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:582) 
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) 
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) 
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) 
at weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:233) 
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:190) 
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:175) 
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1730) 
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740) 
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704) 
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781) 
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213) 
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208) 
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35) 
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70) 
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212) 
at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111) 
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) 
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213) 
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208) 
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35) 
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70) 
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24) 
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729) 
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35) 
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258) 
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61) 
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165) 
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) 
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:192) 
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:369) 
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51) 
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200) 
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30) 
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240) 
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169) 
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123) 
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:186) 
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:94) 
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) 
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) 
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) 
+0

你找到了這個問題的答案? –

回答

0

我遇到了這個問題,並發現我有包括兩(2)的Weblogic在我的WAR文件10個文件,這會導致此問題; weblogic-10.3.6.jar和wlfullclient-10.3.6.jar。

一旦我刪除了,它開始了罰款。