You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by lmanchanda75 <lm...@gmail.com> on 2013/04/30 09:24:26 UTC

Re: camel-hibernate example problem

The original message got all mixed up, so putting it up again:


Hi , I am trying to run the example on camel hibernate from camel-extra
source on code.google, I got the code from trunk. The camel-context.xml is
using hibernat4 for transaction manager and session factory,

*<bean id="transactionManager"
class="org.springframework.orm.hibernate4.HibernateTransactionManager">*

*<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">*

while camel-hibernate latest component (2.10.1) depends on hibernate
3.6.10.final as depicted in the dependency graph below. So I get method not
found exceptions. Am I missing something? or Should I change the
camel-context to use earlier versions of hibernate


The following files have been resolved:
[INFO]    antlr:antlr:jar:2.7.6:compile
[INFO]    aopalliance:aopalliance:jar:1.0:compile
[INFO]    commons-collections:commons-collections:jar:3.1:compile
[INFO]    commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO]    commons-logging:commons-logging:jar:1.1.1:compile
[INFO]    commons-pool:commons-pool:jar:1.5.4:compile
[INFO]    dom4j:dom4j:jar:1.6.1:compile
[INFO]    javax.transaction:jta:jar:1.1:compile
[INFO]    log4j:log4j:jar:1.2.17:compile
[INFO]    org.apache-extras.camel-extra:camel-hibernate:jar:2.10.1:compile
[INFO]    org.apache.camel:camel-core:jar:2.10.1:compile
[INFO]    org.apache.camel:camel-spring:jar:2.10.1:compile
[INFO]    org.apache.derby:derby:jar:10.9.1.0:compile
[INFO]   
org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.12.1.GA_3:compile
[INFO]   
org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
[INFO] *   org.hibernate:hibernate-core:jar:3.6.10.Final:compile*
[INFO]   
org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO]    org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO]    org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO]    org.springframework:spring-aop:jar:3.0.7.RELEASE:compile
[INFO]    org.springframework:spring-asm:jar:3.0.7.RELEASE:compile
[INFO]    org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
[INFO]    org.springframework:spring-context:jar:3.0.7.RELEASE:compile
[INFO]    org.springframework:spring-core:jar:3.2.0.RELEASE:compile
[INFO]    org.springframework:spring-expression:jar:3.0.7.RELEASE:compile
[INFO]    org.springframework:spring-jdbc:jar:3.2.0.RELEASE:compile
[INFO]    org.springframework:spring-orm:jar:3.2.0.RELEASE:compile
[INFO]    org.springframework:spring-tx:jar:3.2.0.RELEASE:compile





--
View this message in context: http://camel.465427.n5.nabble.com/camel-hibernate-example-problem-tp5731769p5731770.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-hibernate example problem

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Spring 3.2 is not compatible with Hibernate 3.x anymore. It requires
Hibernate 4.x.

There is a new/updated camel-hibernate component in Camel Extra that
uses Hibernate 4.x.
https://code.google.com/a/apache-extras.org/p/camel-extra/?redir=1

The source is here
https://code.google.com/a/apache-extras.org/p/camel-extra/source/browse/#svn%2Ftrunk%2Fcomponents%2Fcamel-hibernate

The camel-extra 2.11.0 hasn't been released yet, so you may need to
build from the source.


On Tue, Apr 30, 2013 at 9:24 AM, lmanchanda75 <lm...@gmail.com> wrote:
> The original message got all mixed up, so putting it up again:
>
>
> Hi , I am trying to run the example on camel hibernate from camel-extra
> source on code.google, I got the code from trunk. The camel-context.xml is
> using hibernat4 for transaction manager and session factory,
>
> *<bean id="transactionManager"
> class="org.springframework.orm.hibernate4.HibernateTransactionManager">*
>
> *<bean id="sessionFactory"
> class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">*
>
> while camel-hibernate latest component (2.10.1) depends on hibernate
> 3.6.10.final as depicted in the dependency graph below. So I get method not
> found exceptions. Am I missing something? or Should I change the
> camel-context to use earlier versions of hibernate
>
>
> The following files have been resolved:
> [INFO]    antlr:antlr:jar:2.7.6:compile
> [INFO]    aopalliance:aopalliance:jar:1.0:compile
> [INFO]    commons-collections:commons-collections:jar:3.1:compile
> [INFO]    commons-dbcp:commons-dbcp:jar:1.4:compile
> [INFO]    commons-logging:commons-logging:jar:1.1.1:compile
> [INFO]    commons-pool:commons-pool:jar:1.5.4:compile
> [INFO]    dom4j:dom4j:jar:1.6.1:compile
> [INFO]    javax.transaction:jta:jar:1.1:compile
> [INFO]    log4j:log4j:jar:1.2.17:compile
> [INFO]    org.apache-extras.camel-extra:camel-hibernate:jar:2.10.1:compile
> [INFO]    org.apache.camel:camel-core:jar:2.10.1:compile
> [INFO]    org.apache.camel:camel-spring:jar:2.10.1:compile
> [INFO]    org.apache.derby:derby:jar:10.9.1.0:compile
> [INFO]
> org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.12.1.GA_3:compile
> [INFO]
> org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
> [INFO] *   org.hibernate:hibernate-core:jar:3.6.10.Final:compile*
> [INFO]
> org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
> [INFO]    org.slf4j:slf4j-api:jar:1.7.5:compile
> [INFO]    org.slf4j:slf4j-log4j12:jar:1.7.5:compile
> [INFO]    org.springframework:spring-aop:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-asm:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-context:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-core:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-expression:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-jdbc:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-orm:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-tx:jar:3.2.0.RELEASE:compile
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-hibernate-example-problem-tp5731769p5731770.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: camel-hibernate example problem

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

