Results 1 to 2 of 2
- 01-24-2009, 06:39 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 4
- Rep Power
- 0
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)
- 01-30-2009, 10:46 AM #2
Member
- Join Date
- Jan 2009
- Location
- italy
- Posts
- 16
- Rep Power
- 0
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
-
deploying Java Desktop application with MySql database
By lyjen in forum New To JavaReplies: 3Last Post: 10-28-2010, 02:42 PM -
Deploying a java application on an web or appp server.
By CharanZ in forum Advanced JavaReplies: 1Last Post: 10-29-2008, 10:45 PM -
Enterprise application example
By dmis in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 07-15-2008, 06:15 PM -
(Server)Socket application deploying
By mdinant in forum NetworkingReplies: 0Last Post: 04-09-2008, 05:10 PM -
Error while deploying.war in WAS6.1(Plz help)
By Shweta.pattankar in forum Advanced JavaReplies: 1Last Post: 07-12-2007, 07:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks