This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
using a recently pulled release6_beta clone register gf v3 create an ejb jar project that targets that server. add a session bean to the project Use the Deploy item on the project's right click menu... See this in the ant output window... Initializing... /export/home/vkraemer/cvs.java.net/glassfish-samples/ws/javaee6/webservices/hello-singleton-ejb/nbproject/build-impl.xml:450: Deployment error: null See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:227) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:135) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor35.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:106) 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:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Caused by: java.lang.NullPointerException at org.netbeans.modules.j2ee.deployment.impl.projects.DeploymentTargetImpl.getClientUrl(DeploymentTargetImpl.java:126) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:207) ... 17 more BUILD FAILED (total time: 0 seconds) One other note.... The deployment actually was successful, this failure is in some of the post processing that takes place to support opening the browser to a specific page... which is kind of irrelevant for an ejb-jar project anyway.
Created attachment 88635 [details] a patch that seems to work
it would be nice to get this fix in for the beta. some of the Java EE 6 samples need to deploy a stand-alone ejb-jar file.
Patch seems to be ok. Fixed in in web-main bf5ccf3d945d. Thanks Vince!
BETA STOPPER => P1 Please integrate into release68_clone ASAP.
There was another NPE hidden in the patch - fixed in web-main d3ed927be9e7.
Transplanted to release68_beta - 239414c96c84 and 64e604e9d07f.
Integrated into 'main-golden', will be available in build *200910030241* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/bf5ccf3d945d User: phejl@netbeans.org Log: #173442 Run on EJB Jar project fails to Deploy
Verified in NetBeans IDE 6.8 Beta (Build 200910020947).
Integrated into 'main-golden', will be available in build *200910061401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/bf5ccf3d945d User: phejl@netbeans.org Log: #173442 Run on EJB Jar project fails to Deploy