ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Bush <netbeans...@yahoo.com.au>
Subject com.sun.enterprise.appclient.MainWithModuleSupport <init> using working Netbeans EAR with Ant
Date Wed, 03 Feb 2010 04:50:54 GMT

Hi All, 

I am coming across the following error message when trying to run an
enterprise application using Ant despite have successfully built, deployed &
run in Netbeans: 

C:\Documents and Settings\Jack>set 
ANT_HOME=C:\Program Files\NetBeans 6.7\java2\ant 
CLASSPATH=%CLASSPATH%;C:\Program Files\NetBeans
6.7\java2\ant\lib\ant.jar;C:\Program Files\NetBeans
6.7\java2\ant\lib\ant-launcher.jar;C:\Sun\AppServer\lib;C:\S 
un\AppServer\domains\domain1\lib; 
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16 
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\NetBeans 6.7\java2\ant\bin;C:\Program
Files\Java\jdk1.6.0_16\bin;C:\Program
Files\Java\jre6;C:\Sun\AppServer\bin;C:\Program Files\MySQL\MySQL Server
5.1\bin; 

-as-retrieve-option-workaround: 
[copy] Copying 1 file to C:\Documents and
Settings\Jack\EnterpriseApplication\dist 

-tool-EnterpriseApplication-app-client: 
[java] 02/02/2010 12:00:36 AM
com.sun.enterprise.appclient.MainWithModuleSupport <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(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.Ill 
egalArgumentException: 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

Any assistance would be much appreciated. 

Thanks in advance, 

Jack 

-- 
View this message in context: http://old.nabble.com/com.sun.enterprise.appclient.MainWithModuleSupport-%3Cinit%3E-using-working-Netbeans-EAR-with-Ant-tp27431035p27431035.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message