Generally if you use dependencies on jars that are also present in
server classloaders you will get into trouble, although I'm a little
surprised at NCDFE.
Try replacing all the geronimo dependencies with one on the connector
configuration
<dependencies>
<dependency>
<groupId>geronimo</groupId>
<artifactId>j2ee-server</artifactId>
<type>car</type>
</dependency>
(I think that's correct for 1.1.1, I'm a lot more familiar with 1.2
and trunk at the moment).
thanks
david jencks
On Apr 9, 2007, at 4:21 PM, Oli Kessler wrote:
Hi all,
We are trying to deplay a custom GBean which incorporates JMS
interaction using a deployment plan that is shown below.
The deployment runs without errors, but as soon as the GBean tries
to access the JMS, the following error is thrown:
Exception in thread "syslog worker-0"
java.lang.NoClassDefFoundError: javax/jms/TopicConnectionFactory
at ch.ncode.logquest.jms.JmsHelper.getPublisher
(JmsHelper.java:71)
at ch.ncode.logquest.syslog.SyslogPacketHandler.run
(SyslogPacketHandler.java:321)
at java.lang.Thread.run(Thread.java:613)
If we add another dependency to "org.apache.geronimo.specs/geronimo-
jms_1.1_spec/1.0.1/jar", nothing changes.
Thanks for any help,
-ok
The deployment plan :
<module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://geronimo.apache.org/xml/ns/
deployment-1.1 /opt/geronimo-1.1.1/schema/geronimo-module-1.1.xsd"
xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
<environment>
<moduleId>
<groupId>ch.ncode.logserver</groupId>
<artifactId>LogServer-Syslog</artifactId>
<version>1.0</version>
<type>car</type>
</moduleId>
<dependencies>
<dependency>
<groupId>geronimo</groupId>
<artifactId>geronimo-connector</artifactId>
<version>1.1.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>geronimo</groupId>
<artifactId>geronimo-transaction</artifactId>
<version>1.1.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>geronimo</groupId>
<artifactId>geronimo-j2ee</artifactId>
<version>1.1.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>geronimo</groupId>
<artifactId>geronimo-management</artifactId>
<version>1.1.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>ch.ncode.logserver</groupId>
<artifactId>LogServer-Controller</artifactId>
<version>1.0</version>
<type>car</type>
</dependency>
<dependency>
<groupId>ch.ncode.logserver</groupId>
<artifactId>Syslog-GBean</artifactId>
<version>0.0.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>ch.ncode.logserver</groupId>
<artifactId>LogServer-Core</artifactId>
<version>0.0.1</version>
<type>jar</type>
</dependency>
</dependencies>
</environment>
<gbean name="ncode.SyslogServer"
class="ch.ncode.logquest.syslog.SyslogGBean">
<!--reference the JMS here-->
<reference name="managedConnectionFactoryWrapper">
<name>ncodeTopicConnectionFactory</name>
</reference>
</gbean>
</module>