在weblogic12c中部署应用程序时。我有以下例外。我是weblogic12c的新手。任何建议??
weblogic.application.ModuleException:java.lang.NoSuchMethodException:org.eclipse.persistence.jaxb.JAXBContext.getBeanInfo(java.lang.Class) 在weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140) 在weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) 在weblogic.application.internal.flow.ModuleStateDriver $ 3.next(ModuleStateDriver.java:216) at weblogic.application.internal.flow.ModuleStateDriver $ 3.next(ModuleStateDriver.java:211) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:73) 在weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24) 在weblogic.application.internal.BaseDeployment $ 2.next(BaseDeployment.java:729) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258) 在weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48) 在weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165) 在weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) 在weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:587) 在weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) 在weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) 在weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339) 在weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846) 在weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275) 在weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442) 在weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176) 在weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) 在weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access $ 100(DeploymentReceiverCallbackDeliverer.java:13) 在weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer $ 2.run(DeploymentReceiverCallbackDeliverer.java:68) 在weblogic.work.SelfTuningWorkManagerImpl $ WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548) 在weblogic.work.ExecuteThread.execute(ExecuteThread.java:311) 在weblogic.work.ExecuteThread.run(ExecuteThread.java:263) 引发者:java.lang.NoSuchMethodException:org.eclipse.persistence.jaxb.JAXBContext.getBeanInfo(java.lang.Class) 在java.lang.Class.getMethod(Class.java:1786) 在org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:52) at com.sun.proxy。$ Proxy107.getBeanInfo(Unknown Source) 在org.apache.cxf.common.jaxb.JAXBUtils.getBeanInfo(JAXBUtils.java:1155) at org.apache.cxf.jaxb.JAXBSchemaInitializer.getBeanInfo(JAXBSchemaInitializer.java:140) at org.apache.cxf.jaxb.JAXBDataBinding.checkForJAXBAnnotations(JAXBDataBinding.java:436) 在org.apache.cxf.jaxb.JAXBDataBinding.justCheckForJAXBAnnotations(JAXBDataBinding.java:424) 在org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:349) at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:446) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:548) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) 在org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) 在org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:453) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:333) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:250) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:536) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1681) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1620) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:304) 在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) 在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) 在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700) 在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) 在org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381) 在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293) 在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) 在weblogic.servlet.internal.EventsManager $ FireContextListenerAction.run(EventsManager.java:678) 在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) 在weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) 在weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) 在weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:243) 在weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:200) 在weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:185) 在weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1838) 在weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2876) 在weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661) 在weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:823) at weblogic.application.internal.ExtensibleModuleWrapper $ StartStateChange.next(ExtensibleModuleWrapper.java:360) at weblogic.application.internal.ExtensibleModuleWrapper $ StartStateChange.next(ExtensibleModuleWrapper.java:356) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138) 在weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) 在weblogic.application.internal.flow.ModuleStateDriver $ 3.next(ModuleStateDriver.java:216) at weblogic.application.internal.flow.ModuleStateDriver $ 3.next(ModuleStateDriver.java:211) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:73) 在weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24) 在weblogic.application.internal.BaseDeployment $ 2.next(BaseDeployment.java:729) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258) 在weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48) 在weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165) 在weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) 在weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:587) 在weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) 在weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) 在weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339) 在weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846) 在weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275) 在weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442) 在weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176) 在weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) 在weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access $ 100(DeploymentReceiverCallbackDeliverer.java:13) 在weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer $ 2.run(DeploymentReceiverCallbackDeliverer.java:68) 在weblogic.work.SelfTuningWorkManagerImpl $ WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548) 在weblogic.work.ExecuteThread.execute(ExecuteThread.java:311) 在weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
答案 0 :(得分:0)
如果您使用管理控制台启动weblogic,请在服务器启动时添加jar文件详细信息 - > classpath或者您正在使用脚本在setDomainenv.sh文件中添加jar详细信息然后尝试部署war文件。
答案 1 :(得分:0)
我用Java 8替换了所有罐子。现在它工作正常。谢谢你们的支持。