You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org> on 2005/08/03 19:57:37 UTC

[jira] Created: (GERONIMO-848) Deployer ignores Geronimo URL host/port

Deployer ignores Geronimo URL host/port
---------------------------------------

         Key: GERONIMO-848
         URL: http://issues.apache.org/jira/browse/GERONIMO-848
     Project: Geronimo
        Type: Bug
  Components: deployment  
    Versions: 1.0-M4    
    Reporter: Aaron Mulder
     Fix For: 1.0-M5


When the deployer connects to a server, it uses a URL of the form:

deployer:geronimo:jmx:rmi://host:port/jndi/rmi:/JMXConnector

Under the covers, this strips off the beginning and uses a connection of the form:

jmx:rmi://host:port/jndi/rmi:/JMXConnector

However, no matter what you use as the host and port, it connects to the standard port on localhost.  It should actually attempt to connect to the host and port specified and give an error if they are not valid.

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


[jira] Commented: (GERONIMO-848) Deployer ignores Geronimo URL host/port

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-848?page=comments#action_12317541 ] 

Aaron Mulder commented on GERONIMO-848:
---------------------------------------

Here's the code (from DeploymentFactoryImpl):

            if (uri.startsWith("jmx")) {

                Map environment = new HashMap();
                String[] credentials = new String[]{username, password};
                environment.put(JMXConnector.CREDENTIALS, credentials);
                
                try {
                    JMXServiceURL address = new JMXServiceURL("service:" + uri);
                    JMXConnector jmxConnector = JMXConnectorFactory.connect(address, environment);

So I think it's a problem with the underlying JMX code, or else we're not constructing the URL properly (again, our URL is 
jmx:rmi://host:port/jndi/rmi:/JMXConnector which becomes service:jmx:rmi://host:port/jndi/rmi:/JMXConnector)

I don't know who's responsible for the code that handles that URL

> Deployer ignores Geronimo URL host/port
> ---------------------------------------
>
>          Key: GERONIMO-848
>          URL: http://issues.apache.org/jira/browse/GERONIMO-848
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Versions: 1.0-M4
>     Reporter: Aaron Mulder
>      Fix For: 1.0-M5

>
> When the deployer connects to a server, it uses a URL of the form:
> deployer:geronimo:jmx:rmi://host:port/jndi/rmi:/JMXConnector
> Under the covers, this strips off the beginning and uses a connection of the form:
> jmx:rmi://host:port/jndi/rmi:/JMXConnector
> However, no matter what you use as the host and port, it connects to the standard port on localhost.  It should actually attempt to connect to the host and port specified and give an error if they are not valid.

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


[jira] Closed: (GERONIMO-848) Deployer ignores Geronimo URL host/port

Posted by "Dain Sundstrom (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-848?page=all ]
     
Dain Sundstrom closed GERONIMO-848:
-----------------------------------


> Deployer ignores Geronimo URL host/port
> ---------------------------------------
>
>          Key: GERONIMO-848
>          URL: http://issues.apache.org/jira/browse/GERONIMO-848
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Versions: 1.0-M4
>     Reporter: Aaron Mulder
>      Fix For: 1.0-M5

>
> When the deployer connects to a server, it uses a URL of the form:
> deployer:geronimo:jmx:rmi://host:port/jndi/rmi:/JMXConnector
> Under the covers, this strips off the beginning and uses a connection of the form:
> jmx:rmi://host:port/jndi/rmi:/JMXConnector
> However, no matter what you use as the host and port, it connects to the standard port on localhost.  It should actually attempt to connect to the host and port specified and give an error if they are not valid.

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


[jira] Commented: (GERONIMO-848) Deployer ignores Geronimo URL host/port

Posted by "Jeremy Boynes (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-848?page=comments#action_12317535 ] 

Jeremy Boynes commented on GERONIMO-848:
----------------------------------------

I thought we just passed the URL down to the JMX connector - do you know if this is a problem with the deployer or a problem with MX4J?

> Deployer ignores Geronimo URL host/port
> ---------------------------------------
>
>          Key: GERONIMO-848
>          URL: http://issues.apache.org/jira/browse/GERONIMO-848
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Versions: 1.0-M4
>     Reporter: Aaron Mulder
>      Fix For: 1.0-M5

>
> When the deployer connects to a server, it uses a URL of the form:
> deployer:geronimo:jmx:rmi://host:port/jndi/rmi:/JMXConnector
> Under the covers, this strips off the beginning and uses a connection of the form:
> jmx:rmi://host:port/jndi/rmi:/JMXConnector
> However, no matter what you use as the host and port, it connects to the standard port on localhost.  It should actually attempt to connect to the host and port specified and give an error if they are not valid.

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


[jira] Commented: (GERONIMO-848) Deployer ignores Geronimo URL host/port

Posted by "Kevan Miller (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-848?page=comments#action_12317569 ] 

Kevan Miller commented on GERONIMO-848:
---------------------------------------

Aaron is right that the syntax for the uri was incorrect. I was looking into the problem also, but hadn't gotten to the root of the problem. I can't say that I fully comprehend how things are working at present, however. For instance, why does the URI work as long as you don't specify a port number? Oh, I kind of see...  deployer:geronimo:jmx:rmi://foobar/jndi/rmi://<host>:<port>/JMXConnector works just as well... 

I would suggest at least one code change for this issue. org.apache.geronimo.deployment.cli.ServerConnection.java contains the following static variable used for generating the default uri in the absence of one specified on the command line:

    private final static String DEFAULT_URI = "deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector";

I'd update to reflect a more educational syntax.  I see the Wiki (http://wiki.apache.org/geronimo/Running) also references the same uri...

Aaron, BTW, isn't this a dup of http://issues.apache.org/jira/browse/GERONIMO-462 ?

> Deployer ignores Geronimo URL host/port
> ---------------------------------------
>
>          Key: GERONIMO-848
>          URL: http://issues.apache.org/jira/browse/GERONIMO-848
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Versions: 1.0-M4
>     Reporter: Aaron Mulder
>      Fix For: 1.0-M5

>
> When the deployer connects to a server, it uses a URL of the form:
> deployer:geronimo:jmx:rmi://host:port/jndi/rmi:/JMXConnector
> Under the covers, this strips off the beginning and uses a connection of the form:
> jmx:rmi://host:port/jndi/rmi:/JMXConnector
> However, no matter what you use as the host and port, it connects to the standard port on localhost.  It should actually attempt to connect to the host and port specified and give an error if they are not valid.

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


[jira] Resolved: (GERONIMO-848) Deployer ignores Geronimo URL host/port

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-848?page=all ]
     
Aaron Mulder resolved GERONIMO-848:
-----------------------------------

    Resolution: Invalid

Correct URL is deployer:geronimo:jmx:rmi:///jndi/rmi://host:port/JMXConnector

> Deployer ignores Geronimo URL host/port
> ---------------------------------------
>
>          Key: GERONIMO-848
>          URL: http://issues.apache.org/jira/browse/GERONIMO-848
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Versions: 1.0-M4
>     Reporter: Aaron Mulder
>      Fix For: 1.0-M5

>
> When the deployer connects to a server, it uses a URL of the form:
> deployer:geronimo:jmx:rmi://host:port/jndi/rmi:/JMXConnector
> Under the covers, this strips off the beginning and uses a connection of the form:
> jmx:rmi://host:port/jndi/rmi:/JMXConnector
> However, no matter what you use as the host and port, it connects to the standard port on localhost.  It should actually attempt to connect to the host and port specified and give an error if they are not valid.

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