Non-embedded(external) RMI Connection falls over

"Ellery, David" <[email protected]> Mon, 26 Nov 2007 13:26:57 +1300
Newsgroups gmane.comp.java.openjms.user
Message-ID <48113F1FB29BB14FA94459FADFDA97D218BDDE@stlaklxch01.nzsakl.bhp.com.au>
This is a multi-part message in MIME format.

--===============0164450525==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C82FC3.0D6683A2"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C82FC3.0D6683A2
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

Hi,
We are trying to use an external RMI (on the localhost) for our
connector but it will not work
=20
the error we recieve is
=20
Using OPENJMS_HOME: /home/zaelld/openjms
Using JAVA_HOME:    /usr/java/
OpenJMS 0.7.7-beta-1
The OpenJMS Group. (C) 1999-2007. All rights reserved.
http://openjms.sourceforge.net
org.exolab.jms.server.ServerException:
org.exolab.jms.server.ServerException: java.rmi.server.ExportException:
Failed to accept
connections on URI: rmi://myhost:1095/; nested exception is:
        org.exolab.jms.net.connector.ResourceException: Failed to bind
connection factory
        at org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:458)
        at
org.exolab.jms.net.orb.AbstractORB.doExport(AbstractORB.java:450)
        at
org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:296)
        at
org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:258)
        at
org.exolab.jms.net.orb.RegistryService.<init>(RegistryService.java:82)
        at
org.exolab.jms.net.orb.DefaultORB.getRegistry(DefaultORB.java:258)
        at
org.exolab.jms.server.net.RemoteServerConnector.init(RemoteServerConnect
or.java:208)
        at
org.exolab.jms.server.ConnectorService.initConnector(ConnectorService.ja
va:258)
        at
org.exolab.jms.server.ConnectorService.initConnectors(ConnectorService.j
ava:196)
        at
org.exolab.jms.server.ConnectorService.doStart(ConnectorService.java:164
)
        at org.exolab.jms.service.Service.start(Service.java:97)
        at
org.exolab.jms.service.ServiceManager.doStart(ServiceManager.java:176)
        at org.exolab.jms.service.Service.start(Service.java:97)
        at org.exolab.jms.server.JmsServer.init(JmsServer.java:146)
        at org.exolab.jms.server.JmsServer.main(JmsServer.java:178)
Caused by: org.exolab.jms.net.connector.ResourceException: Failed to
bind connection factory
        at
org.exolab.jms.net.rmi.RegistryHelper.bind(RegistryHelper.java:97)
        at
org.exolab.jms.net.rmi.RMIManagedConnectionAcceptor.accept(RMIManagedCon
nectionAcceptor.java:164)
        at
org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCo
nnectionManager.java:160)
        at
org.exolab.jms.net.connector.AbstractConnectionFactory.accept(AbstractCo
nnectionFactory.java:205)
        at
org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCo
nnectionManager.java:251)
        at org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:456)
        ... 14 more
=20
=20
Our openjms.xml is as follows
=20
=20
<?xml version=3D"1.0"?>
=20
<Configuration>
=20
  <!-- Optional. This represents the default configuration  -->
  <ServerConfiguration host=3D"localhost" embeddedJNDI=3D"true" />
 =20
  <Connectors>
    <Connector scheme=3D"rmi">
      <ConnectionFactories>
        <QueueConnectionFactory name=3D"JMSQueueConnectionFactory" />
        <TopicConnectionFactory name=3D"JMSSTopicConnectionFactory" />
      </ConnectionFactories>
    </Connector>
  </Connectors>
=20
  <RmiConfiguration embeddedRegistry=3D"false"
                    registryHost=3D"myhost"
                    registryPort=3D"1099">
  </RmiConfiguration>
   =20
  <!-- Required  -->
  <DatabaseConfiguration>
    <RdbmsDatabaseConfiguration
      driver=3D"oracle.jdbc.driver.OracleDriver"
      url=3D"jdbc:oracle:thin:@myhost:1521:db1"=20
      user=3D"openjms"=20
      password=3D"secret1"/>
  </DatabaseConfiguration>
=20
  <!-- Required -->   =20
  <AdminConfiguration script=3D"${openjms.home}\bin\startup.bat" />
 =20
</Configuration>
=20
=20
when using an embeddedRegistry it works fine, but that isnt possible in
our running environment, and we would prefer not to allocate more ports
of http/tcp when we can just use RMI (provided it works)
=20
Thanks,=20
=20
DKE
=20


=0A=0ANOTICE - This message and any attached files may contain informatio=
n that is confidential and intended only for use by the intended recipien=
t. If you are not the intended recipient or the person responsible for de=
livering the message to the intended recipient, be advised that you have =
received this message in error and that any dissemination, copying or use=
 of this message or attachment is strictly forbidden, as is the disclosur=
e of the information therein. If you have received this message in error =
please notify the sender immediately and delete the message.

