1 Reply Latest reply on Jan 2, 2002 5:16 PM by mspeich

    An urgent question

    wxue123

      I want to run JMS application class in Jboss 2.4 without running the ant.
      And I have an error when I run it on cmd line:

      E:\myfile\java\ejb\jms>java SimpleQueueSender MyQueue 3
      Queue name is MyQueue
      JNDI lookup failed: javax.naming.CommunicationException: Can't find
      SerialContextProvider

      How to solve it?
      And my classpath is showed as followed:

      $TOMCAT_HOME;
      D:\j2ee\jdk1.3.\lib\dt.jar;
      D:\j2ee\jdk1.3.1\lib\tools.jar;
      D:\JBoss_Tomcat2.\tomcat\lib\servlet.jar;
      D:\JBoss_Tomcat2.4\jboss\client\jboss-client.jar;
      D:\JBoss_Tomcat2.4\jboss\client\jnp-client.jar;
      D:\JBoss_Tomcat2.4\jboss\client\jbossmq-client.jar;
      D:\JBoss_Tomcat2.4\jboss\client\jboss-j2ee.jar;
      D:\JBoss_Tomcat2.4\jboss\client\log4j.jar;
      D:\JBoss_Tomcat2.4\jboss\conf\tomcat\;
      D:\JBoss_Tomcat2.4\jboss\lib\ext\ejb.jar;
      D:\JBoss_Tomcat2.4\jboss\lib\ext\oswego-concurrent.jar;.

      Or should I add some property file on the cmd line?If yes,which propertie file should be added?

      3x