Results 1 to 2 of 2
  1. #1
    mihael is offline Member
    Join Date
    Dec 2008
    Posts
    4
    Rep Power
    0

    Unhappy error deploying Enterprise application

    Here is my error after creating methods adding ejb module and web application. I run my enterp.applic and error shows as:
    pre-init:
    init-private:
    init-userdir:
    init-user:
    init-project:
    do-init:
    post-init:
    init-check:
    init:
    deps-jar:
    deps-j2ee-archive:
    init:
    deps-module-jar:
    deps-ear-jar:
    init:
    deps-jar:
    compile:
    library-inclusion-in-manifest:
    Building jar: E:\My Documents\NetBeansProjects\ProjectIT407-1\zMLEJBModule\dist\zMLEJBModule.jar
    dist-ear:
    deps-jar:
    library-inclusion-in-archive:
    library-inclusion-in-manifest:
    Copying 1 file to E:\My Documents\NetBeansProjects\ProjectIT407-1\z1EnterpriseApplication3\build
    compile:
    compile-jsps:
    do-ear-dist:
    Building jar: E:\My Documents\NetBeansProjects\ProjectIT407-1\z1WebApplication\dist\z1WebApplication.war
    dist-ear:
    init:
    deps-jar:
    compile:
    library-inclusion-in-manifest:
    dist-ear:
    pre-pre-compile:
    pre-compile:
    do-compile:
    Copying 1 file to E:\My Documents\NetBeansProjects\ProjectIT407-1\z1EnterpriseApplication3\build
    post-compile:
    compile:
    pre-dist:
    do-dist-without-manifest:
    do-dist-with-manifest:
    Building jar: E:\My Documents\NetBeansProjects\ProjectIT407-1\z1EnterpriseApplication3\dist\z1EnterpriseApplic ation3.ear
    post-dist:
    dist:
    pre-run-deploy:
    Distributing E:\My Documents\NetBeansProjects\ProjectIT407-1\z1EnterpriseApplication3\dist\z1EnterpriseApplic ation3.ear to [localhost:4848_server]
    Start registering the project's server resources
    Finished registering server resources
    deployment started : 0%
    Deploying application in domain failed; Error loading deployment descriptors for module [z1EnterpriseApplication3] -- Cannot resolve reference Unresolved Ejb-Ref mlpackage.z1WebApplication/ejbRef@jndi: @null@com.miki.mlNewSessionRemote@Session@null because there are 2 ejbs in the application with interface com.miki.mlNewSessionRemote
    Deployment error:
    The module has not been deployed.
    See the server log for details.
    at org.netbeans.modules.j2ee.deployment.devmodules.ap i.Deployment.deploy(Deployment.java:166)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deplo y.java:104)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    at sun.reflect.GeneratedMethodAccessor261.invoke(Unkn own Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:35 7)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:385)
    at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1298)
    at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Projec t.java:1181)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl .run(BridgeImpl.java:277)
    at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:460)
    at org.netbeans.core.execution.RunClassThread.run(Run ClassThread.java:151)
    Caused by: The module has not been deployed.
    at org.netbeans.modules.j2ee.deployment.devmodules.ap i.Deployment.deploy(Deployment.java:160)
    ... 16 more
    BUILD FAILED (total time: 2 seconds)

  2. #2
    peppem is offline Member
    Join Date
    Jan 2009
    Location
    italy
    Posts
    16
    Rep Power
    0

    Default

    I had the same problem and I can't to explain the reason.

    Try to delete ejb reference where they are referenced (dependency injection, ex. @EJB...)

    And re-run the wizard: "Call Enterprise Bean"
    then undeploy e deploy the ear.
    Article and examples about Java EE world
    http://programmaremobile.blogspot.com

Similar Threads

  1. Replies: 3
    Last Post: 10-28-2010, 03:42 PM
  2. Deploying a java application on an web or appp server.
    By CharanZ in forum Advanced Java
    Replies: 1
    Last Post: 10-29-2008, 11:45 PM
  3. Enterprise application example
    By dmis in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-15-2008, 07:15 PM
  4. (Server)Socket application deploying
    By mdinant in forum Networking
    Replies: 0
    Last Post: 04-09-2008, 06:10 PM
  5. Error while deploying.war in WAS6.1(Plz help)
    By Shweta.pattankar in forum Advanced Java
    Replies: 1
    Last Post: 07-12-2007, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •