NetBeans Forums

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

com.sun.enterprise.appclient.MainWithModuleSupport <init> ran with 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: Thu Nov 19, 2009 12:45 pm    Post subject: com.sun.enterprise.appclient.MainWithModuleSupport <init> ran with Ant Reply with quote

Hi All,
I encountered the following error when trying to run Robot.ear using "ant run" in the project folder:
-----------------------------------------------------------------------------------------------------
-tool-RobotBean-app-client:
[java] 19/11/2009 10:48:56 PM com.sun.enterprise.appclient.MainWithModuleSu
pport <init>
[java] WARNING: ACC003: Application threw an exception.
[java] 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(AppCl
ientInfo.java:205)
[java] at com.sun.enterprise.appclient.AppClientInfo.validateMainClass(
AppClientInfo.java:274)
[java] at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppCl
ientInfo.java:174)
[java] at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppCli
entInfo(AppClientInfoFactory.java:154)
[java] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
nWithModuleSupport.java:366)
[java] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
nWithModuleSupport.java:259)
[java] at com.sun.enterprise.appclient.Main.main(Main.java:200)
[java] Exception in thread "main" java.lang.RuntimeException: java.lang.Ill
egalArgumentException: Could not locate an embedded app client matching the disp
lay name null
[java] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
nWithModuleSupport.java:487)
[java] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
nWithModuleSupport.java:259)
[java] at com.sun.enterprise.appclient.Main.main(Main.java:200)
[java] Caused by: java.lang.IllegalArgumentException: Could not locate an e
mbedded 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(AppCl
ientInfo.java:205)
[java] at com.sun.enterprise.appclient.AppClientInfo.validateMainClass(
AppClientInfo.java:274)
[java] at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppCl
ientInfo.java:174)
[java] at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppCli
entInfo(AppClientInfoFactory.java:154)
[java] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
nWithModuleSupport.java:366)
[java] ... 2 more
[java] Java Result: 1
-java-RobotBean-app-client:
run-RobotBean-app-client:
run:
BUILD SUCCESSFUL
Total time: 1 minute 13 seconds
C:\Documents and Settings\Jack\RobotBean>
----------------------------------------------------------------------------------------------------
I have no problem running Rober.ear in Netbeans. Likewise, I have successfully ran another much smaller EAR application using the same Ant syntax.

This application is using JDK1.6.0_14, Netbeans 6.7, Glassfish v2r2 on Windows XP.

Many thanks,
Jack

Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7. [url=http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/sony/*http%3A//au.docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p3=mailtagline]Enter now[/url].
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