You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by netdawg <ne...@yahoo.com> on 2012/04/27 10:15:50 UTC

Upgrading to Hibernate Core 4.1.1 Final

Issue:  Current (5.3.2) versions of Tapestry-Hibernate seem to clash with
latest 4.1.1 Final of Hibernate core.  Specifically, import
org.hibernate.Session can no longer be resolved after introducing the 4.1.1
Final dependency in pom.  

Anyone else experience this, have a convenient workaround?  I would like to
avoid messing around in framework code, if I can get away with it...;-)...

My pom.xml (partial) 

    
        
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-hibernate</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
       
        <dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate-search</artifactId>
          <version>4.1.0.CR2</version>
        </dependency>
        
   <dependency>
	<groupId>org.hibernate</groupId>
	<artifactId>hibernate-core</artifactId>
	<version>4.1.1.Final</version>
   </dependency>

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669640.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: Upgrading to Hibernate Core 4.1.1 Final

Posted by Kristian Marinkovic <kr...@gmail.com>.
you have to add exclusions to your tapestry-hibernate dependency

g,
kris

On Fri, Apr 27, 2012 at 10:19 AM, Chris Mylonas <ch...@opencsta.org> wrote:
> i think tapestry-hibernate pulls in hibernate jars, so you can remove it from your pom
> doing it how you've done is how to break it
>
>
> On 27/04/2012, at 6:15 PM, netdawg wrote:
>
>> Issue:  Current (5.3.2) versions of Tapestry-Hibernate seem to clash with
>> latest 4.1.1 Final of Hibernate core.  Specifically, import
>> org.hibernate.Session can no longer be resolved after introducing the 4.1.1
>> Final dependency in pom.
>>
>> Anyone else experience this, have a convenient workaround?  I would like to
>> avoid messing around in framework code, if I can get away with it...;-)...
>>
>> My pom.xml (partial)
>>
>>
>>
>>        <dependency>
>>            <groupId>org.apache.tapestry</groupId>
>>            <artifactId>tapestry-hibernate</artifactId>
>>            <version>${tapestry-release-version}</version>
>>        </dependency>
>>
>>        <dependency>
>>          <groupId>org.hibernate</groupId>
>>          <artifactId>hibernate-search</artifactId>
>>          <version>4.1.0.CR2</version>
>>        </dependency>
>>
>>   <dependency>
>>       <groupId>org.hibernate</groupId>
>>       <artifactId>hibernate-core</artifactId>
>>       <version>4.1.1.Final</version>
>>   </dependency>
>>
>> --
>> View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669640.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
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

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


Re: Upgrading to Hibernate Core 4.1.1 Final

Posted by Chris Mylonas <ch...@opencsta.org>.
i think tapestry-hibernate pulls in hibernate jars, so you can remove it from your pom
doing it how you've done is how to break it


On 27/04/2012, at 6:15 PM, netdawg wrote:

> Issue:  Current (5.3.2) versions of Tapestry-Hibernate seem to clash with
> latest 4.1.1 Final of Hibernate core.  Specifically, import
> org.hibernate.Session can no longer be resolved after introducing the 4.1.1
> Final dependency in pom.  
> 
> Anyone else experience this, have a convenient workaround?  I would like to
> avoid messing around in framework code, if I can get away with it...;-)...
> 
> My pom.xml (partial) 
> 
> 
> 
>        <dependency>
>            <groupId>org.apache.tapestry</groupId>
>            <artifactId>tapestry-hibernate</artifactId>
>            <version>${tapestry-release-version}</version>
>        </dependency>
> 
>        <dependency>
>          <groupId>org.hibernate</groupId>
>          <artifactId>hibernate-search</artifactId>
>          <version>4.1.0.CR2</version>
>        </dependency>
> 
>   <dependency>
> 	<groupId>org.hibernate</groupId>
> 	<artifactId>hibernate-core</artifactId>
> 	<version>4.1.1.Final</version>
>   </dependency>
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669640.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
> 


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


Re: Upgrading to Hibernate Core 4.1.1 Final

Posted by Kalle Korhonen <ka...@gmail.com>.
Yes, T5.4 trunk is already using Hibernate 4.1. If you want to use 4.1
with T5.3, you have to recompile tapestry-hibernate. See comments in
https://issues.apache.org/jira/browse/TAP5-1922.

Kalle


On Fri, Apr 27, 2012 at 5:06 AM, netdawg <ne...@yahoo.com> wrote:
> Thanks!  Believe this is planned for 5.4.x...so let it slide.
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5670087.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
>

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