------_=_NextPart_001_01C82FC3.0D6683A2
Content-Type: text/HTML;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"=
>
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>We are =
trying to use=20
an external RMI (on the localhost) for our connector but it will not=20
work</FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>the err=
or we recieve=20
is</FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>Using O=
PENJMS_HOME:=20
/home/zaelld/openjms<BR>Using JAVA_HOME:&nbsp;&nbsp;&nbsp; /usr/java/<BR>=
OpenJMS=20
0.7.7-beta-1<BR>The OpenJMS Group. (C) 1999-2007. All rights reserved.<BR=
><A=20
href=3D"http://openjms.sourceforge.net">http://openjms.sourceforge.net</A=
><BR>org.exolab.jms.server.ServerException:=20
org.exolab.jms.server.ServerException: java.rmi.server.ExportException: F=
ailed=20
to accept<BR>connections on URI: rmi://myhost:1095/; nested exception=20
is:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
org.exolab.jms.net.connector.ResourceException: Failed to bind connection=
=20
factory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:458)<BR>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.orb.AbstractORB.doExport(AbstractORB.java:450)<BR>&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:296)<BR>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:258)<BR>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.orb.RegistryService.&lt;init&gt;(RegistryService.java:=
82)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.orb.DefaultORB.getRegistry(DefaultORB.java:258)<BR>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.net.RemoteServerConnector.init(RemoteServerConnecto=
r.java:208)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.ConnectorService.initConnector(ConnectorService.jav=
a:258)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.ConnectorService.initConnectors(ConnectorService.ja=
va:196)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.ConnectorService.doStart(ConnectorService.java:164)=
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.service.Service.start(Service.java:97)<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.service.ServiceManager.doStart(ServiceManager.java:176)<BR=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.service.Service.start(Service.java:97)<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.JmsServer.init(JmsServer.java:146)<BR>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at org.exolab.jms.server.JmsServer.main(JmsServer.java:178)<BR>Caused by:=
=20
org.exolab.jms.net.connector.ResourceException: Failed to bind connection=
=20
factory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.exolab.jms.net.rmi.RegistryHelper.bind(RegistryHelper.java:97)<BR>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.rmi.RMIManagedConnectionAcceptor.accept(RMIManagedConn=
ectionAcceptor.java:164)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCon=
nectionManager.java:160)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.connector.AbstractConnectionFactory.accept(AbstractCon=
nectionFactory.java:205)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCon=
nectionManager.java:251)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:456)<BR>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=2E.. 14 more</FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>Our ope=
njms.xml is=20
as follows</FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>&lt;?xm=
l=20
version=3D"1.0"?&gt;</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2>&lt;Configuration&gt;</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>&nbsp; =
&lt;!--=20
Optional. This represents the default configuration&nbsp; --&gt;<BR>&nbsp=
;=20
&lt;ServerConfiguration host=3D"localhost" embeddedJNDI=3D"true" /&gt;<BR=
>&nbsp;=20
<BR>&nbsp; &lt;Connectors&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;Connector=20
scheme=3D"rmi"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;ConnectionFactories&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
&lt;QueueConnectionFactory name=3D"JMSQueueConnectionFactory"=20
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TopicConnectionFa=
ctory=20
name=3D"JMSSTopicConnectionFactory" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
&lt;/ConnectionFactories&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/Connector&gt;<BR>=
&nbsp;=20
&lt;/Connectors&gt;</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>&nbsp;=20
&lt;RmiConfiguration=20
embeddedRegistry=3D"false"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
registryHost=3D"myhost"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
registryPort=3D"1099"&gt;<BR>&nbsp;=20
&lt;/RmiConfiguration&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp; &lt;!--=20
Required&nbsp; --&gt;<BR>&nbsp;=20
&lt;DatabaseConfiguration&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;RdbmsDatabaseConfiguration<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
driver=3D"oracle.jdbc.driver.OracleDriver"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
url=3D"jdbc:oracle:thin:@myhost:1521:db1" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
user=3D"openjms" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
password=3D"secret1"/&gt;<BR>&nbsp;=20
&lt;/DatabaseConfiguration&gt;</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>&nbsp; =
&lt;!--=20
Required --&gt;&nbsp;&nbsp;&nbsp; <BR>&nbsp; &lt;AdminConfiguration=20
script=3D"${openjms.home}\bin\startup.bat" /&gt;<BR>&nbsp;=20
<BR>&lt;/Configuration&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D452441900-26112007>when us=
ing an=20
embeddedRegistry it works fine, but that isnt possible in our running=20
environment, and we would prefer not to allocate more ports of http/tcp w=
hen we=20
can just use RMI (provided it works)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D452441900-26112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D452441900-26112007>Thanks,=
=20
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D452441900-26112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D452441900-26112007>DKE</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><P><HR>
<BR>=0A<BR>=0ANOTICE - This message and any attached files may contain in=
formation that is confidential and intended only for use by the intended =
recipient. If you are not the intended recipient or the person responsibl=
e for delivering the message to the intended recipient, be advised that y=
ou have received this message in error and that any dissemination, copyin=
g or use of this message or attachment is strictly forbidden, as is the d=
isclosure of the information therein. If you have received this message i=
n error please notify the sender immediately and delete the message.
</P></DIV>
</BODY></HTML>

------_=_NextPart_001_01C82FC3.0D6683A2--


--===============0164450525==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============0164450525==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user

--===============0164450525==--