Hi all Please guide me as I am trying a simple example in netbeans6 with glassfish2. I have created a simple stateless Session bean
with a local interface
this i am calling from my servlet using Dependency injection
both the packages can be built fine but when I try to deploy the QC-war package from within netbeans I get the following error
Deploying application in domain failed; Error loading deployment descriptors for module [QC-war] -- Cannot resolve reference Unresolved Ejb-Ref qc.web.Ctry/countryListSessionBean@jndi: @null@qc.ejb.CountryListSessionLocal@Session@null Deployment error: The module has not been deployed. See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java: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.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.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(RunClassThread.java:151) Caused by: The module has not been deployed. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157) ... 16 more BUILD FAILED (total time: 1 second)
Can some one please shoqw me as to how I may be able to get this working . Please help.
Many thanks Meherdad Bomanbehram
nitin pai
Ranch Hand
Joined: May 30, 2006
Posts: 185
posted
0
You are in luck, I have already put up the solution in this thread-