当前位置: 代码迷 >> J2EE >> weblogic加载spring失败,该如何解决
  详细解决方案

weblogic加载spring失败,该如何解决

热度:13   发布时间:2016-04-22 00:25:47.0
weblogic加载spring失败
环境: liunx weblogic9.2.4 jrokit1.5,发布应用失败,报如下错误。
配置文件如下:
XML code
<module type="startup">        <property name="handler">cn.easyuda.framework.startup.impl.StartUpWithMessageImpl</property>        <!--custom spring bean config-->        <property name="spring">            WEB-INF/custom/spring/beanfactory-common.vm            WEB-INF/custom/metadata/meta-dictionarys.xml            WEB-INF/custom/metadata/meta-domains.xml            WEB-INF/custom/metadata/meta-individual-cutomer-base-info.xml            WEB-INF/custom/metadata/meta-role.xml            WEB-INF/custom/spring/loan.validator.xml                    WEB-INF/custom/spring/loan.page.mapping.remind.xml        </property>        <!--Charset of Spring xml beans. Determined by server charset setting(UTF-8;GBK;...)-->        <property name="charset">GB2312</property>        <!--Show Spring xml log or not-->        <property name="debug">0</property>    </module>    <module type="dynamic.spring">        <property name="loader">cn.easyuda.framework.dynamic.loader.JarFileLoader</property>        <!--separate each jar/package/path by using new line-->        <property name="jar">WEB-INF/lib/uda-business.jar</property>        <property name="package">com.git.loan</property>        <property name="prefix"/>        <property name="suffix">UCC.class</property>        <property name="active">1</property>    </module>    <module type="dynamic.faces">        <property name="loader">cn.easyuda.framework.dynamic.loader.PlainFileLoader</property>        <!--separate each jar/package/path/classpath by using new line-->        <property name="classpath">/WEB-INF/faces</property>        <property name="prefix"/>        <property name="suffix">.xml</property>        <property name="active">1</property>    </module>    <module type="dynamic.tiles">        <property name="loader">cn.easyuda.framework.dynamic.loader.PlainFileLoader</property>        <!--separate each jar/package/path/classpath by using new line-->        <property name="classpath">/WEB-INF/tiles</property>        <property name="prefix"/>        <property name="suffix">.xml</property>        <property name="active">1</property>    </module>

加载到<module type="dynamic.faces">报以下错误。

Java code
[2012-10-13 15:19:39,983]-INFO  (StartUpSpringImpl.java:38)|::Spring配置工厂初始化失败::org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cn.easyuda.framework.logic.cmdexecutor.impl.PlainProxyExecutor.proxy' defined in resource loaded from byte array: Cannot resolve reference to bean 'weblogicJtaTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weblogicJtaTransactionManager' defined in resource loaded from byte array: Invocation of init method failed; nested exception is org.springframework.transaction.TransactionSystemException: JTA TransactionManager is not available at JNDI location [javax/transaction/TransactionManager]; nested exception is javax.naming.AuthenticationException [Root exception is javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User weblogic javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User weblogic denied]    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:730)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)    at cn.easyuda.framework.startup.impl.StartUpSpringImpl.start(StartUpSpringImpl.java:36)    at cn.easyuda.framework.startup.impl.StartUpWithMessageImpl.start(StartUpWithMessageImpl.java:20)    at cn.easyuda.framework.StartUpListener.contextInitialized(StartUpListener.java:38)    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:376)    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:82)    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1622)    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2790)    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:329)    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:205)    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:118)    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:205)    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)    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:26)    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)    at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:139)    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:162)    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
  相关解决方案