users@glassfish.java.net

Re: appclient doesn't work

From: <glassfish_at_javadesktop.org>
Date: Thu, 14 Jan 2010 19:56:05 PST

Thanks Tim!,

My host is Windows XP Professional Version 2002, Service Pack2
and application server is Sun GlassFish Enterprise Server v3 (build 74.2)

i turned on the echo and found that errors are "There is no script engine for file extension ".js".", so i <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47809025-D896-482E-A0D6-524E7E844D81&displaylang=en" target="_blank">download and install Windows Script 5.7 for Windows XP</a>,

and java can be invoked , but it throws null pointer exception.

java -Dcom.sun.aas.installRoot="C:\Apps\glassfishv3\glassfish\bin\.." -Djava.security.policy="C:\Apps\glassfi
shv3\glassfish\bin\..\lib\appclient\client.policy" -Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader -
Djava.security.auth.login.config="C:\Apps\glassfishv3\glassfish\bin\..\lib\appclient\appclientlogin.conf" -Djava.endorsed.dirs="C:\Apps\glas
sfishv3\glassfish\bin\..\lib\endorsed;C:\Apps\glassfishv3\glassfish\bin\..\modules\endorsed";null -javaagent:"C:\Apps\glassfishv3\glassfish\
bin\..\modules\gf-client.jar"=mode=acscript,arg=-configxml,arg="C:\Apps\glassfishv3\glassfish\bin\..\domains\domain1\config\sun-acc.xml",cli
ent=jar=bookstore-client-1.0.jar -jar bookstore-client-1.0.jar
java.lang.NullPointerException
        at org.glassfish.appclient.client.acc.ACCLogger$1.run(ACCLogger.java:149)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.glassfish.appclient.client.acc.ACCLogger.reviseLogger(ACCLogger.java:146)
        at org.glassfish.appclient.client.acc.ACCLogger.init(ACCLogger.java:93)
        at org.glassfish.appclient.client.acc.ACCLogger.<init>(ACCLogger.java:80)
        at org.glassfish.appclient.client.AppClientFacade.createBuilder(AppClientFacade.java:360)
        at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:247)
        at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:75)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
[Message sent by forum member 'kurtdz' (kurtdz_at_163.com)]

http://forums.java.net/jive/thread.jspa?messageID=381071