JDeveloper Error In Deploying To Weblogic Application Server: "Could not setup environment" (Doc ID 820588.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Oracle JDeveloper - Version 11.1.1.0.0 to 11.1.2.1.0
Information in this document applies to any platform.

Symptoms

On 10gR3 in Production: When attempting to deploy an application which is developed by JDeveloper 11g to WebLogic Server 10.3.0, the following error occurs:

<2009-3-29 ??07?47?26? CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'dptieruiEar'.>
<2009-3-29 ??07?47?26? CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Could not setup environment
  at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1358)
  at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:428)
  at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:182)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
  at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:48)
Truncated. see log file for complete stacktrace
weblogic.deployment.EnvironmentException: [J2EE:160167]The module masterui in application dptieruiEar uses ejb-links but no EJB modules were found for this application.
  at weblogic.deployment.BaseEnvironmentBuilder.addEJBLinkRef
...

STEPS
The issue can be reproduced through the following steps:

  1. Install JDeveloper. Use Oracle Installer to install ADF. Before you add the ADF Runtime into an existing Oracle WebLogic Server 10gR3 installation, you must have obtained the Oracle Installer. You can download the installer from the Oracle Technology Network (OTN) web site at http://www.oracle.com/technology/software/products/jdev/index.html.
  2. Extend the exsisting weblogic server 10gR3 domain.
  3. Open JDeveloper to generate an EAR from customer's application tier.
  4. create connection to WebLogic Server domain:
    Testing JSR-88 ... success.
    Testing JSR-88-LOCAL ... success.
    Testing JSR-160 DomainRuntime ... success.
    Testing JSR-160 Runtime ... success.
    Testing JSR-160 Edit ... success.
    Testing HTTP ... success.
    Testing Server MBeans Model ... success
  5. Use deploy -> to EAR

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms