client development under eclipse

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

client development under eclipse

Adam Crain
Hi,

 

I am shooting for running the simplest possible amqp example I could
under Eclipse:

 

https://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example/src
/main/java/org/apache/qpid/example/amqpexample/direct/DeclareQueue.java

 

I am trying to get this file to build and run under eclipse against the
prebuilt jars in:

 

http://www.apache.org/dist/qpid/0.5/qpid-java-client-0.5.tar.gz

 

I'm fairly new to eclipse but have gotten paste these initial hurdles as
I hit problems:

 

1)      Added the qpid jars to build path - qpid-common-0.5.jar

2)      Downloaded and added the sfl4j-simple.1.5.2.jar to the build
path

 

Now I am hitting the following runtime error:

 

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/mina/common/ByteBufferAllocator

at org.apache.qpid.transport.Connection.connect(Connection.java:178)

 

Where can I find this class definition? I notice that
qpid-common-0.5.jar only contains 1 class definition:
FixedSizeByteBufferAllocator, not ByteBufferAllocator.

 

Thanks for your help,

Adam

 

Reply | Threaded
Open this post in threaded view
|

Re: client development under eclipse

Rajith Muditha Attapattu
org/apache/mina/common/ByteBufferAllocator is in the mina-core-1.0.1.jar.


You need the following jars in your build path to get the example
compiled and running.

backport-util-concurrent-2.2.jar
geronimo-jms_1.1_spec-1.0.jar
slf4j-api-1.4.0.jar ( since you have  sfl4j-simple.1.5.2.jar you don't
need this)
commons-collections-3.2.jar
mina-core-1.0.1.jar
qpid-common-0.7.jar (You already seem to have this)
commons-lang-2.3.jar
mina-filter-ssl-1.0.1.jar
qpid-client-0.7.jar (You already seem to have this)

Regards,

Rajith

On Tue, Feb 9, 2010 at 4:51 PM, Adam Crain
<[hidden email]> wrote:

> Hi,
>
>
>
> I am shooting for running the simplest possible amqp example I could
> under Eclipse:
>
>
>
> https://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example/src
> /main/java/org/apache/qpid/example/amqpexample/direct/DeclareQueue.java
>
>
>
> I am trying to get this file to build and run under eclipse against the
> prebuilt jars in:
>
>
>
> http://www.apache.org/dist/qpid/0.5/qpid-java-client-0.5.tar.gz
>
>
>
> I'm fairly new to eclipse but have gotten paste these initial hurdles as
> I hit problems:
>
>
>
> 1)      Added the qpid jars to build path - qpid-common-0.5.jar
>
> 2)      Downloaded and added the sfl4j-simple.1.5.2.jar to the build
> path
>
>
>
> Now I am hitting the following runtime error:
>
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/mina/common/ByteBufferAllocator
>
> at org.apache.qpid.transport.Connection.connect(Connection.java:178)
>
>
>
> Where can I find this class definition? I notice that
> qpid-common-0.5.jar only contains 1 class definition:
> FixedSizeByteBufferAllocator, not ByteBufferAllocator.
>
>
>
> Thanks for your help,
>
> Adam
>
>
>
>



--
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[hidden email]