Have you checked out the Trails framework (https://trails.dev.java.net/)? I'm also a committer on that project and it's a good way for you to jump-start your way into Tapestry, Spring, Hibernate, and I'm trying to get them to use HiveMind more (they like to use AspectJ a lot and that's one reason they're sticking with Spring).
-----Original Message----- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Monday, February 20, 2006 10:50 AM To: Tapestry users Subject: Re: [OT] Re: Best practice - Integration Hibernate/Tapestry Hi Lutz, also thanks for your answer! | - if the HibernateTemplate is your only reason to use Spring, I'd say, | don't. Of all the features of Spring, I think this template is a | rather not-so-interesting one, since it offers rather little advantage | over Hibernate's own API. Well, at least at the moment where I just want _something_ to work it's the only reason. As you mentioned other things like mail, AOPs etc.: Perhaps that's also relevant for me in the future but at the moment I just don't know. | - if you have decided that you need Spring, for AOP or else, but are | put off by some exceptions you have been getting, don't give up so | easily. Check again if you have all required libraries installed | (missing libraries seem to have been the reasons for the first errors | you have been posting). Have a look at AppFuse and "betterpetstore" to | see how the three tools Tapestry, Spring and Hibernate are used | together there. *sigh* I can tell you: I definitely don't give up so easily. I'm fighting with this whole issue for more than a week now (perhaps you've read my first postings concering EJB's), refactored my whole code three times now and read tons of documents/example code/etc. I also looked at AppFuse but also that code didn't answer all my questions. :( The problem is that there is a bunch of information regarding the different issues but no single up-to-date document describing for example the Tapestry-Hivemind-Hibernate setup procedure step-by-step or a good example app (which would be very helpful to beginners like me). That's why one has to ask so many questions. ;) | What was the current state of things again? The last stack trace you | posted doesn't seem to give helpful information. Not to me, anyway. Is | maybe something wrong with your applicationContext.xml? 1) OK, the first error is: --- 16:42:46,715 WARN SettingsFactory:103 - Could not obtain connection metadata org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' --- But I have mysql-connector-java-3.1.12-bin.jar in shared/libs in the tomcat directory. applicationContext.xml: [...] <!-- DataSource --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="org.gjt.mm.mysql.Driver" /> <property name="url" value="jdbc:mysql://localhost/project" /> <property name="username" value="username" /> <property name="password" value="password" /> <property name="maxActive" value="100" /> <property name="maxIdle" value="30" /> <property name="maxWait" value="1000" /> <property name="defaultAutoCommit" value="true" /> <property name="removeAbandoned" value="true" /> <property name="removeAbandonedTimeout" value="60" /> <property name="logAbandoned" value="true" /> </bean> [...] 2) The second one is: --- javax.servlet.ServletException: Unable to initialize application servlet: Unable to construct service com.javaforge.tapestry.spring.ApplicationContextSource: Error building service com.javaforge.tapestry.spring.ApplicationContextSource: Error at jar:file:/var/lib/tomcat-5/default/shared/lib/tapestry-spring-0.1.1.jar!/MET A-INF/hivemodule.xml, line 29, column 57: Unable to initialize service com.javaforge.tapestry.spring.ApplicationContextSource (by invoking method initializeService on com.javaforge.tapestry.spring.ApplicationContextSource): Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: null --- And to tell the truth: I just have no idea if applicationContext.xml is wrong. I posted the sessionFactory part in a previous mail - what else do you need to (perhaps) locate the problem? Sincerly, Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