Re: Upgrading to Hibernate Core 4.1.1 Final

Posted by netdawg <ne...@yahoo.com>.
Thanks!  Believe this is planned for 5.4.x...so let it slide.  

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5670087.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: Upgrading to Hibernate Core 4.1.1 Final

Posted by Felix Scheffer <fs...@netzgut.net>.
Hi,

i created a ticket for this:

https://issues.apache.org/jira/browse/TAP5-1922

Felix Scheffer

2012/4/27 netdawg <ne...@yahoo.com>

> Thanks, kristian.  I tried that already (couple of times).  Thanks, though.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669799.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: Upgrading to Hibernate Core 4.1.1 Final

Posted by netdawg <ne...@yahoo.com>.
Thanks, kristian.  I tried that already (couple of times).  Thanks, though.    

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669799.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: Upgrading to Hibernate Core 4.1.1 Final

Posted by netdawg <ne...@yahoo.com>.
OK.  Gave up on this, next version will probably include anyway.  

For now, looks like Tapestry 3.5.2 depends on Hibernate 3.6.0.Final.  

I downloaded that 

http://grepcode.com/snapshot/repo1.maven.org/maven2/org.hibernate/hibernate-core/3.6.0.Final

and I am off doing useful work ;-).

Thanks, folks. 

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669793.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: Upgrading to Hibernate Core 4.1.1 Final

Posted by Kristian Marinkovic <kr...@gmail.com>.
open the pom.xml of your main application in the eclipse pom editor
and switch to the dependency tab. there you can see all the direct and
transitive dependencies. and do a clean install of all your modules..
or parent project.

On Fri, Apr 27, 2012 at 11:03 AM, netdawg <ne...@yahoo.com> wrote:
> Yes, basically the exception is a compile exception saying the following
> "could not be resolved":
>
> import org.hibernate.Session;
>
>
> And, finally, I also tried this:
>
>    <dependency>
>            <groupId>org.apache.tapestry</groupId>
>            <artifactId>tapestry-hibernate</artifactId>
>            <version>${tapestry-release-version}</version>
>            <exclusions>
>             <exclusion>
>              <groupId>org.apache.tapestry</groupId>
>                  <artifactId>tapestry-hibernate-core</artifactId>
>                 </exclusion>
>           </exclusions>
>        </dependency>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669761.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
>

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


Re: Upgrading to Hibernate Core 4.1.1 Final

Posted by netdawg <ne...@yahoo.com>.
Yes, basically the exception is a compile exception saying the following
"could not be resolved": 

import org.hibernate.Session; 


And, finally, I also tried this: 

    <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-hibernate</artifactId>
            <version>${tapestry-release-version}</version>
            <exclusions>
             <exclusion>  
              <groupId>org.apache.tapestry</groupId>
	          <artifactId>tapestry-hibernate-core</artifactId>
	         </exclusion> 
           </exclusions>
        </dependency>
        

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669761.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: Upgrading to Hibernate Core 4.1.1 Final

Posted by Kristian Marinkovic <kr...@gmail.com>.
can you post your exception?

On Fri, Apr 27, 2012 at 10:45 AM, netdawg <ne...@yahoo.com> wrote:
> Neither did this work...
>
>    <dependency>
>            <groupId>org.apache.tapestry</groupId>
>            <artifactId>tapestry-hibernate</artifactId>
>            <version>${tapestry-release-version}</version>
>            <exclusions>
>             <exclusion>
>              <groupId>org.hibernate</groupId>
>              <artifactId>hibernate-core</artifactId>
>           </exclusion>
>             <exclusion>
>              <groupId>org.hibernate</groupId>
>              <artifactId>hibernate-search</artifactId>
>           </exclusion>
>         </exclusions>
>        </dependency>
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669713.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
>

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


Re: Upgrading to Hibernate Core 4.1.1 Final

Posted by netdawg <ne...@yahoo.com>.
Neither did this work...

    <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-hibernate</artifactId>
            <version>${tapestry-release-version}</version>
            <exclusions>
             <exclusion>  
              <groupId>org.hibernate</groupId>
              <artifactId>hibernate-core</artifactId>
           </exclusion> 
             <exclusion>  
              <groupId>org.hibernate</groupId>
              <artifactId>hibernate-search</artifactId>
           </exclusion> 
         </exclusions>
        </dependency>



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669713.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: Upgrading to Hibernate Core 4.1.1 Final

Posted by netdawg <ne...@yahoo.com>.
Whacking tapestry-hibernate does not help either...

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669693.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