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.
Still a very simple example of enterprise application. I use NB 6.8rc1. Server side: package ice.server; import javax.ejb.Remote; @Remote public interface ServerBeanRemote { public int add(int a, int b); } package ice.server; import javax.ejb.Stateful; @Stateful public class ServerBean implements ServerBeanRemote { public int add(int a, int b) { return a + b; } } Client side: package ice.client; import ice.server.ServerBeanRemote; import javax.ejb.EJB; /** * * @author lnx */ public class Client { @EJB public static ServerBeanRemote server; /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println(server.add(2, 3)); } } I build and deploy it. no problem. But when I run it, following error comes out: Undeploying ... Initializing... Initial deploying ice to /home/lnx/web/devel/ice/dist/gfdeploy/ice Completed initial distribution of ice post-run-deploy: run-deploy: Browsing: ${client.url} /home/lnx/web/devel/ice/nbproject/build-impl.xml:306: java.net.MalformedURLException: no protocol: ${client.url} at java.net.URL.<init>(URL.java:567) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at org.netbeans.modules.ant.browsetask.NbBrowse.execute(NbBrowse.java:75) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor200.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) BUILD FAILED (total time: 1 second) Please explain! Thank you.
*** This bug has been marked as a duplicate of bug 149195 ***