You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Anita Kulshreshtha <a_...@yahoo.com> on 2007/04/13 14:37:01 UTC

Openejb and port 1099

   I am trying to find why port 1099 appears to be hardcoded.  This
message is generated by running two instances of G:
1. instance1 uses 1099 for rmi NamingPort
2. instance2 uses 1108
   Both server start fine and have functioning console. JMXService is
running correctly.

message from instance2:

..............................................
Module  4/30 org.apache.geronimo.configs/j2ee-security/2.0-SNAPSHOT/car
     started in   .531s
Module  5/30 org.apache.geronimo.configs/openejb/2.0-SNAPSHOT/car
    08:03:16,703 WARN  [ManagementContext] Failed to start jmx
connector: Cannot
 bind to URL [rmi://localhost:1099/jmxrmi]:
javax.naming.NameAlreadyBoundExcepti
on: jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi]
 started in 13.579s
..................................................................

    Could someone please point me to the source of this message?

Thanks
Anita


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Openejb and port 1099

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
Thanks Kevan!

Anita

--- Kevan Miller <ke...@gmail.com> wrote:

> 
> On Apr 13, 2007, at 8:37 AM, Anita Kulshreshtha wrote:
> 
> >    I am trying to find why port 1099 appears to be hardcoded.  This
> > message is generated by running two instances of G:
> > 1. instance1 uses 1099 for rmi NamingPort
> > 2. instance2 uses 1108
> >    Both server start fine and have functioning console. JMXService
> is
> > running correctly.
> >
> > message from instance2:
> >
> > ..............................................
> > Module  4/30
> org.apache.geronimo.configs/j2ee-security/2.0-SNAPSHOT/ 
> > car
> >      started in   .531s
> > Module  5/30 org.apache.geronimo.configs/openejb/2.0-SNAPSHOT/car
> >     08:03:16,703 WARN  [ManagementContext] Failed to start jmx
> > connector: Cannot
> >  bind to URL [rmi://localhost:1099/jmxrmi]:
> > javax.naming.NameAlreadyBoundExcepti
> > on: jmxrmi [Root exception is java.rmi.AlreadyBoundException:
> jmxrmi]
> >  started in 13.579s
> > ..................................................................
> >
> >     Could someone please point me to the source of this message?
> 
> Hi Anita,
> It's ActiveMQ -- activemq-4.1.1/activemq-core/src/main/java/org/ 
> apache/activemq/broker/jmx/ManagementContext.java
> 
> --kevan
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Openejb and port 1099

Posted by Donald Woods <dw...@apache.org>.
Should we be creating a minimal Geronimo "Instance" server, which 
creates the RMI Registry on 1099 and then provide JMX and cmdline 
commands to start/stop, create/delete server instances?
That way, we could still support the current single-server setup and 
behavior, but provide an advanced horizontal scaling feature for user 
who want it.....

-Donald

Anita Kulshreshtha wrote:
> Kevan,
>   Thanks again! The information you provided saved me a lot of time.. I
> found that ManagementContext [1] is using ConnectorPort set to 1099.
> Should we wrap this in a GBean to be able configure this port?
> 
> [1]
> https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
> 
> Thanks
> Anita
> 
> --- Kevan Miller <ke...@gmail.com> wrote:
> 
>> On Apr 13, 2007, at 11:59 AM, Anita Kulshreshtha wrote:
>>
>>> David B,
>>>    The activemq-core jar is being used by openejb-activemq. I  
>>> looked at
>>> BrokerServer, but nothing jumped at me.. Any help will be greatly
>>> appreciated.
>> Anita, it's the ActiveMQ GBean that's being started. It's being  
>> created during the start of the OpenEJB module, but it's just a  
>> dependency. OpenEJB isn't doing anything directly...
>>
>> FYI, here's a stack trace:
>>
>> Thread [main] (Suspended (breakpoint at line 382 in
>> ManagementContext))	
>> 	ManagementContext.createConnector(MBeanServer) line: 382	
>> 	ManagementContext.findMBeanServer() line: 301	
>> 	ManagementContext.getMBeanServer() line: 154	
>> 	ManagementContext.start() line: 78	
>> 	BrokerService.start() line: 391	
>> 	BrokerServiceGBeanImpl.doStart() line: 95	
>> 	GBeanInstance.createInstance() line: 986	
>> 	GBeanInstanceState.attemptFullStart() line: 267	
>> 	GBeanInstanceState.start() line: 102	
>> 	GBeanInstance.start() line: 529	
>> 	GBeanDependency.attemptFullStart() line: 111	
>> 	GBeanDependency.addTarget(AbstractName) line: 146	
>>          ...
>>
>> Not sure if (or how) the ManagementContext behavior can be altered...
>>  
>> Can I assume you'll look into this? :-)
>>
>> --kevan
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 

Re: ActiveMQ and port 1099 [was : Openejb and port 1099]

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
--- Kevan Miller <ke...@gmail.com> wrote:

> 
> On Apr 14, 2007, at 6:42 PM, Rick McGuire wrote:
>.......................................................................
 
> > and I found I was unable to force the Geronimo configuration back  
> > to 1099 with that change in place.

   The problem I am trying to address is that geronimo should not be
tied to any port. Could you please provide some information/trace about
what happened when you changed the port from 1098 to 1099 in
config.xml.

> 
> 
> IIUC, once the problem is resolved, the default port for RMI Registry
>  
> will remain as 1099 (fixes your problem) and you'll be able to start 
> 
> a server using a non-default port....

   Correct. 

Thanks
Anita


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: ActiveMQ and port 1099 [was : Openejb and port 1099]

Posted by Kevan Miller <ke...@gmail.com>.
On Apr 14, 2007, at 6:42 PM, Rick McGuire wrote:

> I don't believe this was the cause of the failures I was  
> receiving.  In order for the tests I was working with to function,  
> the two servers needed to agree on the RMIRegistry.  There's no  
> mechanism that allows me to change the value in the other server,  
> and I found I was unable to force the Geronimo configuration back  
> to 1099 with that change in place.

Agreed. I'm pretty sure that Anita understands that. She's trying to  
fix the problem that port 1099 must be available when you start a  
Geronimo server, no matter what RMI Registry port is configured.

IIUC, once the problem is resolved, the default port for RMI Registry  
will remain as 1099 (fixes your problem) and you'll be able to start  
a server using a non-default port without getting an error (fixes the  
problem that Anita was trying to avoid).

--kevan



Re: ActiveMQ and port 1099 [was : Openejb and port 1099]

Posted by Rick McGuire <ri...@gmail.com>.
I don't believe this was the cause of the failures I was receiving.  In 
order for the tests I was working with to function, the two servers 
needed to agree on the RMIRegistry.  There's no mechanism that allows me 
to change the value in the other server, and I found I was unable to 
force the Geronimo configuration back to 1099 with that change in place. 

Rick


Anita Kulshreshtha wrote:
>     Some more information:
>   When this warning occurs the following MBeans are not created: 
> org.apache.activemq:
>       Queue -
> org.apache.activemq.JMSQueueSendReceiveTwoConnectionsStartBeforeBrokerTesttestSendReceive
>
>       Topic -   ActiveMQ.Adivisory.Queue
>                
> ActiveMQ.Adivisory.Consumer.Queue.org.apache.activemq.JMSQueueSendReceiveTwoConnectionsStartBeforeBrokerTesttestSendReceive
>                
>     This might have caused some failures when the port was changed to
> 1098. Does anyone know if making this port configurable is the answer?
> If yes, how?
>
> Thanks
> Anita
>
> --- Anita Kulshreshtha <a_...@yahoo.com> wrote:
>
>   
>> Kevan,
>>   Thanks again! The information you provided saved me a lot of time..
>> I
>> found that ManagementContext [1] is using ConnectorPort set to 1099.
>> Should we wrap this in a GBean to be able configure this port?
>>
>> [1]
>>
>>     
> https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
>   
>> Thanks
>> Anita
>>
>> --- Kevan Miller <ke...@gmail.com> wrote:
>>
>>     
>>> On Apr 13, 2007, at 11:59 AM, Anita Kulshreshtha wrote:
>>>
>>>       
>>>> David B,
>>>>    The activemq-core jar is being used by openejb-activemq. I  
>>>> looked at
>>>> BrokerServer, but nothing jumped at me.. Any help will be greatly
>>>> appreciated.
>>>>         
>>> Anita, it's the ActiveMQ GBean that's being started. It's being  
>>> created during the start of the OpenEJB module, but it's just a  
>>> dependency. OpenEJB isn't doing anything directly...
>>>
>>> FYI, here's a stack trace:
>>>
>>> Thread [main] (Suspended (breakpoint at line 382 in
>>> ManagementContext))	
>>> 	ManagementContext.createConnector(MBeanServer) line: 382	
>>> 	ManagementContext.findMBeanServer() line: 301	
>>> 	ManagementContext.getMBeanServer() line: 154	
>>> 	ManagementContext.start() line: 78	
>>> 	BrokerService.start() line: 391	
>>> 	BrokerServiceGBeanImpl.doStart() line: 95	
>>> 	GBeanInstance.createInstance() line: 986	
>>> 	GBeanInstanceState.attemptFullStart() line: 267	
>>> 	GBeanInstanceState.start() line: 102	
>>> 	GBeanInstance.start() line: 529	
>>> 	GBeanDependency.attemptFullStart() line: 111	
>>> 	GBeanDependency.addTarget(AbstractName) line: 146	
>>>          ...
>>>
>>> Not sure if (or how) the ManagementContext behavior can be
>>>       
>> altered...
>>     
>>>  
>>> Can I assume you'll look into this? :-)
>>>
>>> --kevan
>>>
>>>       
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>> http://mail.yahoo.com 
>>
>>     
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
>   


Re: ActiveMQ and port 1099 [was : Openejb and port 1099]

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
    Some more information:
  When this warning occurs the following MBeans are not created: 
org.apache.activemq:
      Queue -
org.apache.activemq.JMSQueueSendReceiveTwoConnectionsStartBeforeBrokerTesttestSendReceive

      Topic -   ActiveMQ.Adivisory.Queue
               
ActiveMQ.Adivisory.Consumer.Queue.org.apache.activemq.JMSQueueSendReceiveTwoConnectionsStartBeforeBrokerTesttestSendReceive
               
    This might have caused some failures when the port was changed to
1098. Does anyone know if making this port configurable is the answer?
If yes, how?

Thanks
Anita

--- Anita Kulshreshtha <a_...@yahoo.com> wrote:

> Kevan,
>   Thanks again! The information you provided saved me a lot of time..
> I
> found that ManagementContext [1] is using ConnectorPort set to 1099.
> Should we wrap this in a GBean to be able configure this port?
> 
> [1]
>
https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
> 
> Thanks
> Anita
> 
> --- Kevan Miller <ke...@gmail.com> wrote:
> 
> > 
> > On Apr 13, 2007, at 11:59 AM, Anita Kulshreshtha wrote:
> > 
> > > David B,
> > >    The activemq-core jar is being used by openejb-activemq. I  
> > > looked at
> > > BrokerServer, but nothing jumped at me.. Any help will be greatly
> > > appreciated.
> > 
> > Anita, it's the ActiveMQ GBean that's being started. It's being  
> > created during the start of the OpenEJB module, but it's just a  
> > dependency. OpenEJB isn't doing anything directly...
> > 
> > FYI, here's a stack trace:
> > 
> > Thread [main] (Suspended (breakpoint at line 382 in
> > ManagementContext))	
> > 	ManagementContext.createConnector(MBeanServer) line: 382	
> > 	ManagementContext.findMBeanServer() line: 301	
> > 	ManagementContext.getMBeanServer() line: 154	
> > 	ManagementContext.start() line: 78	
> > 	BrokerService.start() line: 391	
> > 	BrokerServiceGBeanImpl.doStart() line: 95	
> > 	GBeanInstance.createInstance() line: 986	
> > 	GBeanInstanceState.attemptFullStart() line: 267	
> > 	GBeanInstanceState.start() line: 102	
> > 	GBeanInstance.start() line: 529	
> > 	GBeanDependency.attemptFullStart() line: 111	
> > 	GBeanDependency.addTarget(AbstractName) line: 146	
> >          ...
> > 
> > Not sure if (or how) the ManagementContext behavior can be
> altered...
> >  
> > Can I assume you'll look into this? :-)
> > 
> > --kevan
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Openejb and port 1099

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
Kevan,
  Thanks again! The information you provided saved me a lot of time.. I
found that ManagementContext [1] is using ConnectorPort set to 1099.
Should we wrap this in a GBean to be able configure this port?

[1]
https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java

Thanks
Anita

--- Kevan Miller <ke...@gmail.com> wrote:

> 
> On Apr 13, 2007, at 11:59 AM, Anita Kulshreshtha wrote:
> 
> > David B,
> >    The activemq-core jar is being used by openejb-activemq. I  
> > looked at
> > BrokerServer, but nothing jumped at me.. Any help will be greatly
> > appreciated.
> 
> Anita, it's the ActiveMQ GBean that's being started. It's being  
> created during the start of the OpenEJB module, but it's just a  
> dependency. OpenEJB isn't doing anything directly...
> 
> FYI, here's a stack trace:
> 
> Thread [main] (Suspended (breakpoint at line 382 in
> ManagementContext))	
> 	ManagementContext.createConnector(MBeanServer) line: 382	
> 	ManagementContext.findMBeanServer() line: 301	
> 	ManagementContext.getMBeanServer() line: 154	
> 	ManagementContext.start() line: 78	
> 	BrokerService.start() line: 391	
> 	BrokerServiceGBeanImpl.doStart() line: 95	
> 	GBeanInstance.createInstance() line: 986	
> 	GBeanInstanceState.attemptFullStart() line: 267	
> 	GBeanInstanceState.start() line: 102	
> 	GBeanInstance.start() line: 529	
> 	GBeanDependency.attemptFullStart() line: 111	
> 	GBeanDependency.addTarget(AbstractName) line: 146	
>          ...
> 
> Not sure if (or how) the ManagementContext behavior can be altered...
>  
> Can I assume you'll look into this? :-)
> 
> --kevan
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Openejb and port 1099

Posted by Kevan Miller <ke...@gmail.com>.
On Apr 13, 2007, at 11:59 AM, Anita Kulshreshtha wrote:

> David B,
>    The activemq-core jar is being used by openejb-activemq. I  
> looked at
> BrokerServer, but nothing jumped at me.. Any help will be greatly
> appreciated.

Anita, it's the ActiveMQ GBean that's being started. It's being  
created during the start of the OpenEJB module, but it's just a  
dependency. OpenEJB isn't doing anything directly...

FYI, here's a stack trace:

Thread [main] (Suspended (breakpoint at line 382 in ManagementContext))	
	ManagementContext.createConnector(MBeanServer) line: 382	
	ManagementContext.findMBeanServer() line: 301	
	ManagementContext.getMBeanServer() line: 154	
	ManagementContext.start() line: 78	
	BrokerService.start() line: 391	
	BrokerServiceGBeanImpl.doStart() line: 95	
	GBeanInstance.createInstance() line: 986	
	GBeanInstanceState.attemptFullStart() line: 267	
	GBeanInstanceState.start() line: 102	
	GBeanInstance.start() line: 529	
	GBeanDependency.attemptFullStart() line: 111	
	GBeanDependency.addTarget(AbstractName) line: 146	
         ...

Not sure if (or how) the ManagementContext behavior can be altered...  
Can I assume you'll look into this? :-)

--kevan

Re: Openejb and port 1099

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
David B,
   The activemq-core jar is being used by openejb-activemq. I looked at
BrokerServer, but nothing jumped at me.. Any help will be greatly
appreciated.

Thanks
Anita
 
--- Kevan Miller <ke...@gmail.com> wrote:

> 
> On Apr 13, 2007, at 8:37 AM, Anita Kulshreshtha wrote:
> 
> >    I am trying to find why port 1099 appears to be hardcoded.  This
> > message is generated by running two instances of G:
> > 1. instance1 uses 1099 for rmi NamingPort
> > 2. instance2 uses 1108
> >    Both server start fine and have functioning console. JMXService
> is
> > running correctly.
> >
> > message from instance2:
> >
> > ..............................................
> > Module  4/30
> org.apache.geronimo.configs/j2ee-security/2.0-SNAPSHOT/ 
> > car
> >      started in   .531s
> > Module  5/30 org.apache.geronimo.configs/openejb/2.0-SNAPSHOT/car
> >     08:03:16,703 WARN  [ManagementContext] Failed to start jmx
> > connector: Cannot
> >  bind to URL [rmi://localhost:1099/jmxrmi]:
> > javax.naming.NameAlreadyBoundExcepti
> > on: jmxrmi [Root exception is java.rmi.AlreadyBoundException:
> jmxrmi]
> >  started in 13.579s
> > ..................................................................
> >
> >     Could someone please point me to the source of this message?
> 
> Hi Anita,
> It's ActiveMQ -- activemq-4.1.1/activemq-core/src/main/java/org/ 
> apache/activemq/broker/jmx/ManagementContext.java
> 
> --kevan
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Openejb and port 1099

Posted by Kevan Miller <ke...@gmail.com>.
On Apr 13, 2007, at 8:37 AM, Anita Kulshreshtha wrote:

>    I am trying to find why port 1099 appears to be hardcoded.  This
> message is generated by running two instances of G:
> 1. instance1 uses 1099 for rmi NamingPort
> 2. instance2 uses 1108
>    Both server start fine and have functioning console. JMXService is
> running correctly.
>
> message from instance2:
>
> ..............................................
> Module  4/30 org.apache.geronimo.configs/j2ee-security/2.0-SNAPSHOT/ 
> car
>      started in   .531s
> Module  5/30 org.apache.geronimo.configs/openejb/2.0-SNAPSHOT/car
>     08:03:16,703 WARN  [ManagementContext] Failed to start jmx
> connector: Cannot
>  bind to URL [rmi://localhost:1099/jmxrmi]:
> javax.naming.NameAlreadyBoundExcepti
> on: jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi]
>  started in 13.579s
> ..................................................................
>
>     Could someone please point me to the source of this message?

Hi Anita,
It's ActiveMQ -- activemq-4.1.1/activemq-core/src/main/java/org/ 
apache/activemq/broker/jmx/ManagementContext.java

--kevan