Tapestry-hibernate 5.3.x is not compatible with Hibernate 4.x. If you need
to use 4.x, you can just recompile tapestry-hibernate yourself. T5.4 is
already using Hibernate 4.x as dependency.

Kalle


On Thu, Nov 8, 2012 at 3:17 PM, willbro <llcool_wil...@yahoo.fr> wrote:

> Hi,
> I just started learning Tapestry with mysql & Hibernate and i can not
> manage
> to store some form data into a database. I still get this error message
>
> Error invoking method public static
> org.apache.tapestry5.hibernate.HibernateSessionManager
>
> org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionManager(org.apache.tapestry5.hibernate.HibernateSessionSource,org.apache.tapestry5.ioc.services.PerthreadManager):
> org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;
>
> This his how my pom looks like
>
>
> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns="http://maven.apache.org/POM/4.0.0";>
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>com.example</groupId>
>     <artifactId>tutorial</artifactId>
>     <version>1.0-SNAPSHOT</version>
>     <packaging>war</packaging>
>     <name>tutorial Tapestry 5 Application</name>
>         <dependencies>
>
>         <dependency>
>             <groupId>org.apache.tapestry</groupId>
>             <artifactId>tapestry-core</artifactId>
>             <version>${tapestry-release-version}</version>
>         </dependency>
>
>
> <dependency>
>         <groupId>org.hibernate</groupId>
>         <artifactId>hibernate-core</artifactId>
>         <version>4.1.7.Final</version>
> </dependency>
>
> <dependency>
>         <groupId>org.hibernate</groupId>
>         <artifactId>hibernate-annotations</artifactId>
>         <version>4.1.7.Final</version>
> </dependency>
>
>
>
> <dependency>
>         <groupId>org.hibernate</groupId>
>         <artifactId>hibernate-entitymanager</artifactId>
>         <version>4.1.7.Final</version>
>
> </dependency>
>
> <dependency>
>         <groupId>org.hibernate.javax.persistence</groupId>
>         <artifactId>hibernate-jpa-2.0-api</artifactId>
>         <version>1.0.1.Final</version>
> </dependency>
> <dependency>
>         <groupId>org.hibernate</groupId>
>         <artifactId>hibernate-c3p0</artifactId>
>         <version>4.1.7.Final</version>
> </dependency>
>
>
>         <dependency>
>             <groupId>org.apache.tapestry</groupId>
>             <artifactId>tapestry-yuicompressor</artifactId>
>             <version>${tapestry-release-version}</version>
>         </dependency>
>
>
>
>
>
>         <dependency>
>             <groupId>org.testng</groupId>
>             <artifactId>testng</artifactId>
>             <version>${testng-release-version}</version>
>             <scope>test</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>org.easymock</groupId>
>             <artifactId>easymock</artifactId>
>             <version>${easymock-release-version}</version>
>             <scope>test</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>org.apache.tapestry</groupId>
>             <artifactId>tapestry-test</artifactId>
>             <version>${tapestry-release-version}</version>
>             <scope>test</scope>
>         </dependency>
>
>
>         <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>servlet-api</artifactId>
>             <version>${servlet-api-release-version}</version>
>             <scope>provided</scope>
>         </dependency>
>
>
>         <dependency>
>             <groupId>org.apache.tapestry</groupId>
>             <artifactId>tapestry-javadoc</artifactId>
>             <version>${tapestry-release-version}</version>
>             <scope>provided</scope>
>         </dependency>
>
>                 <dependency>
>             <groupId>org.apache.tapestry</groupId>
>             <artifactId>tapestry-hibernate</artifactId>
>             <version>${tapestry-release-version}</version>
>         </dependency>
>
>
>
>
>                 <dependency>
>             <groupId>mysql</groupId>
>             <artifactId>mysql-connector-java</artifactId>
>             <version>5.1.21</version>
>        </dependency>
>
>     </dependencies>
>     <build>
>         <finalName>tutorial</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <version>2.3.2</version>
>                 <configuration>
>                     <source>1.5</source>
>                     <target>1.5</target>
>                     <optimize>true</optimize>
>                 </configuration>
>             </plugin>
>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <version>2.7.2</version>
>                 <configuration>
>                     <systemPropertyVariables>
>
> <tapestry.execution-mode>Qa</tapestry.execution-mode>
>                     </systemPropertyVariables>
>                 </configuration>
>             </plugin>
>
>
>             <plugin>
>                 <groupId>org.mortbay.jetty</groupId>
>                 <artifactId>maven-jetty-plugin</artifactId>
>                 <version>6.1.16</version>
>                 <configuration>
>
>                     <requestLog
> implementation="org.mortbay.jetty.NCSARequestLog">
>
>                         <append>true</append>
>                     </requestLog>
>                     <systemProperties>
>                         <systemProperty>
>                             <name>tapestry.execution-mode</name>
>                             <value>development</value>
>                         </systemProperty>
>                     </systemProperties>
>                 </configuration>
>             </plugin>
>         </plugins>
>     </build>
>
>     <reporting/>
>
>     <repositories>
>
>
>         <repository>
>             <id>apache-staging</id>
>             <url>https://repository.apache.org/content/groups/staging/
> </url>
>         </repository>
>     </repositories>
>
>     <properties>
>         <tapestry-release-version>5.3.6</tapestry-release-version>
>         <servlet-api-release-version>2.5</servlet-api-release-version>
>         <testng-release-version>5.14.10</testng-release-version>
>         <easymock-release-version>3.0</easymock-release-version>
>     </properties>
> </project>
>
> thanks for any help
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/HibernateSessionManager-tp5717841.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to