You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Angelo C." <an...@gmail.com> on 2011/01/07 14:22:45 UTC

t5: upgrading from 5.1.0.5 to 5.2.4

Hi,

got quite a lot of errors after running, looks like from Hibernate, here is
what I have now, what needs to be changed? THanks,


 <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.2.2.ga</version>
    </dependency>

    <dependency>
      <groupId>c3p0</groupId>
      <artifactId>c3p0</artifactId>
      <version>0.9.1.2</version>
    </dependency>

    <dependency>
      <groupId>geronimo-spec</groupId>
      <artifactId>geronimo-spec-jta</artifactId>
      <version>1.0-M1</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-annotations</artifactId>
      <version>3.2.1.ga</version>
    </dependency>

-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4-tp3331829p3331829.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: upgrading from 5.1.0.5 to 5.2.4

Posted by Josh Canfield <jo...@gmail.com>.
I haven't done any research, but are we actually using features from 3.6?
Shouldn't tapestry depend on the oldest forward compatible version possible,
and let the app developer override it?
On Jan 8, 2011 2:28 AM, "Angelo C." <an...@gmail.com> wrote:
>
> Hi Thiago,
>
> so T5 uses Hibernate 3.6? here is a dependency tree I got from my pom.xml,
> T5.2.4 pulls out hibernate 3.6:
>
> [INFO] +- org.apache.tapestry:tapestry-hibernate:jar:5.2.4:compile
> [INFO] | \- org.apache.tapestry:tapestry-hibernate-core:jar:5.2.4:compile
> [INFO] | +- org.hibernate:hibernate-core:jar:3.6.0.Final:compile
> [INFO] | | +- antlr:antlr:jar:2.7.6:compile
> [INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
> [INFO] | | +-
> org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
> [INFO] | | \-
>
org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
> [INFO] | +- geronimo-spec:geronimo-spec-jta:jar:1.0-M1:compile
> [INFO] | \- org.hibernate:hibernate-c3p0:jar:3.6.0.Final:compile
> [INFO] | \- c3p0:c3p0:jar:0.9.1:compile
> --
> View this message in context:
http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4-tp3331829p3332965.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

Re: t5: upgrading from 5.1.0.5 to 5.2.4

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Sat, 08 Jan 2011 08:27:46 -0200, Angelo C. <an...@gmail.com>  
wrote:

> Hi Thiago,

Hi!

> so T5 uses Hibernate 3.6?

Tapestry(-core) doesn't use Hibernate at all. Tapestry-Hibernate does. As  
far as I can remember, the dependency scope is "provided", i.e, it will  
use the Hibernate version you choose. If you don't specify one,  
Tapestry-Hibernate uses the version it wants. For Tapestry-Hibernate  
5.2.4, it's 3.6.0.Final.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: upgrading from 5.1.0.5 to 5.2.4

Posted by "Angelo C." <an...@gmail.com>.
Hi Thiago,

so T5 uses Hibernate 3.6? here is a dependency tree I got from my pom.xml,
T5.2.4 pulls out hibernate 3.6:

[INFO] +- org.apache.tapestry:tapestry-hibernate:jar:5.2.4:compile
[INFO] |  \- org.apache.tapestry:tapestry-hibernate-core:jar:5.2.4:compile
[INFO] |     +- org.hibernate:hibernate-core:jar:3.6.0.Final:compile
[INFO] |     |  +- antlr:antlr:jar:2.7.6:compile
[INFO] |     |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |     |  +-
org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
[INFO] |     |  \-
org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
[INFO] |     +- geronimo-spec:geronimo-spec-jta:jar:1.0-M1:compile
[INFO] |     \- org.hibernate:hibernate-c3p0:jar:3.6.0.Final:compile
[INFO] |        \- c3p0:c3p0:jar:0.9.1:compile
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4-tp3331829p3332965.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: upgrading from 5.1.0.5 to 5.2.4

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
All the information you'll need is in the error messages. Your project had  
the Hibernate dependency upgraded to 3.6.

On Fri, 07 Jan 2011 13:44:08 -0200, Angelo C. <an...@gmail.com>  
wrote:

> I just replaced the version number from 5.1.0.5 to 5.2.4 and compile,  
> run, the first error is:
>
> [WARN] DTDEntityResolver recognized obsolete hibernate namespace
> http://hibernate.sourceforge.net/. Use namespace
> http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration
> Guide!
> [WARN] AnnotationBinder Package not found or wo package-info.java:
> sample.t5.entities
> [ERROR] Registry Error invoking service builder method
> org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger,
> List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service
> 'HibernateSessionSource'): Associations marked as mappedBy must not  
> define
> database mappings like @JoinTable or @JoinColumn:
> sample.t5.entities.User.details
>
> but the same app runs in 5.1.0.5


-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Coordenador e professor da Especialização em Engenharia de Software com  
Ênfase em Java da Faculdade Pitágoras
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: upgrading from 5.1.0.5 to 5.2.4

Posted by "Angelo C." <an...@gmail.com>.
I just replaced the version number from 5.1.0.5 to 5.2.4 and compile, run,
the first error is:

[WARN] DTDEntityResolver recognized obsolete hibernate namespace
http://hibernate.sourceforge.net/. Use namespace
http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration
Guide!
[WARN] AnnotationBinder Package not found or wo package-info.java:
sample.t5.entities
[ERROR] Registry Error invoking service builder method
org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger,
List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service
'HibernateSessionSource'): Associations marked as mappedBy must not define
database mappings like @JoinTable or @JoinColumn:
sample.t5.entities.User.details

but the same app runs in 5.1.0.5
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4-tp3331829p3332001.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: upgrading from 5.1.0.5 to 5.2.4

Posted by Josh Canfield <jo...@gmail.com>.
Without actual errors its hard to tell. What tapestry modules are you
including?
On Jan 7, 2011 5:23 AM, "Angelo C." <an...@gmail.com> wrote:
>
> Hi,
>
> got quite a lot of errors after running, looks like from Hibernate, here
is
> what I have now, what needs to be changed? THanks,
>
>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate</artifactId>
> <version>3.2.2.ga</version>
> </dependency>
>
> <dependency>
> <groupId>c3p0</groupId>
> <artifactId>c3p0</artifactId>
> <version>0.9.1.2</version>
> </dependency>
>
> <dependency>
> <groupId>geronimo-spec</groupId>
> <artifactId>geronimo-spec-jta</artifactId>
> <version>1.0-M1</version>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-annotations</artifactId>
> <version>3.2.1.ga</version>
> </dependency>
>
> --
> View this message in context:
http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4-tp3331829p3331829.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>