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 192161 - Simple Java EE Project fails during deployment
Summary: Simple Java EE Project fails during deployment
Status: RESOLVED DUPLICATE of bug 192199
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:
Depends on:
Blocks:
 
Reported: 2010-11-19 09:02 UTC by michal.owsiak
Modified: 2011-02-24 07:40 UTC (History)
0 users

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 09:02:46 UTC
Use-case:

1. Install recent bundle for macos x
2. Start Server (GlassFish Server 3.1 bundled with NetBeans)
3. Start building new Java EE project
3.a New Project -> Java EE -> Enterprise Application
4. Execute Project that was created in step 3

After some time exception occurs:

pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
EnterpriseApplication1-ejb.init:
EnterpriseApplication1-ejb.deps-jar:
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-ejb/build/classes
Copying 1 file to /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-ejb/build/classes/META-INF
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-ejb/build/empty
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-ejb/build/generated-sources/ap-source-output
EnterpriseApplication1-ejb.compile:
EnterpriseApplication1-ejb.library-inclusion-in-manifest:
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-ejb/dist
Building jar: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-ejb/dist/EnterpriseApplication1-ejb.jar
EnterpriseApplication1-ejb.dist-ear:
EnterpriseApplication1-war.init:
EnterpriseApplication1-war.deps-module-jar:
EnterpriseApplication1-war.deps-ear-jar:
EnterpriseApplication1-ejb.init:
EnterpriseApplication1-ejb.deps-jar:
EnterpriseApplication1-ejb.compile:
EnterpriseApplication1-ejb.library-inclusion-in-manifest:
EnterpriseApplication1-ejb.dist-ear:
EnterpriseApplication1-war.deps-jar:
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/build/web/WEB-INF/classes
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/build/web/META-INF
Copying 1 file to /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/build/web/META-INF
Copying 1 file to /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/build/web
EnterpriseApplication1-war.library-inclusion-in-archive:
EnterpriseApplication1-war.library-inclusion-in-manifest:
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/build/empty
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/build/generated-sources/ap-source-output
EnterpriseApplication1-war.compile:
EnterpriseApplication1-war.compile-jsps:
EnterpriseApplication1-war.do-ear-dist:
Created dir: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/dist
Building jar: /Users/michalo/NetBeansProjects/EnterpriseApplication1/EnterpriseApplication1-war/dist/EnterpriseApplication1-war.war
EnterpriseApplication1-war.dist-ear:
pre-pre-compile:
pre-compile:
Copying 1 file to /Users/michalo/NetBeansProjects/EnterpriseApplication1/build
Copying 1 file to /Users/michalo/NetBeansProjects/EnterpriseApplication1/build
do-compile:
Copying 1 file to /Users/michalo/NetBeansProjects/EnterpriseApplication1/build/META-INF
post-compile:
compile:
pre-dist:
post-dist:
dist-directory-deploy:
pre-run-deploy:
Initial deploying EnterpriseApplication1 to /Users/michalo/NetBeansProjects/EnterpriseApplication1/dist/gfdeploy/EnterpriseApplication1
Completed initial distribution of EnterpriseApplication1
post-run-deploy:
run-deploy:
Browsing: ${client.url}
/Users/michalo/NetBeansProjects/EnterpriseApplication1/nbproject/build-impl.xml:311: 
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.GeneratedMethodAccessor82.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: 6 seconds)
Comment 1 Denis Anisimov 2011-02-24 07:40:30 UTC
First of all this is not a sample project issue.
But it has the same steps to reproduce as other sample issue.
Mark it as duplicate.

*** This bug has been marked as a duplicate of bug 192199 ***