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.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837797#3837797

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837797


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to