[jboss-jira] [JBoss JIRA] Updated: (JBASM-12) Cannot stop the server when jndi is not available remotely

Shelly McGowan (JIRA) jira-events at lists.jboss.org
Mon Sep 29 10:04:22 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBASM-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shelly McGowan updated JBASM-12:
--------------------------------


Index: src/main/java/org/jboss/jbossas/servermanager/Server.java
===================================================================
--- src/main/java/org/jboss/jbossas/servermanager/Server.java   (revision 78829)
+++ src/main/java/org/jboss/jbossas/servermanager/Server.java   (working copy)
@@ -95,6 +95,9 @@
+
+   /**
+    *
+    * Get the URL to pass to --server 
+    *
+    */
+   public String getServerUrl()
+   {
+       serverUrl = getSysProperty("jbosstest.server.url");
+
+       if (null == serverUrl ) 
+               return getRmiUrl();
+
+       return serverUrl;
+   }
+
+
 }
Index: src/main/java/org/jboss/jbossas/servermanager/ServerController.java
===================================================================
--- src/main/java/org/jboss/jbossas/servermanager/ServerController.java (revision 78829)
+++ src/main/java/org/jboss/jbossas/servermanager/ServerController.java (working copy)
@@ -352,7 +352,7 @@
       }
 
       String execCmd = manager.getJavaExecutable() + " -cp " + manager.getStopClasspath() + " ";
-      execCmd = execCmd + SHUTDOWN_CLASS + " --server " + server.getRmiUrl();
+      execCmd = execCmd + SHUTDOWN_CLASS + " --server " + server.getServerUrl();
       execCmd = execCmd + strAuth +" --shutdown";
       return execCmd;
    }


> Cannot stop the server when jndi is not available remotely
> ----------------------------------------------------------
>
>                 Key: JBASM-12
>                 URL: https://jira.jboss.org/jira/browse/JBASM-12
>             Project: JBoss AS Server Manager
>          Issue Type: Feature Request
>            Reporter: Adrian Brock
>            Assignee: Shelly McGowan
>             Fix For: 0.1.2.GA
>
>
> The stop server task does not allow the jndi properties to be overridden
> and assumes jnp: will be used.
> When testing the "web-profile" there is no remote jndi, although for testing purposes
> I have made it available over http which requires the fix JBAS-5922
> For now I've hacked the tests to shutdown the server manually with the http url before invoking server:stop
> to avoid it complaining, but there should really be an option to pass in the jndi url
> See jboss-head/testsuite/build.xml
> 	
>    <target name="tests-web-profile" description="Tests with the web profile">
>       <create-web-profile-config conf="web-profile"/>
>       <server:start name="web-profile"/>
>       <antcall target="run-web-profile-unit"/>
>       <!-- FIXME need to fix server:stop -->
>       <stop-jboss url="${node0.jndi.http.url}"/>
>       <server:stop name="web-profile"/>
>    </target>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list