glassfish wrote:
>
> Look in this part of the guide
> Developing Applications and Application Components
> +-- Developing Java Clients
> - Tim
>
I have spent some time reviewing the application-client.xml,
sun-application-client.xml, sun-acc.xml, and client.policy files and
re-running the program
(C:\AppTest\appclient\bin>C:\AppTest\appclient\bin\appclient -client
C:\source\projects\JMS\ProducerAppClient\dist\ProducerAppClient.jar queue 3
(Note that ProducerAppClient.jar is only a renamed producer.java from the
tutorial examples.)). I tried adding zoltan's suggested:
//the following 2 lines are equivalent with setting Java VM parameters
with the same
//name and value (like -Dorg.omg.CORBA.ORBInitialHost=serverhost)
System.setProperty( "org.omg.CORBA.ORBInitialHost", "Programmer1" );
//default is localhost
System.setProperty( "org.omg.CORBA.ORBInitialPort", "3700" ); //default
Using the 'appclient.bat' which resulted from using the package-appclient
command I run the program as indicated previously and the returned
stacktrace is:
C:\AppTest\appclient\bin>C:\AppTest\appclient\bin\appclient -client
C:\source\projects\JMS\ProducerAppClient\dist\ProducerAppClient.jar queue 3
Jan 11, 2008 12:23:10 PM com.sun.enterprise.appclient.MainWithModuleSupport
<init>
WARNING: ACC003: Application threw an exception.
java.lang.RuntimeException: Error checking for persistence unit annotations
in the main class
at
com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnnotation(StandAloneAppClientInfo.java:101)
at
com.sun.enterprise.appclient.AppClientInfo.mainClassContainsPURefcAnnotations(AppClientInfo.java:413)
at
com.sun.enterprise.appclient.AppClientInfo.appClientDependsOnPersistenceUnit(AppClientInfo.java:382)
at
com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo.java:175)
at
com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(AppClientInfoFactory.java:149)
at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:366)
at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)
at com.sun.enterprise.appclient.Main.main(Main.java:200)
Caused by: java.lang.NullPointerException
at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)
at java.util.jar.JarFile.getInputStream(JarFile.java:383)
at
com.sun.enterprise.deployment.util.AnnotationDetector.containsAnnotation(AnnotationDetector.java:152)
at
com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnnotation(StandAloneAppClientInfo.java:99)
... 7 more
Exception in thread "main" java.lang.RuntimeException:
java.lang.RuntimeException: Error checking for persistence unit annotations
in the main class
at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:454)
at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)
at com.sun.enterprise.appclient.Main.main(Main.java:200)
Caused by: java.lang.RuntimeException: Error checking for persistence unit
annotations in the main class
at
com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnnotation(StandAloneAppClientInfo.java:101)
at
com.sun.enterprise.appclient.AppClientInfo.mainClassContainsPURefcAnnotations(AppClientInfo.java:413)
at
com.sun.enterprise.appclient.AppClientInfo.appClientDependsOnPersistenceUnit(AppClientInfo.java:382)
at
com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo.java:175)
at
com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(AppClientInfoFactory.java:149)
at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:366)
... 2 more
Caused by: java.lang.NullPointerException
at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)
at java.util.jar.JarFile.getInputStream(JarFile.java:383)
at
com.sun.enterprise.deployment.util.AnnotationDetector.containsAnnotation(AnnotationDetector.java:152)
at
com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnnotation(StandAloneAppClientInfo.java:99)
... 7 more
I know a trained eye would know where to look and may possibly resolve the
problem in a very short time. I am asking your expertise (as much as you
possibly can give) to help me understand what I am doing wrong (as far as
you can see). I may hear back from z, but I am hoping for some assistance
from you also. A big thank you in advance as well as z.
--
View this message in context: http://www.nabble.com/Accessing-a-JMS-Resource-on-a-Remote-Server-tp14580977p14763273.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.