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.
Use case: after NetBeans 7.0 beta is installed choose Try sample projects Choose J2EE projects -> lottery project Run project after it is created. During deployment, exception is thrown. pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: deps-jar: deps-j2ee-archive: LotteryAnnotation-app-client.init: .init: .deps-jar: Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-ejb/build/jar Copying 2 files to /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-ejb/build/jar/META-INF Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-ejb/build/empty .compile: .library-inclusion-in-manifest: Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-ejb/dist Building jar: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-ejb/dist/LotteryAnnotation-ejb.jar .dist-ear: LotteryAnnotation-app-client.deps-jar: Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-app-client/build/jar Copying 2 files to /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-app-client/build/jar/META-INF Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-app-client/build/empty LotteryAnnotation-app-client.compile: LotteryAnnotation-app-client.library-inclusion-in-manifest: Copying 1 file to /Users/michalo/NetBeansProjects/LotteryAnnotation/build Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-app-client/dist Building jar: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-app-client/dist/LotteryAnnotation-app-client.jar LotteryAnnotation-app-client.dist-ear: .init: .deps-jar: .compile: .library-inclusion-in-manifest: .dist-ear: LotteryAnnotation-war.init: LotteryAnnotation-war.deps-module-jar: LotteryAnnotation-war.deps-ear-jar: .init: .deps-jar: .compile: .library-inclusion-in-manifest: .dist-ear: LotteryAnnotation-war.deps-jar: Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/build/web/WEB-INF/classes Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/build/web/META-INF Copying 1 file to /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/build/web/META-INF Copying 5 files to /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/build/web LotteryAnnotation-war.library-inclusion-in-archive: LotteryAnnotation-war.library-inclusion-in-manifest: Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/build/empty Copying 1 file to /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/build/web/WEB-INF/classes LotteryAnnotation-war.compile: LotteryAnnotation-war.compile-jsps: LotteryAnnotation-war.do-ear-dist: Created dir: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/dist Building jar: /Users/michalo/NetBeansProjects/LotteryAnnotation/LotteryAnnotation-war/dist/LotteryAnnotation-war.war LotteryAnnotation-war.dist-ear: pre-pre-compile: pre-compile: Copying 1 file to /Users/michalo/NetBeansProjects/LotteryAnnotation/build Copying 1 file to /Users/michalo/NetBeansProjects/LotteryAnnotation/build do-compile: Copying 3 files to /Users/michalo/NetBeansProjects/LotteryAnnotation/build/META-INF post-compile: compile: pre-dist: post-dist: dist-directory-deploy: pre-run-deploy: Starting GlassFish Server 3.1 GlassFish Server 3.1 is running. Initial deploying LotteryAnnotation to /Users/michalo/NetBeansProjects/LotteryAnnotation/dist/gfdeploy/LotteryAnnotation Completed initial distribution of LotteryAnnotation Initializing... post-run-deploy: run-deploy: Browsing: ${client.url} /Users/michalo/NetBeansProjects/LotteryAnnotation/nbproject/build-impl.xml:322: 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:78) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor71.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:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.Project.executeTarget(Project.java:1366) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154) BUILD FAILED (total time: 43 seconds)
*** Bug 192161 has been marked as a duplicate of this bug. ***
I cannot reproduce. It works for me. Please check it once again after deletion your .netbeans folder ( in your home dir if it is not overridden ). The latter folder could have cached files from previous NB version. If it still happens please provide a J2EE server which you use.