users@glassfish.java.net

Re: Couldn't run Application Client on GFv3.0

From: <glassfish_at_javadesktop.org>
Date: Mon, 19 Apr 2010 22:58:12 PDT

Hi Tim,

Tim>How about if you start GlassFish from outside NetBeans but deploy the app using the NetBeans ant script?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Jack\HelloNB68GF31GF31>set
ANT_HOME=C:\Program Files\NetBeans 6.8\java3\ant
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_19
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\NetBeans 6.9\java3\ant\bin;C:\Program
Files\Java\jdk1.6.0_19\bin;C:\Program Files\Java\jre6\bin;C:\Program Files\glassfishv3\bin;C:\Program Files\glassfishv3\glassfish\bin;

C:\Documents and Settings\Jack\HelloNB68GF31GF31>asadmin list-domains

Name: domain1 Status: Running
Command list-domains executed successfully.

C:\Documents and Settings\Jack\HelloNB68GF31GF31>ant run-deploy

[b]-deploy-ant:
     [echo] Deploying dist/HelloNB68GF31.ear
      [get] Getting: http://localhost:8080/__asadmin/deploy?path=C:\Documents and Settings\Jack\HelloNB68GF31\dist\HelloNB68GF31.ear?force=true?name=HelloNB68GF31
      [get] To: C:\DOCUME~1\Jack\LOCALS~1\Temp\gfv32140852629
      [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/__asadmin/deploy?path=C:\Docume
nts and Settings\Jack\HelloNB68GF31\dist\HelloNB68GF31.ear?force=true?name=HelloNB68GF31
      [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/__asadmin/deploy?path=C:\Documents and Settings\Jack\HelloNB68GF31\dist\HelloNB68GF31.ear?force=true?name=HelloNB68GF31
      [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/__asadmin/deploy?path=C:\Docume
nts and Settings\Jack\HelloNB68GF31\dist\HelloNB68GF31.ear?force=true?name=HelloNB68GF31
      [get] Can't get http://localhost:8080/__asadmin/deploy?path=C:\Documents and Settings\Jack\HelloNB68GF31\dist\HelloNB68GF31.ear?force=true?name=HelloNB68GF31 to C:\
DOCUME~1\Jack\LOCALS~1\Temp\gfv32140852629

BUILD FAILED
C:\Documents and Settings\Jack\HelloNB68GF31\nbproject\ant-deploy.xml:50: Can't get http://localhost:8080/__asadmin/deploy?path=C:\Documents and Settings\Jack\H
elloNB68\dist\HelloNB68GF31.ear?force=true?name=HelloNB68GF31 to C:\DOCUME~1\Jack\LOCALS~1\Temp\gfv32140852629[/b]

Tim> What if you take NetBeans completely out of the picture, and start GlassFish and deploy the app using asadmin commands only, not even the NetBeans ant script?

C:\Documents and Settings\Jack\HelloNB68GF31>asadmin deploy --retrieve c:\Temp\localdir "C:\Documents and Settings\Jack\HelloNB68GF31\dist\HelloNB68GF31.ear"
Deleted pre-existing file c:\Temp\localdir\HelloNB68GF31Client\HelloNB68GF31-app-client.jar before extracting transferred file
Extracted transferred entry HelloNB68GF31Client/HelloNB68GF31-app-client.jar to c:\Temp\localdir\HelloNB68GF31Client\HelloNB68GF31-app-client.jar
Deleted pre-existing file c:\Temp\localdir\HelloNB68GF31Client\HelloNB68GF31-ejb.jar before extracting transferred file
Extracted transferred entry HelloNB68GF31Client/HelloNB68GF31-ejb.jar to c:\Temp\localdir\HelloNB68GF31Client\HelloNB68GF31-ejb.jar
Deleted pre-existing file c:\Temp\localdir\HelloNB68GF31Client.jar before extracting
 transferred file
Extracted transferred entry HelloNB68GF31Client.jar to c:\Temp\localdir\HelloNB68GF31Client.jar
Deleted pre-existing file c:\Temp\localdir\HelloNB68GF31Client\HelloNB68GF31-app-clientClient.jar before extracting transferred file
Extracted transferred entry HelloNB68GF31Client/HelloNB68GF31-app-clientClient.jar to c:\Temp\localdir\HelloNB68GF31Client\HelloNB68GF31-app-clientClient.jar
Application deployed successfully with name HelloNB68GF31.

Command deploy executed successfully.

C:\Documents and Settings\Jack\HelloNB68GF31>appclient -client c:\Temp\localdir\HelloNB68GF31Client.jar
20/04/2010 1:39:43 PM com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate

[b]Hello Netbeans 6.8, Glassfish v3.1[/b]

In short, the problem appears to be a Netbeans 6.8 one when it comes to deployment. However, the Admin Console not available to either Internet Explorer 8.0 or Firefix 3.5.4 (worked with GF3.0 & earlier).

Also attached the new Server.log & JVM.log for your reference.

Thanks,

Jack
[Message sent by forum member 'htran_888']

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