"Failed to lookup OpenJMS administration server at URL..."

aslam <[email protected]> Tue, 11 Mar 2008 17:24:55 -0700 (PDT)
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
I start the server, and then create an AdminConnection, as explained here:
http://openjms.sourceforge.net/usersguide/embedded.html

I've tried to do this with an embedded server (tried URLs "embedded://", as
well as  http://www.nabble.com/Embedded-server-URL-to15995008.html
"vm:openjms" ), as well as the default RMI and TCP servers. In all cases I
get an exception like this:

OpenJMS 0.7.7-beta-1
The OpenJMS Group. (C) 1999-2007. All rights reserved.
http://openjms.sourceforge.net
20:05:07.176 INFO  [main] - Server accepting connections on
rmi://10.1.2.67:1099/
20:05:07.192 INFO  [main] - JNDI service accepting connections on
rmi://10.1.2.67:1099/
20:05:07.223 INFO  [main] - Admin service accepting connections on
rmi://10.1.2.67:1099/
javax.jms.JMSException: Failed to lookup OpenJMS administration server at
URL: rmi://10.1.2.67:1099/
	at
org.exolab.jms.administration.net.JmsAdminConnectionImpl.<init>(JmsAdminConnectionImpl.java:117)
	at
org.exolab.jms.administration.AdminConnectionFactory.create(AdminConnectionFactory.java:107)
	at
org.exolab.jms.administration.AdminConnectionFactory.create(AdminConnectionFactory.java:91)
	...[truncated]

Anyone have any idea what might be wrong? The statement where this happens
is the following, in the constructor
org.exolab.jms.administration.net.JmsAdminConnectionImpl(String, String,
String):

admin = (RemoteJmsAdminServerIfc) registry.lookup("admin");

My config is as follows:

<?xml version="1.0"?>
<Configuration>

  <ServerConfiguration host="localhost" embeddedJNDI="true" />
  
  <Connectors> 
    <Connector scheme="rmi">
      <ConnectionFactories>
        <QueueConnectionFactory name="JmsQueueConnectionFactory" />
        <TopicConnectionFactory name="JmsTopicConnectionFactory" />
      </ConnectionFactories>
    </Connector>
  </Connectors>    
  
  <RmiConfiguration embeddedRegistry="true" registryHost="localhost"
registryPort="1099" />
  
  <DatabaseConfiguration>
    <RdbmsDatabaseConfiguration
      driver="org.apache.derby.jdbc.EmbeddedDriver"
      url="jdbc:derby:openjmsdb;create=true" 
      user="openjms" 
      password="openjms"/>
  </DatabaseConfiguration>

  <AdminConfiguration script="${openjms.home}\bin\startup.bat"
config="${openjms.config}" />
    
  <AdministeredDestinations>
    <AdministeredTopic name="testTopic">
      <Subscriber name="subscriber1" />
      <Subscriber name="subscriber2" />
    </AdministeredTopic>
  
    <AdministeredQueue name="queue1" />
    <AdministeredQueue name="queue2" />
    <AdministeredQueue name="queue3" />
  </AdministeredDestinations>

  <Users>
    <User name="admin" password="openjms" /> 
  </Users>

</Configuration>

-- 
View this message in context: http://www.nabble.com/%22Failed-to-lookup-OpenJMS-administration-server-at-URL...%22-tp15995466p15995466.html
Sent from the OpenJMS - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/