geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oli Kessler ...@ncode.ch>
Subject GBean - NoClassDefFoundError javax.jms.TopicConnectionFactory
Date Mon, 09 Apr 2007 23:21:37 GMT
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>




Mime
View raw message