Forum Home » Enterprise Products » Fuse IDE

Thread: What are the external JARs that should be added to the build path?

 
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 16 - Last Post: Aug 31, 2009 1:02 AM Last Post By: khaliqgaffar
indika

Posts: 15
Registered: 08/16/09
What are the external JARs that should be added to the build path?
Posted: Aug 16, 2009 5:59 PM
 
  Click to reply to this thread Reply
I?m new to FUSE and trying to develop some use cases using FID 1.2.1 / EIP projects.
Can someone tell me, what are the external JARs that I should add to the build path for each camel processor, endpoints?

Is there any document to find the above?

Greatly appreciate your help on this.
spindipr

Posts: 24
Registered: 03/17/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 17, 2009 5:41 AM   in response to: indika in response to: indika
 
  Click to reply to this thread Reply
Hi indika,

We don't have any specific document with the list of external jars for different components.

To run the EIP with Processors or patterns in the FID1.2.1, we don't require any external jars to be added to the build path.

I have listed the jars that are need to be added to the classpath for different endpoints.

File Endpoint: There is no need of adding the specific jars to the project build path.
JMS Endpoint: You have to add activemq-all.jar from fuse-message-broker installation.

CXF Endpoint: you have to add the below jars
  • cxf-<Service Mix Version>-fuse.jar fuse-services-framework installation
  • cxf-manifest.jar from fuse-services-framework installation
  • Stax.jar from fuse-message-broker installation.
  • Jaxb-impl.jar from fuse-message-broker installation.
  • And also we add the project if the service implementation is available in different project.

FTP Endpoint: you have to add commons-net-2.0.jar

HTTP Endpoint you have to add the below jars
  • commons-io.jar from fuse-esb installation
  • commons-httpclient.jar from fuse-services-framework installation
  • commons-codec.jar from fuse-services-framework installation
  • camel-http.jar from fuse-mediation-router installation

To deploy the EIP in the FUSE ESB Server we don't have exact jars to be added.It depends on the route we build.

But to work with some patterns like CBR, Aggregator etc in FUSE ESB 4.x version we need to add below jars
activemq-all.jar from fuse-message-broker installation.
spring-2.5.5.jar from fuse-services-framework installation

Hope this helps.

Thanks,
Sailaja.
bobyetman

Posts: 34
Registered: 08/07/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 17, 2009 11:21 AM   in response to: spindipr in response to: spindipr
 
  Click to reply to this thread Reply
Can you list similar requirements for Fuse ESB 3.4.0.3? I keep stumbling across the same type of problem. Right now I'm trying to use the Aggregator.
spindipr

Posts: 24
Registered: 03/17/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 17, 2009 12:49 PM   in response to: bobyetman in response to: bobyetman
 
  Click to reply to this thread Reply
There is no separate set of requirement for FUSE ESB server.
Based on the endpoints you use in your route, you have to add the jars mentioned in the above list to the build path.

Thanks,
Sailaja.
dandries

Posts: 16
Registered: 08/20/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 20, 2009 2:03 PM   in response to: spindipr in response to: spindipr
 
  Click to reply to this thread Reply
Hi !

I installed Fuse ESB and Fuse IDE.
I'm trying to add activemq-all.jar to my buildpath in order to use a jms-endpoint.

Maybe a stupid question, but where can I find this jar? Do I need to install Fuse Message Broker, just to have this file?

Other question, I installed Fuse Message Broker and I'm trying to add the jar that I found here? Is it just by adding an external jar to the project doing "> Configure Build Path > Libraries > Add External Jar"?

Do I need to do something else so that this jar is added to my bundle or does it refresh automatically on the fuse server?
spindipr

Posts: 24
Registered: 03/17/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 20, 2009 2:18 PM   in response to: dandries in response to: dandries
 
  Click to reply to this thread Reply
Hi,

Yeah, what you have done is perfect and once your route is valid you can deploy (Drag and Drop Project from Project Explorer to Server View) the project into FUSE ESB.

Thanks,
Sailaja.
dandries

Posts: 16
Registered: 08/20/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 21, 2009 12:52 PM   in response to: spindipr in response to: spindipr
 
  Click to reply to this thread Reply
