My Oracle Support Banner

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

Last updated on JANUARY 11, 2018

Applies to:

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


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(
  at weblogic.servlet.internal.WebAppModule.activate(
  at weblogic.application.internal.flow.ModuleStateDriver$
  at weblogic.application.utils.StateMachineDriver.nextState(
  at weblogic.application.internal.flow.ModuleStateDriver.activate(
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

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
  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


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.