2 Replies Latest reply on Jun 7, 2004 7:41 PM by Raj Tiwari

    jbossj2ee.jar JMS classes missing methods?

    Raj Tiwari Newbie

      I am trying out JMS on jboss 3.2.3. I am running into this weird problem.

      I needed jar files with JMS class declarations to compile my code. I looked around in jboss libs and used jbossj2ee.jar. Turns out that the javax.jms.ConnectionFactory class did not have any methods declared.
      I downloaded the JMS kit from Sun and used jms.jar from that download to compile my code.

      Figuring that the JMS classes must have been hidden elsewhere, I went ahead and deployed this code on jboss. One of my servlets accesses javax.jms.ConnectionFactory in init(). Sure enough, serlevet init failed with the following:
      09:39:53,463 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.2.3/server/default/deploy/outbound-dialing.war/
      java.lang.NoSuchMethodError: javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection;
      at com.nuance.outbounddialing.TestServlet.init(TestServlet.java:142)
      at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220)
      at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445)
      .
      .
      .
      My code has the following:

       ConnectionFactory cf_callset = (ConnectionFactory)ctx.lookup("java:/XAConnectionFactory");
      
       m_callSetSession = cf_callset.createConnection().createSession(false, Session.AUTO_ACKNOWLEDGE);
      


      This is likely something trivial, but I am at my wit's end. Any help will be greatly appeaciated.