That's strange, because for me that doesn't work :(

14:50:43,859 | ERROR | Timer-0 | OsgiCamelJbiComponent | mmon.xbean.AbstractXBeanDeployer 103 | org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class http://org.apache.camel.component.jms.JmsComponent not found
spindipr

Posts: 24
Registered: 03/17/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 21, 2009 1:05 PM   in response to: dandries in response to: dandries
 
  Click to reply to this thread Reply
Can you just try by adding camel-jms.jar also to your build path?

Thanks,
Sailaja

Edited by: spindipr on Aug 21, 2009 1:05 PM
dandries

Posts: 16
Registered: 08/20/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 21, 2009 9:03 PM   in response to: spindipr in response to: spindipr
 
  Click to reply to this thread Reply
YES! This made it. But I don't understand why for the other persons it worked with activemq-all.jar and for me it works with only the camel-jms.jar? ;-)

Thanks for your advice Sailaja.
sivaram

Posts: 9
Registered: 08/18/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 24, 2009 10:14 AM   in response to: dandries in response to: dandries
 
  Click to reply to this thread Reply
Hi All,

What are the jars required for TCP endpoint (Generic endpoint - tcp://localhost:8888)? I tried adding the below jars but no success.

1. camel-mina-1.6.1.2-fuse.jar
2. camel-spring-1.6.1.2-fuse.jar

exception:
org.apache.camel.NoSuchEndpointException: No endpoint could be found for: tcp://localhost:8888, please check your classpath contains the needed camel component jar.

Also, let me know the jars for SQL endpoint (sql:insert into ....).

Thanks for your help.

Edited by: sivaram on Aug 24, 2009 3:49 PM
sivanaresh

Posts: 5
Registered: 05/22/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 24, 2009 10:37 AM   in response to: sivaram in response to: sivaram
 
  Click to reply to this thread Reply
Hi Sivaram,

Can you try generic endpoint uri as 'mina:tcp://localhost:8888' instead of
'tcp://localhost:8888' with the same jars.

Regards,
Siva Naresh.
oisin

Posts: 136
Registered: 08/05/07
Re: What are the external JARs that should be added to the build path?
Posted: Aug 24, 2009 10:37 AM   in response to: sivaram in response to: sivaram
 
  Click to reply to this thread Reply
What are the jars required for TCP endpoint (Generic endpoint - tcp://localhost:8888)? I tried adding the below jars but no success.

1. camel-mina-1.6.1.2-fuse.jar
2. camel-spring-1.6.1.2-fuse.jar

The camel-mina component provides for the tcp, udp, mcast, multicast and vm protocols, so you have picked the correct Camel component jar. This component depends on Apache Mina, so you should also include the mina-core jar on the classpath.
verano

Posts: 13
Registered: 08/24/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 24, 2009 10:27 AM   in response to: spindipr in response to: spindipr
 
  Click to reply to this thread Reply
and which would be the necesary JARs for the JBI endpoints??

Because I got this exception when I run my EIP Project:

org.apache.camel.NoSuchEndpointException: No endpoint could be found for: jbi:service:http://localhost:8084/ProcesadorInfoWebApp/ProcesadorInfoWS?operation=initHelper

thank you!!!
oisin

Posts: 136
Registered: 08/05/07
Re: What are the external JARs that should be added to the build path?
Posted: Aug 24, 2009 10:43 AM   in response to: verano in response to: verano
 
  Click to reply to this thread Reply
and which would be the necesary JARs for the JBI endpoints??

Access to JBI endpoints means living in a JBI container - for Camel, there's an integration with ServiceMix, some links with more information are below, check these out first.

http://camel.apache.org/jbi.html
http://servicemix.apache.org/servicemix-camel.html
sivaram

Posts: 9
Registered: 08/18/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 24, 2009 12:28 PM   in response to: oisin in response to: oisin
 
  Click to reply to this thread Reply
Thank you Oisin for the response!

I added the following jars to make TCP work

1. camel-mina-1.6.1.2-fuse.jar
2. mina-core-1.1.7.jar
3. slf4j-api-1.5.8.jar
4. slf4j-simple-1.5.8.jar

2, 3 & 4 were not present in any of the FUSE installation (ESB, MQ, CXF & Router). Copying of such libraries (not present in FUSE installation) is expected?
oisin

Posts: 136
Registered: 08/05/07
Re: What are the external JARs that should be added to the build path?
Posted: Aug 24, 2009 2:28 PM   in response to: sivaram in response to: sivaram
 
  Click to reply to this thread Reply
2, 3 & 4 were not present in any of the FUSE installation (ESB, MQ, CXF & Router). Copying of such libraries (not present in FUSE installation) is expected?

This is a side-effect of using Maven as the core building mechanism for the FUSE software. Since Maven is smart enough to go and find the correctly versioned dependencies, we don't ship them by default. This keeps your download size smaller.

Yes, it can be a nuisance at times, but in most cases (so far) it has been ok.
khaliqgaffar

Posts: 38
Registered: 08/04/09
Re: What are the external JARs that should be added to the build path?
Posted: Aug 31, 2009 1:02 AM   in response to: oisin in response to: oisin
 
  Click to reply to this thread Reply
why dont you have 2 installables one with dependencies and other without dependencies.

Regards,
Khaliq