Hi
 
I am trying to port an application on Geronimo.
 
I configured server for a different RMI port say 3333 and successfully started it. My config.xml is as follows. I changed only two configurations
related to RMI naming and JMX.
 
 <configuration name="geronimo/rmi-naming/1.0/car">
    <gbean name="RMIRegistry">
      <attribute name="port">3333</attribute>
    </gbean>
    <gbean name="NamingProperties">
      <attribute name="namingProviderUrl">rmi://0.0.0.0:3333</attribute>
    </gbean>
    <gbean name="SystemProperties">
      <attribute name="systemProperties"> javax.net.ssl.keyStorePassword=secret
                javax.net.ssl.trustStorePassword=secret</attribute>
    </gbean>
  </configuration>
...
...
 
  <configuration name="geronimo/j2ee-security/1.0/car">
    <gbean name="geronimo.remoting:target=JaasLoginServiceRemotingServer">
      <attribute name="host"> 0.0.0.0</attribute>
      <attribute name="port">4242</attribute>
    </gbean>
    <gbean name="JMXService">
      <attribute name="url">service:jmx:rmi://0.0.0.0/jndi/rmi://localhost:3333/JMXConnector</attribute>
    </gbean>
  </configuration>
...
...
I tried to deploy a sample application as follows as per the documentation
 
 
 
java -jar deployer.jar --user system --password manager --uri deployer:geronimo:jmx:rmi:///jndi/rmi://localhost:3333/JMXConnector deploy stateful.jar


    Error: Unable to connect to server at
    deployer:geronimo:jmx:rmi:///jndi/rmi://localhost:3333/JMXConnector --
    javax.naming.ServiceUnavailableException [Root exception is
    java.rmi.ConnectException : Connection refused to host: localhost;
    nested exception is:

        java.net.ConnectException: Connection refused: connect]

Can you help me with right options for deployer in this case?
 
Thanks
phani
 
 
 
 

Reply via email to