You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by NP-Hard <rm...@ironhawk.com> on 2010/02/09 01:16:24 UTC

missing jars ?

Hi,

I'm new to Camel and trying to build a simple example without using
Ant or Maven, just adding all the jars from Camel and ActiveMQ to
the classpath directly. My example uses the file and JMS connectors
to pick up a file and write it to a topic.

The program compiles ok but I'm getting a lot of runtime errors about
missing classes. The first was javax.jcr.Value; I then downloaded
jcr-1.0.jar
and added it to the classpath. Now I'm getting an error about
org.restlet.data.Method.

I get the feeling I'm missing a whole bunch of jars somehow ...

Any help is much appreciated, thanks.

-- 
View this message in context: http://old.nabble.com/missing-jars---tp27508543p27508543.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: missing jars ?

Posted by Stephen Gargan <st...@gmail.com>.
Why not use ant or maven? Building out the classpath by hand is always
going to be tedious and time consuming and really not worth your time.
Camel has many transitive dependencies and trying ot pick and choose
them is going to be a real hit and miss affair, particularly where you
use an incorrect version. If you did manage to blindly find the
correct versions you'd be back to square one if you ever wanted to
upgrade your camel versions.

All the transitive dependency information is captured correctly in the
maven poms, so if you must cut your classpath by hand do yourself a
favour and check the poms for the correct versions.

A much better investment of this time would be to install maven,
bootstrap your project with the camel archetype or one of the many
examples and have maven generate your ide project files.

Why do you want to build it by hand?

ste

On Mon, Feb 8, 2010 at 4:16 PM, NP-Hard <rm...@ironhawk.com> wrote:
>
> Hi,
>
> I'm new to Camel and trying to build a simple example without using
> Ant or Maven, just adding all the jars from Camel and ActiveMQ to
> the classpath directly. My example uses the file and JMS connectors
> to pick up a file and write it to a topic.
>
> The program compiles ok but I'm getting a lot of runtime errors about
> missing classes. The first was javax.jcr.Value; I then downloaded
> jcr-1.0.jar
> and added it to the classpath. Now I'm getting an error about
> org.restlet.data.Method.
>
> I get the feeling I'm missing a whole bunch of jars somehow ...
>
> Any help is much appreciated, thanks.
>
> --
> View this message in context: http://old.nabble.com/missing-jars---tp27508543p27508543.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Re: missing jars ?

Posted by Stephen Gargan <st...@gmail.com>.
Implies you have maven installed, so why not just use it and save
yourself the trouble ;)

On Mon, Feb 8, 2010 at 5:32 PM, Willem Jiang <wi...@gmail.com> wrote:
> By using the mvn dependency:list from the camel-example-jms-file, you can
> see the jars
> [INFO] The following files have been resolved:
> [INFO]    aopalliance:aopalliance:jar:1.0:compile
> [INFO]    com.sun.xml.bind:jaxb-impl:jar:2.1.12:compile
> [INFO]    commons-logging:commons-logging:jar:1.1.1:compile
> [INFO]    commons-logging:commons-logging-api:jar:1.1:compile
> [INFO]    commons-net:commons-net:jar:2.0:compile
> [INFO]    commons-pool:commons-pool:jar:1.5.4:compile
> [INFO]    javax.activation:activation:jar:1.1:compile
> [INFO]    javax.xml.bind:jaxb-api:jar:2.1:compile
> [INFO]    javax.xml.stream:stax-api:jar:1.0-2:compile
> [INFO]    junit:junit:jar:4.4:test
> [INFO]    org.apache.activemq:activeio-core:jar:3.1.2:compile
> [INFO]    org.apache.activemq:activemq-camel:jar:5.3.0:compile
> [INFO]    org.apache.activemq:activemq-core:jar:5.3.0:compile
> [INFO]    org.apache.activemq:activemq-pool:jar:5.3.0:compile
> [INFO]    org.apache.activemq:kahadb:jar:5.3.0:compile
> [INFO]    org.apache.activemq.protobuf:activemq-protobuf:jar:1.0:compile
> [INFO]    org.apache.camel:camel-core:jar:2.3-SNAPSHOT:compile
> [INFO]    org.apache.camel:camel-jms:jar:2.3-SNAPSHOT:compile
> [INFO]    org.apache.camel:camel-spring:jar:2.3-SNAPSHOT:compile
> [INFO]
> org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.1:compile
> [INFO]
> org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1:compile
> [INFO]    org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile
> [INFO] org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compile
> [INFO]    org.apache.xbean:xbean-spring:jar:3.5:compile
> [INFO]    org.fusesource.commonman:commons-management:jar:1.0:compile
> [INFO]    org.springframework:spring-aop:jar:2.5.6:compile
> [INFO]    org.springframework:spring-beans:jar:2.5.6:compile
> [INFO]    org.springframework:spring-context:jar:2.5.6:compile
> [INFO]    org.springframework:spring-context-support:jar:2.5.6:compile
> [INFO]    org.springframework:spring-core:jar:2.5.6:compile
> [INFO]    org.springframework:spring-jms:jar:2.5.6:compile
> [INFO]    org.springframework:spring-tx:jar:2.5.6:compile
>
> Willem
>
> NP-Hard wrote:
>>
>> Hi,
>>
>> I'm new to Camel and trying to build a simple example without using
>> Ant or Maven, just adding all the jars from Camel and ActiveMQ to
>> the classpath directly. My example uses the file and JMS connectors
>> to pick up a file and write it to a topic.
>>
>> The program compiles ok but I'm getting a lot of runtime errors about
>> missing classes. The first was javax.jcr.Value; I then downloaded
>> jcr-1.0.jar
>> and added it to the classpath. Now I'm getting an error about
>> org.restlet.data.Method.
>>
>> I get the feeling I'm missing a whole bunch of jars somehow ...
>>
>> Any help is much appreciated, thanks.
>>
>
>