There should be a jpa-hibernate feature you can install in Fuse to use
Hibernate. That is the supported hibernate version in Fuse.



On Tue, Apr 30, 2013 at 10:31 AM, lmanchanda75 <lm...@gmail.com> wrote:
> Just taking liberty here, as I am using Fuse, do we have support for
> hibernate 4.x on it?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-hibernate-example-problem-tp5731769p5731780.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: camel-hibernate example problem

Posted by lmanchanda75 <lm...@gmail.com>.
Just taking liberty here, as I am using Fuse, do we have support for
hibernate 4.x on it?



--
View this message in context: http://camel.465427.n5.nabble.com/camel-hibernate-example-problem-tp5731769p5731780.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-hibernate example problem

Posted by Claus Ibsen <cl...@gmail.com>.
Also you should not mix different Spring JAR versions. You have a mix
of Spring 3.2.0 and 3.0.7. Its best to use the same version.

On Tue, Apr 30, 2013 at 9:24 AM, lmanchanda75 <lm...@gmail.com> wrote:
> The original message got all mixed up, so putting it up again:
>
>
> Hi , I am trying to run the example on camel hibernate from camel-extra
> source on code.google, I got the code from trunk. The camel-context.xml is
> using hibernat4 for transaction manager and session factory,
>
> *<bean id="transactionManager"
> class="org.springframework.orm.hibernate4.HibernateTransactionManager">*
>
> *<bean id="sessionFactory"
> class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">*
>
> while camel-hibernate latest component (2.10.1) depends on hibernate
> 3.6.10.final as depicted in the dependency graph below. So I get method not
> found exceptions. Am I missing something? or Should I change the
> camel-context to use earlier versions of hibernate
>
>
> The following files have been resolved:
> [INFO]    antlr:antlr:jar:2.7.6:compile
> [INFO]    aopalliance:aopalliance:jar:1.0:compile
> [INFO]    commons-collections:commons-collections:jar:3.1:compile
> [INFO]    commons-dbcp:commons-dbcp:jar:1.4:compile
> [INFO]    commons-logging:commons-logging:jar:1.1.1:compile
> [INFO]    commons-pool:commons-pool:jar:1.5.4:compile
> [INFO]    dom4j:dom4j:jar:1.6.1:compile
> [INFO]    javax.transaction:jta:jar:1.1:compile
> [INFO]    log4j:log4j:jar:1.2.17:compile
> [INFO]    org.apache-extras.camel-extra:camel-hibernate:jar:2.10.1:compile
> [INFO]    org.apache.camel:camel-core:jar:2.10.1:compile
> [INFO]    org.apache.camel:camel-spring:jar:2.10.1:compile
> [INFO]    org.apache.derby:derby:jar:10.9.1.0:compile
> [INFO]
> org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.12.1.GA_3:compile
> [INFO]
> org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
> [INFO] *   org.hibernate:hibernate-core:jar:3.6.10.Final:compile*
> [INFO]
> org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
> [INFO]    org.slf4j:slf4j-api:jar:1.7.5:compile
> [INFO]    org.slf4j:slf4j-log4j12:jar:1.7.5:compile
> [INFO]    org.springframework:spring-aop:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-asm:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-context:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-core:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-expression:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-jdbc:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-orm:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-tx:jar:3.2.0.RELEASE:compile
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-hibernate-example-problem-tp5731769p5731770.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen