You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Yang Yongsheng <yy...@yahoo.com> on 2003/04/28 03:44:58 UTC

JMS example ClassCastException

hi:    I downloaded SonicMQ 5, ran the JMS sample and I got the erro infor:------------------------------------------------------------------------------------------------------C:\axis>java samples.jms.JMSTest -c jndi-connection-factory.properties -d "MyQ"
IBM PRGS
- Exception:
java.lang.ClassCastException
        at org.apache.axis.components.jms.JNDIVendorAdapter.getConnectionFactory
(JNDIVendorAdapter.java:106)
        at org.apache.axis.components.jms.JNDIVendorAdapter.getQueueConnectionFa
ctory(JNDIVendorAdapter.java:86)
        at org.apache.axis.transport.jms.JMSConnectorFactory.createConnector(JMS
ConnectorFactory.java:168)
        at org.apache.axis.transport.jms.JMSConnectorFactory.createServerConnect
or(JMSConnectorFactory.java:101)
        at org.apache.axis.transport.jms.SimpleJMSListener.<init>(SimpleJMSListe
ner.java:120)
        at samples.jms.JMSTest.main(JMSTest.java:116)
Exception in thread "main" java.lang.ClassCastException
        at org.apache.axis.components.jms.JNDIVendorAdapter.getConnectionFactory
(JNDIVendorAdapter.java:106)
        at org.apache.axis.components.jms.JNDIVendorAdapter.getQueueConnectionFa
ctory(JNDIVendorAdapter.java:86)
        at org.apache.axis.transport.jms.JMSConnectorFactory.createConnector(JMS
ConnectorFactory.java:168)
        at org.apache.axis.transport.jms.JMSConnectorFactory.createServerConnect
or(JMSConnectorFactory.java:101)
        at org.apache.axis.transport.jms.SimpleJMSListener.<init>(SimpleJMSListe
ner.java:120)
        at samples.jms.JMSTest.main(JMSTest.java:116)------------------------------------------------------------------------------------------------ I followed the PDF file and setup the classpath of fscontext.jar and providerutil.jar to SONICMQ_CLASSPATH. SonicMQ set up sucessfully. I ran the command:java org.apache.axis.transport.http.SimpleAxisServerjava org.apache.axis.utils.Admin client client_deploy.wsddjava org.apache.axis.utils.Admin server server-config.wsdd then:java samples.jms.JMSTest -c jndi-connection-factory.properties -d "MyQ" IBM PRGS So I don't know what my problem is? Any help is great !! :) David   

---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.