NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to specify working directory of Java EE 5 Apps Client outside of Netbeans using Ant

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Jack Bush
Posted via mailing list.





PostPosted: Mon Oct 18, 2010 1:21 pm    Post subject: How to specify working directory of Java EE 5 Apps Client outside of Netbeans using Ant Reply with quote

Hi All,
I would like to find out how to specify the “working directory” when running an
Java EE 5 Application Client, that belonged to an EAR Netbeans 6.7, GF 2.1
(JDK1.6.0_17) project on Windows XP. Below is the error message encountered when
attempting to run FundsBean.ear outside of Netbeans (command line) using ant:
run-ac:
-as-retrieve-option-workaround:
     [copy] Copying 1 file to C:\Users\jack\InventoryStock\dist
-tool-InventoryStock-app-client:
     [java] 18/10/2010 11:41:43 PM
com.sun.enterprise.appclient.MainWithModuleSupport <init>
     [java] WARNING: ACC003: Application threw an exception.
     [java] java.lang.IllegalArgumentException: Could not locate an embedded
appclient matching the display name null
     [java]     at
com.sun.enterprise.appclient.NestedAppClientInfo.getAppClient(NestedAppClientInfo.java:153)

     [java]     at
com.sun.enterprise.appclient.AppClientInfo.getAppClient(AppClientInfo.java:205)
     [java]     at
com.sun.enterprise.appclient.AppClientInfo.validateMainClass(AppClientInfo.java:274)

     [java]     at
com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo.java:174)
     [java]     at
com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(AppClientInfoFactory.java:154)

     [java]     at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:366)

     [java]     at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)

     [java]     at com.sun.enterprise.appclient.Main.main(Main.java:200)
     [java] Exception in thread "main" java.lang.RuntimeException:
java.lang.IllegalArgumentException: Could not locate an embedded app client
matching the display name null
     [java]     at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:487)

     [java]     at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)

     [java]     at com.sun.enterprise.appclient.Main.main(Main.java:200)
     [java] Caused by: java.lang.IllegalArgumentException: Could not locate an
embedded app client matching the display name null
     [java]     at
com.sun.enterprise.appclient.NestedAppClientInfo.getAppClient(NestedAppClientInfo.java:153)

     [java]     at
com.sun.enterprise.appclient.AppClientInfo.getAppClient(AppClientInfo.java:205)
     [java]     at
com.sun.enterprise.appclient.AppClientInfo.validateMainClass(AppClientInfo.java:274)

     [java]     at
com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo.java:174)
     [java]     at
com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(AppClientInfoFactory.java:154)

     [java]     at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:366)

     [java]     ... 2 more
     [java] Java Result: 1
-java-InventoryStock-app-client:
run-InventoryStock-app-client:
run:
I had no problem building or deploying InventoryStock.ear. In fact, the whole
application runs perfectly in Netbeans. I notice that it was necessary to
specify the working directory  of a third-party jar, which insists on
specifiying the installation directory under InventoryStock-app-client. However,
I could not find such “Working directory” in any of the project.properties
files.
I am looking for the command line switch used by Ant to refer to the
working/installation directory of the third-party jar.
Thanks in adavance,
Jack
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
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