1 Reply Latest reply on Nov 7, 2001 9:43 PM by Peter Tran

    Problem of running example in 2.4.3 out of the box

    Peter Tran Newbie

      Hi,

      I encountered the following error running the example after installing 2.4.3 out-of-the-box.

      >ant jms-hello-publishser25

      compile:

      jms-hello-publisher25:
      [echo] Using resources from: C:\FreeSoftwares\JBoss-2.4.3_Tomcat-3.2.3\jbos
      s\examples_jboss/resources
      [java] An exception occured while testing HelloPublisher25: org.jboss.mq.Sp
      yJMSException: Cannot get a client ID: Option unsupported by protocol: connect
      [java] org.jboss.mq.SpyJMSException: Cannot get a client ID: Option unsuppo
      rted by protocol: connect
      [java] at org.jboss.mq.Connection.askForAnID(Connection.java:370)
      [java] at org.jboss.mq.Connection.(Connection.java:113)
      [java] at org.jboss.mq.Connection.(Connection.java:135)
      [java] at org.jboss.mq.SpyConnection.(SpyConnection.java:58)
      [java] at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyCo
      nnectionFactory.java:64)
      [java] at org.jboss.docs.jms.client.HelloPublisher.(HelloPublishe
      r.java:71)
      [java] at org.jboss.docs.jms.client.HelloPublisher25.(HelloPublis
      her25.java:26)
      [java] at org.jboss.docs.jms.client.HelloPublisher25.main(HelloPublishe
      r25.java:38)
      [java] linked exception is:
      [java] java.net.SocketException: Option unsupported by protocol: connect
      [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
      [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
      [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
      a:136)
      [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
      [java] at java.net.Socket.(Socket.java:273)
      [java] at java.net.Socket.(Socket.java:127)
      [java] at org.jboss.mq.il.oil.OILServerIL.createConnection(OILServerIL.
      java:254)
      [java] at org.jboss.mq.il.oil.OILServerIL.checkConnection(OILServerIL.j
      ava:248)
      [java] at org.jboss.mq.il.oil.OILServerIL.getID(OILServerIL.java:95)
      [java] at org.jboss.mq.Connection.askForAnID(Connection.java:367)
      [java] at org.jboss.mq.Connection.(Connection.java:113)
      [java] at org.jboss.mq.Connection.(Connection.java:135)
      [java] at org.jboss.mq.SpyConnection.(SpyConnection.java:58)
      [java] at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyCo
      nnectionFactory.java:64)
      [java] at org.jboss.docs.jms.client.HelloPublisher.(HelloPublishe
      r.java:71)
      [java] at org.jboss.docs.jms.client.HelloPublisher25.(HelloPublis
      her25.java:26)
      [java] at org.jboss.docs.jms.client.HelloPublisher25.main(HelloPublishe
      r25.java:38)

      Do I need to configure the JBOSS prior running this test?

      Thanks in advance.

      Peter