Bug 206643 - ${wa.copy.client.jar} appears explicitly in path for EEClient projects.
${wa.copy.client.jar} appears explicitly in path for EEClient projects.
Status: REOPENED
Product: serverplugins
Classification: Unclassified
Component: GlassFish
7.0.1
All All
: P3 with 2 votes (vote)
: 7.4
Assigned To: TomasKraus
issues@serverplugins
NB_ONLY
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-22 15:33 UTC by efhilton
Modified: 2014-03-03 00:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description efhilton 2011-12-22 15:33:07 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Linux version 3.0.0-14-generic running on amd64
Java; VM; Vendor = 1.6.0_23
Runtime = OpenJDK 64-Bit Server VM 20.0-b11

The path is incorrect. I get the following error:

Warning: Could not find file /home/efhilton/NetBeansProjects/LacoLeakDetector/ApplicationClient3/${wa.copy.client.jar.from}/ApplicationClient3/ApplicationClient3Client.jar to copy.
Warning: /home/efhilton/NetBeansProjects/LacoLeakDetector/ApplicationClient3/${wa.copy.client.jar.from}/ApplicationClient3 does not exist.
/home/efhilton/NetBeansProjects/LacoLeakDetector/ApplicationClient3/nbproject/build-impl.xml:653: /home/efhilton/NetBeansProjects/LacoLeakDetector/ApplicationClient3/${wa.copy.client.jar.from}/ApplicationClient3 does not exist.

To recreate (I did this multiple times in both 7.0.1 and 7.1beta2):

1. Create a new Java Enterprise Client project.
2. Alt+Insert: "Send Email"
3. Add the following to the main function: 
        new Main().sendMail("edgar.hilton@gmail.com", "Test @ " + new Date(), "Test from your friendly Programmer");
4. Click on "run".

You get the error described above. I tried this many times, and I get the exact same result.
Comment 1 David Konecny 2012-04-12 23:33:26 UTC
What application server do you use? The missing value is supposed to come from server.

I tried this on GlassFish 3.1.1 and it worked fine. My guess is that you must be using some non-GlassFish server and you are hitting the problem that only GlassFish is supported for App Client deployment.
Comment 2 jerryatapi 2013-03-15 16:18:28 UTC
(In reply to comment #1)
> What application server do you use? The missing value is supposed to come from
> server.
> 
> I tried this on GlassFish 3.1.1 and it worked fine. My guess is that you must
> be using some non-GlassFish server and you are hitting the problem that only
> GlassFish is supported for App Client deployment.

Problem exists with GlassFish 3.1.2.2. After following the enterprise app client tutorial, I get this error:

run-deploy:
Warning: Could not find file C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient\EntAppClientClient.jar to copy.
Warning: C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient does not exist.
C:\aces-III\EntAppClient\nbproject\build-impl.xml:982: C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient does not exist.
Comment 3 jerryatapi 2013-03-15 16:22:24 UTC
(In reply to comment #1)
> What application server do you use? The missing value is supposed to come from
> server.
> 
> I tried this on GlassFish 3.1.1 and it worked fine. My guess is that you must
> be using some non-GlassFish server and you are hitting the problem that only
> GlassFish is supported for App Client deployment.

Problem exists with GlassFish 3.1.2.2. After following the enterprise app client tutorial, I get this error:

run-deploy:
Warning: Could not find file C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient\EntAppClientClient.jar to copy.
Warning: C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient does not exist.
C:\aces-III\EntAppClient\nbproject\build-impl.xml:982: C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient does not exist.(In reply to comment #2)
> (In reply to comment #1)
> > What application server do you use? The missing value is supposed to come from
> > server.
> > 
> > I tried this on GlassFish 3.1.1 and it worked fine. My guess is that you must
> > be using some non-GlassFish server and you are hitting the problem that only
> > GlassFish is supported for App Client deployment.
> 
> Problem exists with GlassFish 3.1.2.2. After following the enterprise app
> client tutorial, I get this error:
> 
> run-deploy:
> Warning: Could not find file
> C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient\EntAppClientClient.jar
> to copy.
> Warning: C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient does
> not exist.
> C:\aces-III\EntAppClient\nbproject\build-impl.xml:982:
> C:\aces-III\EntAppClient\${wa.copy.client.jar.from}\EntAppClient does not
> exist.

More detail:

App client deployment works correctly with NB's bundled GlassFish. Failure occurs with a remote GF. Java versions 6 and 7. NB version is 7.2.1.
Comment 4 raelianer 2013-09-11 22:45:12 UTC
I tried to follow the instructions of David Heffelfinger - Java EE Development with NetBeans 7 and I have the same problem with NB 7.3.1 and Glassfish 4, here deployed on the bundled server:

INFO:   ACDEPL104: Java Web Start services stopped for the app client SessionBeanIntro/SessionBeanIntro-app-client.jar
INFO:   visiting unvisited references
INFO:   visiting unvisited references
INFO:   visiting unvisited references
INFO:   EJB5181:Portable JNDI names for EJB Echo: [java:global/SessionBeanIntro/SessionBeanIntro-ejb/Echo, java:global/SessionBeanIntro/SessionBeanIntro-ejb/Echo!de.richie.sessionbeanintro.ejb.EchoRemote]
INFO:   EJB5182:Glassfish-specific (Non-portable) JNDI names for EJB Echo: [de.richie.sessionbeanintro.ejb.EchoRemote#de.richie.sessionbeanintro.ejb.EchoRemote, de.richie.sessionbeanintro.ejb.EchoRemote]
WARNING:   ACDEPL112: The following extensions or libraries are referenced from the manifest of C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\dist\gfdeploy\SessionBeanIntro\SessionBeanIntro-app-client.jar but were not found where indicated: SessionBeanIntroClientLib.jar ; ignoring and continuing
INFO:   ACDEPL103: Java Web Start services started for the app client SessionBeanIntro/SessionBeanIntro-app-client.jar (contextRoot: /SessionBeanIntro/SessionBeanIntro-app-client)
INFO:   SessionBeanIntro wurde erfolgreich bereitgestellt in 5.324 Millisekunden.

I get the above warning, but it's successfully executed.
Deploying on my remote server does not work.
Comment 5 raelianer 2013-09-11 23:00:13 UTC
And here is what I get when trying to deploy on the remote server:

[2013-09-12T00:52:44.268+0200] [glassfish 4.0] [INFO] [enterprise.deployment.appclient.jws.stopped] [javax.enterprise.system.container.appclient.org.glassfish.appclient.server.core] [tid: _ThreadID=116 _ThreadName=admin-listener(11)] [timeMillis: 1378939964268] [levelValue: 800] [[
  ACDEPL104: Java Web Start services stopped for the app client SessionBeanIntro/SessionBeanIntro-app-client.jar]]
[2013-09-12T00:52:45.127+0200] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965127] [levelValue: 800] [[
  visiting unvisited references]]
[2013-09-12T00:52:45.173+0200] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965173] [levelValue: 800] [[
  visiting unvisited references]]
[2013-09-12T00:52:45.248+0200] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965248] [levelValue: 800] [[
  visiting unvisited references]]
[2013-09-12T00:52:45.445+0200] [glassfish 4.0] [INFO] [ejb.portable_jndi_names] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965445] [levelValue: 800] [[
  EJB5181:Portable JNDI names for EJB Echo: [java:global/SessionBeanIntro/SessionBeanIntro-ejb/Echo, java:global/SessionBeanIntro/SessionBeanIntro-ejb/Echo!de.richie.sessionbeanintro.ejb.EchoRemote]]]
[2013-09-12T00:52:45.445+0200] [glassfish 4.0] [INFO] [ejb.glassfish_specific_jndi_names] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965445] [levelValue: 800] [[
  EJB5182:Glassfish-specific (Non-portable) JNDI names for EJB Echo: [de.richie.sessionbeanintro.ejb.EchoRemote#de.richie.sessionbeanintro.ejb.EchoRemote, de.richie.sessionbeanintro.ejb.EchoRemote]]]
[2013-09-12T00:52:45.879+0200] [glassfish 4.0] [WARNING] [enterprise.deployment.appclient.jws.extension.error] [javax.enterprise.system.container.appclient.org.glassfish.appclient.server.core.jws] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965879] [levelValue: 900] [[
  ACDEPL112: The following extensions or libraries are referenced from the manifest of /opt/glassfish4/glassfish/domains/domain1/applications/SessionBeanIntro/SessionBeanIntro-app-client.jar but were not found where indicated: SessionBeanIntroClientLib.jar ; ignoring and continuing]]
[2013-09-12T00:52:45.911+0200] [glassfish 4.0] [INFO] [enterprise.deployment.appclient.jws.started] [javax.enterprise.system.container.appclient.org.glassfish.appclient.server.core] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965911] [levelValue: 800] [[
  ACDEPL103: Java Web Start services started for the app client SessionBeanIntro/SessionBeanIntro-app-client.jar (contextRoot: /SessionBeanIntro/SessionBeanIntro-app-client)]]
[2013-09-12T00:52:45.972+0200] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=35 _ThreadName=admin-listener(5)] [timeMillis: 1378939965972] [levelValue: 800] [[
  SessionBeanIntro wurde erfolgreich bereitgestellt in 903 Millisekunden.]]






