简体   繁体   English

异常:weblogic.application.ModuleException:javax.naming.NameNotFoundException

[英]Exception :weblogic.application.ModuleException: javax.naming.NameNotFoundException

I am trying to upgrade Weblogic 12.1.0 with Weblogic 12.1.1. 我正在尝试使用Weblogic 12.1.1升级Weblogic 12.1.0。 I have made all the necessary changes in the application. 我已经在应用程序中进行了所有必要的更改。 Application was successfully build. 应用程序已成功构建。 But server is not getting started and giving me this exception. 但是服务器没有启动,并给了我这个例外。

I have checked all the DataSources. 我已经检查了所有的数据源。 They all are working fine. 他们都工作正常。

EXCEPTION: 例外:

<Feb 5, 2018, 2:49:16,498 AM EST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application "_appsdir_enterprise-core_jar" due to error weblogic.application.ModuleException: javax.naming.NameNotFoundException: While trying to lookup 'com.nextjet.enterprise.affiliate.affiliatemanager.AffiliateManagerHome' didn't find subcontext 'affiliate'. Resolved 'com.nextjet.enterprise'; remaining name 'affiliate/affiliatemanager/AffiliateManagerHome'weblogic.application.ModuleException: javax.naming.NameNotFoundException: While trying to lookup 'com.nextjet.enterprise.affiliate.affiliatemanager.AffiliateManagerHome' didn't find subcontext 'affiliate'. Resolved 'com.nextjet.enterprise'; remaining name 'affiliate/affiliatemanager/AffiliateManagerHome'
    at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
    at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:192)
    at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:187)
    at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)

The error you posted denotes a problem looking up a JNDI entry, something which your application references in the description files but was not registered. 您发布的错误表示查找JNDI条目时出现问题,您的应用程序在描述文件中引用了该问题,但尚未注册。 If you take a look at the JNDI tree on the target you are deploying on with the admin console you should find a com/nextjet/enterprise entry but not the expected com/nextjet/enterprise/affiliate/affiliatemanager/AffiliateManagerHome. 如果您通过管理控制台查看要在其上进行部署的目标上的JNDI树,则应该找到com / nextjet / enterprise条目,但找不到预期的com / nextjet / enterprise / affiliate / affiliatemanager / AffiliateManagerHome。

Either an earlier started deployment should have registered some object to this name, or you are missing some configuration item such as a data source. 较早开始的部署应该已经为此名称注册了一些对象,或者您缺少了一些配置项,例如数据源。 If you still have your 12.1.0 environment running, you could try looking up this entry in the old JNDI tree to figure out what kind of object is at that entry and where in the deployment or bootup process it should have been registered. 如果仍在运行12.1.0环境,则可以尝试在旧的JNDI树中查找此条目,以找出该条目上的对象类型以及该对象应在部署或启动过程中的哪个位置进行注册。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM