Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by AngeloChen: http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate ------------------------------------------------------------------------------ This procedure depends on IDE used, the main goal is to make hibernate jar file available to our project, in my case I create a hibernateLib directory which contains following jar files: {{{ + antlr-2.7.6.jar dom4j-1.6.1.jar jta.jar + asm.jar ejb3-persistence.jar junit-3.8.1.jar - antlr-2.7.6.jar commons-logging-1.0.4.jar hsqldb.jar tapestry-hibernate-5.0.5.jar - asm.jar dom4j-1.6.1.jar javassist-3.4.ga.jar tapestry-ioc-5.0.5.jar - c3p0-0.9.1.jar ejb3-persistence.jar jta.jar testng-5.1-jdk15.jar - cglib-2.1.3.jar hibernate-annotations.jar junit-3.8.1.jar + c3p0-0.9.1.jar hibernate-annotations.jar log4j-1.2.9.jar - commons-codec-1.3.jar hibernate-commons-annotations.jar log4j-1.2.9.jar + cglib-2.1.3.jar hibernate-commons-annotations.jar tapestry-core-5.0.5.jar + commons-codec-1.3.jar hibernate3.jar tapestry-hibernate-5.0.5.jar - commons-collections-2.1.1.jar hibernate3.jar tapestry-core-5.0.5.jar + commons-collections-2.1.1.jar hsqldb.jar tapestry-ioc-5.0.5.jar + commons-logging-1.0.4.jar javassist-3.4.ga.jar testng-5.1-jdk15.jar }}} some of jar files are duplicates of Tapestry 5, you can exclude them, so find a way in your IDE to add those jar files to the project, then compile, if no error found proceed to Step 4. @@ -117, +118 @@ === hibernate.cfg.xml === {{{ - <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> @@ -143, +143 @@ </session-factory> </hibernate-configuration> }}} - '''Note:''' if you get error : "Could not parse configuration" try removing the whole first line "<?xml.." from config - '''Note:''' for Intellij IDEA user, if you encounter a notification that 'New Hibernate Facet detected', just choose 'Remove Hibernate and don't detect Hibernate Facets in module', this will make our tutorial simple. Try to compile and run the program, for running it's IDE specific, you need to configure something to run it under Tomcat. if everything is fine at this point, let's proceed to step 5 to use Tapestry-Hibernate feature --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
