Problems getting jmscts to run

Will Pugh <[email protected]> Wed, 22 Sep 2004 18:00:20 -0700
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
Hi everyone,

I'm playing around with jmscts and trying to get it running against
Open JMS, but I'm running into problems.

The problem seems to be getting the ConnectionFactory from JNDI.  I've
poured over my openjms.xml trying to make sure everything is correct,
but I may be missing something (because I'm new to the project).

So currently, I'm trying to get it to use embeddedJNDI, but at the
point that we get to trying to look up the ConnectionFactory, I get an
NoInitialContext exception thrown claiming "Embedded JNDI server not
initialised"

If I go and run test.sh in the root directory, using the same
config.xml file all the tests seem to pass.  Anyone have an idea what
I'm dong wrong?

Is there some other step I need to be doing?  Is there something wrong
with my openjms.xml?

    Thanks,
    --Will

openjms.xml
--------------
<?xml version="1.0"?>

<Configuration>
  <ServerConfiguration embeddedJNDI="true" />

<!--
  Other scheme I tried that didn't work
  <RmiConfiguration embeddedRegistry="false"
                    registryHost="localhost"
                    registryPort="1099">
  </RmiConfiguration>
-->

  <!-- Required when using an RMI connector -->
  <Connectors>
    <!--
         Other scheme I tried that didn't work
         <Connector scheme="rmi">
     -->
    <Connector scheme="embedded">
      <ConnectionFactories>
        <QueueConnectionFactory name="JmsQueueConnectionFactory" />
        <TopicConnectionFactory name="JmsTopicConnectionFactory" />
      </ConnectionFactories>
    </Connector>
  </Connectors>

  <!-- Required  -->
  <DatabaseConfiguration>
    <JdbmDatabaseConfiguration name="openjms.db" />
  </DatabaseConfiguration>

  <!-- Required -->
  <AdminConfiguration script="${openjms.home}/bin/startup.sh" />

  <!-- Optional. If not specified, no destinations will be created -->
  <AdministeredDestinations>
    <AdministeredTopic name="topic1">
      <Subscriber name="sub1" />
      <Subscriber name="sub2" />
    </AdministeredTopic>

    <AdministeredQueue name="queue1" />
    <AdministeredQueue name="queue2" />
    <AdministeredQueue name="queue3" />
  </AdministeredDestinations>

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

</Configuration>


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php