[英]WebLogic 12.2.1.3.0 deployment issue (weblogic.application.naming.EnvironmentException: Unable to find injection target named)
I've got an issue deploying a spring roo app onto WebLogic. 我在将Spring Roo应用程序部署到WebLogic时遇到问题。 Works fine in Websphere and Tomcat but WebLogic seems to be having difficulties. 在Websphere和Tomcat中工作正常,但WebLogic似乎有困难。 I've gotten the app deployed on a prior 12c weblogic instance before but don't remember which and exactly how. 我之前已经将应用程序部署在先前的12c Weblogic实例上,但是不记得是哪个以及确切的方式。 I've tried pretty much everything in weblogic.xml to reference preferred application packages that the app uses as well as library refs but it keeps giving me the following error for almost all classes: 我已经尝试了weblogic.xml中的几乎所有内容,以引用该应用程序使用的首选应用程序包以及库引用,但是对于几乎所有类,它始终给我以下错误:
weblogic.application.ModuleException: weblogic.application.naming.EnvironmentException: Unable to find injection target named: $interFieldInit$..._Roo_Jpa_ActiveRecord$...$entityManager on class: class ..._Roo_Jpa_ActiveRecord
at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:123)
at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:212)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:207)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:57)
at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:114)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:52)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:631)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:171)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:121)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:348)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:907)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1468)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:459)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:181)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:217)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:14)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
I can't find anything anywhere about that error and how to solve it. 我找不到任何关于该错误以及如何解决它的信息。 I wish it would be a bit more descriptive as to what it might need to make it run. 我希望它可能需要更多的描述才能使其运行。 If anyone else has had this issue, help would be greatly appreciated. 如果还有其他人遇到此问题,将不胜感激。
Thanks! 谢谢!
Looks like Spring configuration issue. 看起来像Spring配置问题。
Integration features for WebLogic Server/Spring are deprecated in Oracle WebLogic Server as of version 12.2.1. 从12.2.1版开始,Oracle WebLogic Server中不推荐使用WebLogic Server / Spring的集成功能。 Also, as of version 12.2.1, the Oracle WebLogic Server Spring console extension is not supported when using JRF or restricted-JRF. 另外,从12.2.1版开始,使用JRF或受限JRF时不支持Oracle WebLogic Server Spring控制台扩展。
For developing and administering Spring applications for Oracle WebLogic Server,refer below: https://docs.oracle.com/middleware/12212/wls/SPRNG/intro.htm#SPRNG288 要为Oracle WebLogic Server开发和管理Spring应用程序,请参考以下内容: https : //docs.oracle.com/middleware/12212/wls/SPRNG/intro.htm#SPRNG288
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.