weblogic踩坑之javax.sql.DataSource

在启动weblogic服务时,报错,昨天还好好的:

javax.ejb.EJBException: EJB Exception: : com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.sql.DataSource; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:241)

at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:223)

at com.oracle.pitchfork.spi.bean.internal.GeneralBeanManager.getBean(GeneralBeanManager.java:24)

at com.oracle.pitchfork.spi.EjbComponentCreatorBrokerImpl.getBean(EjbComponentCreatorBrokerImpl.java:82)

at weblogic.ejb.container.injection.EjbComponentCreatorImpl.getBean(EjbComponentCreatorImpl.java:57)

at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:220)

at weblogic.ejb.container.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:235)

at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:303)

at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:206)

at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:132)

at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:148)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:241)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:188)

at weblogic.ejb.container.internal.StatelessLocalObject.__WL_preInvoke(StatelessLocalObject.java:52)

at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:23)

at com.yicomm.system.service.impl.KeyLabelFacade_dj8eqm_KeyLabelFacadeLocalImpl.findListByFieldCode(Unknown Source)

at com.yicomm.system.web.servlet.InitServlet.init(InitServlet.java:115)

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.(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.BasicDeployment.activate(BasicDeployment.java:184)

at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

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:180)

at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)

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)

Caused by: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.getUniqueInstanceOfType(Jsr250Metadata.java:304)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByType(Jsr250Metadata.java:298)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:285)

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:235)

... 58 more

; nested exception is: com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.sql.DataSource; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.sql.DataSource; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:241)

at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:223)

at com.oracle.pitchfork.spi.bean.internal.GeneralBeanManager.getBean(GeneralBeanManager.java:24)

at com.oracle.pitchfork.spi.EjbComponentCreatorBrokerImpl.getBean(EjbComponentCreatorBrokerImpl.java:82)

at weblogic.ejb.container.injection.EjbComponentCreatorImpl.getBean(EjbComponentCreatorImpl.java:57)

at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:220)

at weblogic.ejb.container.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:235)

at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:303)

at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:206)

at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:132)

at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:148)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:241)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:188)

at weblogic.ejb.container.internal.StatelessLocalObject.__WL_preInvoke(StatelessLocalObject.java:52)

at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:23)

at com.yicomm.system.service.impl.KeyLabelFacade_dj8eqm_KeyLabelFacadeLocalImpl.findListByFieldCode(Unknown Source)

at com.yicomm.system.web.servlet.InitServlet.init(InitServlet.java:115)

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.(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.BasicDeployment.activate(BasicDeployment.java:184)

at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

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:180)

at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)

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)

Caused by: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.getUniqueInstanceOfType(Jsr250Metadata.java:304)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByType(Jsr250Metadata.java:298)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:285)

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:235)

... 58 more

javax.ejb.EJBException: EJB Exception: : com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.sql.DataSource; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:241)

at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:223)

at com.oracle.pitchfork.spi.bean.internal.GeneralBeanManager.getBean(GeneralBeanManager.java:24)

at com.oracle.pitchfork.spi.EjbComponentCreatorBrokerImpl.getBean(EjbComponentCreatorBrokerImpl.java:82)

at weblogic.ejb.container.injection.EjbComponentCreatorImpl.getBean(EjbComponentCreatorImpl.java:57)

at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:220)

at weblogic.ejb.container.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:235)

at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:303)

at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:206)

at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:132)

at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:148)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:241)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:188)

at weblogic.ejb.container.internal.StatelessLocalObject.__WL_preInvoke(StatelessLocalObject.java:52)

at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:23)

at com.yicomm.system.service.impl.KeyLabelFacade_dj8eqm_KeyLabelFacadeLocalImpl.findListByFieldCode(Unknown Source)

at com.yicomm.system.web.servlet.InitServlet.init(InitServlet.java:115)

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.(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.BasicDeployment.activate(BasicDeployment.java:184)

at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

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:180)

at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)

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)

Caused by: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.getUniqueInstanceOfType(Jsr250Metadata.java:304)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByType(Jsr250Metadata.java:298)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:285)

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:235)

... 58 more

; nested exception is: com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.sql.DataSource; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at weblogic.ejb.container.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:156)

at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:887)

at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:818)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:266)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:188)

at weblogic.ejb.container.internal.StatelessLocalObject.__WL_preInvoke(StatelessLocalObject.java:52)

at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:23)

at com.yicomm.system.service.impl.KeyLabelFacade_dj8eqm_KeyLabelFacadeLocalImpl.findListByFieldCode(Unknown Source)

at com.yicomm.system.web.servlet.InitServlet.init(InitServlet.java:115)

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.(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.BasicDeployment.activate(BasicDeployment.java:184)

at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

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:180)

at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)

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)

Caused by: com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.sql.DataSource; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:241)

at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:223)

at com.oracle.pitchfork.spi.bean.internal.GeneralBeanManager.getBean(GeneralBeanManager.java:24)

at com.oracle.pitchfork.spi.EjbComponentCreatorBrokerImpl.getBean(EjbComponentCreatorBrokerImpl.java:82)

at weblogic.ejb.container.injection.EjbComponentCreatorImpl.getBean(EjbComponentCreatorImpl.java:57)

at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:220)

at weblogic.ejb.container.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:235)

at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:303)

at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:206)

at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:132)

at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:148)

at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:241)

... 47 more

Caused by: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@2148edb2]; startup date [Fri Jun 17 09:52:53 CST 2022]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@4b36ce57

at com.oracle.pitchfork.inject.Jsr250Metadata.getUniqueInstanceOfType(Jsr250Metadata.java:304)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByType(Jsr250Metadata.java:298)

at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:285)

at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:235)

... 58 more



你猜什么原因造成的。

数据库没开启,无语了。

你可能感兴趣的:(weblogic踩坑之javax.sql.DataSource)