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.

Bug 192199 - J2EE Lottery Example throws exception during deployment
Summary: J2EE Lottery Example throws exception during deployment
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Samples (show other bugs)
Version: 7.0
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
: 192161 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-19 21:27 UTC by michal.owsiak
Modified: 2011-02-24 13:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michal.owsiak 2010-11-19 21:27:51 UTC
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)
Comment 1 Denis Anisimov 2011-02-24 07:40:30 UTC
*** Bug 192161 has been marked as a duplicate of this bug. ***
Comment 2 Denis Anisimov 2011-02-24 08:16:23 UTC
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.