[b]appclient does not work when not connected to the Internet. This worked with GF v 3.0, but doesn't work with v3.1 Windows XP is used for this.[/b]
[b]1. Deploy the attached ear file and get client stubs. [/b]
asadmin deploy --force=true --name warehouse .\warehouse.ear
asadmin get-client-stubs --appname warehouse .\client
[b]2. Execute appclient to run the test program.[/b]
appclient -client .\client\warehouseClient.jar
It fails with the following error. See the attached file for details.
C:\>appclient -client .\client\warehouseClient.jar
05/07/2010 4:59:29 PM com.sun.logging.LogDomains$1 log
WARNING: gf.counterpart.configdd.exists
05/07/2010 4:59:50 PM com.sun.logging.LogDomains$1 log
SEVERE: enterprise.deployment.backend.saxParserError
java.io.IOException: Unable to locate the DTD to validate your deployment descriptor file [META-INF/glassfish-application-client.xml] in archive [warehouse-clientClient.jar]. Please make sure the DOCTYPE is correct (no typo in public ID or system ID) and you have proper access
to the Internet.
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:335)
at com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:678)
at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:403)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:374)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:239)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:248)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:209)
omitted...
[b]A proxy server with password is required to connect to the internet in my environment. The output of netstat command suggests that glassfish made an attempt to connect to domainrd.oracle.com. [/b]
C:\>netstat -a | findstr oracle
TCP fastd9133:2604 domainrd.oracle.com:http SYN_SENT
[Message sent by forum member 'tak09']
http://forums.java.net/jive/thread.jspa?messageID=476766