Re: missing jars ?

Posted by Willem Jiang <wi...@gmail.com>.
By using the mvn dependency:list from the camel-example-jms-file, you 
can see the jars
[INFO] The following files have been resolved:
[INFO]    aopalliance:aopalliance:jar:1.0:compile
[INFO]    com.sun.xml.bind:jaxb-impl:jar:2.1.12:compile
[INFO]    commons-logging:commons-logging:jar:1.1.1:compile
[INFO]    commons-logging:commons-logging-api:jar:1.1:compile
[INFO]    commons-net:commons-net:jar:2.0:compile
[INFO]    commons-pool:commons-pool:jar:1.5.4:compile
[INFO]    javax.activation:activation:jar:1.1:compile
[INFO]    javax.xml.bind:jaxb-api:jar:2.1:compile
[INFO]    javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO]    junit:junit:jar:4.4:test
[INFO]    org.apache.activemq:activeio-core:jar:3.1.2:compile
[INFO]    org.apache.activemq:activemq-camel:jar:5.3.0:compile
[INFO]    org.apache.activemq:activemq-core:jar:5.3.0:compile
[INFO]    org.apache.activemq:activemq-pool:jar:5.3.0:compile
[INFO]    org.apache.activemq:kahadb:jar:5.3.0:compile
[INFO]    org.apache.activemq.protobuf:activemq-protobuf:jar:1.0:compile
[INFO]    org.apache.camel:camel-core:jar:2.3-SNAPSHOT:compile
[INFO]    org.apache.camel:camel-jms:jar:2.3-SNAPSHOT:compile
[INFO]    org.apache.camel:camel-spring:jar:2.3-SNAPSHOT:compile
[INFO] 
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.1:compile
[INFO] 
org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1:compile
[INFO]    org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile
[INFO] 
org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compile
[INFO]    org.apache.xbean:xbean-spring:jar:3.5:compile
[INFO]    org.fusesource.commonman:commons-management:jar:1.0:compile
[INFO]    org.springframework:spring-aop:jar:2.5.6:compile
[INFO]    org.springframework:spring-beans:jar:2.5.6:compile
[INFO]    org.springframework:spring-context:jar:2.5.6:compile
[INFO]    org.springframework:spring-context-support:jar:2.5.6:compile
[INFO]    org.springframework:spring-core:jar:2.5.6:compile
[INFO]    org.springframework:spring-jms:jar:2.5.6:compile
[INFO]    org.springframework:spring-tx:jar:2.5.6:compile

Willem

NP-Hard wrote:
> Hi,
> 
> I'm new to Camel and trying to build a simple example without using
> Ant or Maven, just adding all the jars from Camel and ActiveMQ to
> the classpath directly. My example uses the file and JMS connectors
> to pick up a file and write it to a topic.
> 
> The program compiles ok but I'm getting a lot of runtime errors about
> missing classes. The first was javax.jcr.Value; I then downloaded
> jcr-1.0.jar
> and added it to the classpath. Now I'm getting an error about
> org.restlet.data.Method.
> 
> I get the feeling I'm missing a whole bunch of jars somehow ...
> 
> Any help is much appreciated, thanks.
>