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> </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> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2>Using O=
PENJMS_HOME:=20
/home/zaelld/openjms<BR>Using JAVA_HOME: /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> =20
org.exolab.jms.net.connector.ResourceException: Failed to bind connection=
=20
factory<BR> at=20
org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:458)<BR> &n=
bsp; =20
at=20
org.exolab.jms.net.orb.AbstractORB.doExport(AbstractORB.java:450)<BR>&nbs=
p; =20
at=20
org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:296)<BR>=
=20
at=20
org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:258)<BR>=
=20
at=20
org.exolab.jms.net.orb.RegistryService.<init>(RegistryService.java:=
82)<BR> =20
at=20
org.exolab.jms.net.orb.DefaultORB.getRegistry(DefaultORB.java:258)<BR>&nb=
sp; =20
at=20
org.exolab.jms.server.net.RemoteServerConnector.init(RemoteServerConnecto=
r.java:208)<BR> =20
at=20
org.exolab.jms.server.ConnectorService.initConnector(ConnectorService.jav=
a:258)<BR> =20
at=20
org.exolab.jms.server.ConnectorService.initConnectors(ConnectorService.ja=
va:196)<BR> =20
at=20
org.exolab.jms.server.ConnectorService.doStart(ConnectorService.java:164)=
<BR> =20
at=20
org.exolab.jms.service.Service.start(Service.java:97)<BR> &nbs=
p; =20
at=20
org.exolab.jms.service.ServiceManager.doStart(ServiceManager.java:176)<BR=
> =20
at=20
org.exolab.jms.service.Service.start(Service.java:97)<BR> &nbs=
p; =20
at=20
org.exolab.jms.server.JmsServer.init(JmsServer.java:146)<BR> &=
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> at=20
org.exolab.jms.net.rmi.RegistryHelper.bind(RegistryHelper.java:97)<BR>&nb=
sp; =20
at=20
org.exolab.jms.net.rmi.RMIManagedConnectionAcceptor.accept(RMIManagedConn=
ectionAcceptor.java:164)<BR> =20
at=20
org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCon=
nectionManager.java:160)<BR> =20
at=20
org.exolab.jms.net.connector.AbstractConnectionFactory.accept(AbstractCon=
nectionFactory.java:205)<BR> =20
at=20
org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCon=
nectionManager.java:251)<BR> =20
at=20
org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:456)<BR> &n=
bsp; =20
=2E.. 14 more</FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN> </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> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2><?xm=
l=20
version=3D"1.0"?></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2><Configuration></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2> =
<!--=20
Optional. This represents the default configuration --><BR> =
;=20
<ServerConfiguration host=3D"localhost" embeddedJNDI=3D"true" /><BR=
> =20
<BR> <Connectors><BR> <Connector=20
scheme=3D"rmi"><BR> =20
<ConnectionFactories><BR> =
=20
<QueueConnectionFactory name=3D"JMSQueueConnectionFactory"=20
/><BR> <TopicConnectionFa=
ctory=20
name=3D"JMSSTopicConnectionFactory" /><BR> &nbs=
p;=20
</ConnectionFactories><BR> </Connector><BR>=
=20
</Connectors></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2> =20
<RmiConfiguration=20
embeddedRegistry=3D"false"<BR> &=
nbsp; =20
registryHost=3D"myhost"<BR> &nbs=
p; =20
registryPort=3D"1099"><BR> =20
</RmiConfiguration><BR> <BR> <!--=20
Required --><BR> =20
<DatabaseConfiguration><BR> =20
<RdbmsDatabaseConfiguration<BR> =20
driver=3D"oracle.jdbc.driver.OracleDriver"<BR> &nb=
sp;=20
url=3D"jdbc:oracle:thin:@myhost:1521:db1" <BR> &nb=
sp;=20
user=3D"openjms" <BR> =20
password=3D"secret1"/><BR> =20
</DatabaseConfiguration></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial size=3D2> =
<!--=20
Required --> <BR> <AdminConfiguration=20
script=3D"${openjms.home}\bin\startup.bat" /><BR> =20
<BR></Configuration></FONT></SPAN></DIV>
<DIV><SPAN class=3D452441900-26112007><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D452441900-26112007>DKE</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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==--