ant -f C:\\Users\\Richard\\Documents\\NetBeansProjects\\SessionBeanIntro -DforceRedeploy=false -Ddirectory.deployment.supported=false run
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
SessionBeanIntro-app-client.init:
SessionBeanIntroClientLib.init:
SessionBeanIntroClientLib.deps-jar:
Updating property file: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\built-jar.properties
SessionBeanIntroClientLib.compile:
Building jar: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\dist\SessionBeanIntroClientLib.jar
SessionBeanIntroClientLib.jar:
SessionBeanIntro-app-client.deps-jar:
SessionBeanIntro-app-client.compile:
SessionBeanIntro-app-client.library-inclusion-in-manifest:
Copying 1 file to C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\build\lib
SessionBeanIntro-app-client.dist-ear:
SessionBeanIntro-ejb.init:
SessionBeanIntroClientLib.init:
Deleting: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\built-jar.properties
SessionBeanIntroClientLib.deps-jar:
Updating property file: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\built-jar.properties
SessionBeanIntroClientLib.init:
SessionBeanIntroClientLib.deps-clean:
Updating property file: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\built-clean.properties
Deleting directory C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build
SessionBeanIntroClientLib.clean:
Created dir: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\classes
Created dir: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\empty
Created dir: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\generated-sources\ap-source-output
Compiling 1 source file to C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\build\classes
SessionBeanIntroClientLib.compile:
Created dir: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\dist
Building jar: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntroClientLib\dist\SessionBeanIntroClientLib.jar
SessionBeanIntroClientLib.jar:
SessionBeanIntro-ejb.deps-jar:
SessionBeanIntro-ejb.compile:
SessionBeanIntro-ejb.library-inclusion-in-manifest:
Copying 1 file to C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\build\lib
Building jar: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\SessionBeanIntro-ejb\dist\SessionBeanIntro-ejb.jar
SessionBeanIntro-ejb.dist-ear:
pre-pre-compile:
pre-compile:
Copying 1 file to C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\build
do-compile:
post-compile:
compile:
pre-dist:
Building jar: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\dist\SessionBeanIntro.ear
post-dist:
dist-directory-deploy:
pre-run-deploy:
Undeploying ...
Initializing...
Distributing C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\dist\SessionBeanIntro.ear to [Remote GlassFish Server]
Initializing...
post-run-deploy:
run-deploy:
run-display-browser:
run-ac:
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
Warning: Could not find file C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\${wa.copy.client.jar.from}\SessionBeanIntro\SessionBeanIntroClient.jar to copy.
Warning: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\${wa.copy.client.jar.from}\SessionBeanIntro does not exist.
C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\nbproject\build-impl.xml:373: The following error occurred while executing this line:
C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\nbproject\build-impl.xml:389: C:\Users\Richard\Documents\NetBeansProjects\SessionBeanIntro\${wa.copy.client.jar.from}\SessionBeanIntro does not exist.
BUILD FAILED (total time: 13 seconds)
Comment 6 alangiv 2014-03-03 00:41:59 UTC
Same issue on Netbeans 8.0RC1, Windows 7 x64, Java 1.7.0_51 x64
The Glassfish server is 4.0, running on a Linux server. Remote deploy works properly from what I can see.  Build completes for client, server, etc without any warnings or errors.

Running the client project through Netbeans produces this error:
Warning: Could not find file H:\src\java\netbeans\Server\ClientTry\${wa.copy.client.jar.from}\ClientTry\ClientTryClient.jar to copy.
Warning: H:\src\java\netbeans\Server\ClientTry\${wa.copy.client.jar.from}\ClientTry does not exist.
H:\src\java\netbeans\Server\ClientTry\nbproject\build-impl.xml:957: H:\src\java\netbeans\Server\ClientTry\${wa.copy.client.jar.from}\ClientTry does not exist.
BUILD FAILED (total time: 8 seconds)


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo