users@glassfish.java.net

Re: Application client - "Error Launching Application"

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Jan 2008 10:23:06 PST

One other debugging step that may help is this. Find the jvm-options definitions in your domain.xml and add this one:

<jvm-options>-Dcom.sun.aas.jws.retainTempFiles=true</jvm-options>

(You can do this using the admin GUI as well as by directly editing the domain.xml file.)

Then restart the server and launch the app client again. Among other things this will cause the ACC to keep the generated policy file. It will be in the temporary directory with a prefix "jwsacc" and the file type ".policy" and the middle part of the file name randomly chosen. Please post a small part of that file that shows how the encoding has been handled in writing the policy file.

Then turn off the temporary file retention to avoid clogging up your temporary directory.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

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