Hi Dennis

There are actually two Apache Qpid JMS clients at the moment.

* The Qpid JMS client that uses AMQP 1.0
(https://qpid.apache.org/components/jms/) and,
* The older JMS client that uses the older AMQP protocols (AMQP 0-9/0-91/0-10).

We recommend the former, AMQP 1.0 one, unless you have specific
requirements that mean the older one is the only option.

The examples you are looking at correspond to the older JMS client.
What are your messaging requirements?

Turning to the problem, it sounds like a class path issue,
specifically that the geronimo-jms_1.1_spec-x.x.x.jar is not being
found.  It should have been copied into the
example/target/dependencies directory by the copy-dependencies step.
I don't have a Windows/Cygwin environment to experiment in, but
perhaps if you repeat with a -verbose:class Java command line option,
the problem should reveal itself.

HTH Keith.









On 30 July 2017 at 21:20, [email protected] <[email protected]> wrote:
> Version qpid-broker-j-6.1.4
>
> Following README.txt, I did this:
> 1. Built qpid broker:
>         mvn clean install -DskipTests
> 2. Setup to run examples:
>         mvn clean package dependency:copy-dependencies -DskipTests
> 3. Ran examples:
>         java -cp
> "client/example/target/classes/:client/example/target/dependency/*"
> org.apache.qpid.example.Drain
>
> Step 3 failed with this error:
> Error: Could not find or load main class org.apache.qpid.example.Drain
> A search indicated that Drain.class was here:
> ./client/example/target/classes/org/apache/qpid/example/Drain.class
> which is the proper location.
> Since I was running under Windows7/Cygwin, I tried again replacing the
> colon in the classpath with semicolon. I got this error:
>         java.lang.NoClassDefFoundError: javax/jms/Connection
> ...
> Caused by: java.lang.ClassNotFoundException: javax.jms.Connection
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> I am guessing the solution is simple, but fail to see it. Suggestions?
> =Dennis Heimbigner
>  Unidata
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to