Somehow the hibernate session factory is not initialised correctly. Usually, there's some more info in the logs. Some wild guesses: is the MySQL driver on the classpath? I.e did you add a dependency in your pom.xml? Did you try to run the "unit"-Tests from the core project? If that works, is the Mysql-jar in your web-inf lib?
As for debugging: you can use mvn war:exploded and deploy it in a Tomcat instance started from Eclipse. You can also start Maven from within Eclipse (with the jetty:run goal). > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 03, 2007 12:41 PM > To: Tapestry users; users@tapestry.apache.org > Subject: Re: RE: HoneycombLib/Hibernate problem > > Hi there! > > Inside the generated Core project I adapted the > hivemodule.xml file like that: > > <contribution > configuration-id="honeycomb.hibernate.HibernateSessionFactory"> > > <entity > clazz="com.javaforge.honeycomb.hibernate.audit.AuditEvent" /> > > <entity clazz="com.domain.Foo" /> > <entity clazz="com.domain.Bar" /> > > <property > name="dialect">org.hibernate.dialect.MySQLDialect</property> > <property > name="connection.driver_class">org.gjt.mm.mysql.Driver</property> > <property name="connection.username">root</property> > <property name="connection.password">thepass</property> > <property > name="connection.url">jdbc:mysql://localhost:3306/test</property> > > </contribution> > > . > > When I now enter an item on the website and want to save it, > it throws an exception: > > org.apache.hivemind.ApplicationRuntimeException > Unable to construct service > honeycomb.hibernate.HibernateSessionFactory: Error building > service honeycomb.hibernate.HibernateSessionFactory: Failure > invoking constructor for class > com.javaforge.honeycomb.hivemind.hibernate.HibernateSessionFac > tory: java.lang.NullPointerException > location: > jar:file:/C:/home/me/.m2/repository/com/javaforge/honeycomb/Ho > neycombHibernate/0.3.3/HoneycombHibernate-0.3.3.jar!/META-INF/ > hivemodule.xml, line 28, column 74 23 </invoke-factory> > 24 <interceptor service-id="hivemind.LoggingInterceptor"/> > 25 </service-point> > 26 > 27 <service-point id="HibernateSession" > interface="org.hibernate.Session"> > 28 <invoke-factory service-id="HibernateSessionFactory" > model="stateful"/> > 29 <interceptor service-id="hivemind.LoggingInterceptor"/> > 30 </service-point> > 31 > 32 <implementation > service-id="honeycomb.audit.AuditInterceptor"> Den > 33 Audit-Interceptor instanziieren. > > > Unable to construct service > honeycomb.hibernate.HibernateSessionFactory: Error building > service honeycomb.hibernate.HibernateSessionFactory: Failure > invoking constructor for class > com.javaforge.honeycomb.hivemind.hibernate.HibernateSessionFac > tory: java.lang.NullPointerException > location: > jar:file:/C:/home/me/.m2/repository/com/javaforge/honeycomb/Ho > neycombHibernate/0.3.3/HoneycombHibernate-0.3.3.jar!/META-INF/ > hivemodule.xml, line 12, column 37 7 > <configuration-point id="HibernateSessionFactory" > 8 schema-id="HibernateSessionFactory"/> > 9 > 10 <service-point id="HibernateSessionFactory" > parameters-occurs="none" > 11 interface="org.apache.hivemind.ServiceImplementationFactory"> > 12 <invoke-factory model="singleton"> > 13 <construct > 14 > class="com.javaforge.honeycomb.hivemind.hibernate.HibernateSes > sionFactory" > 15 initialize-method="init"> > 16 <configuration>HibernateSessionFactory</configuration> > 17 <service>hivemind.ShutdownCoordinator</service> > > p.s.: Can you debug "inside" maven without copying the source > files in to the project source folder? > > -------- Original-Nachricht -------- > Datum: Wed, 3 Jan 2007 09:02:28 +0100 > Von: [EMAIL PROTECTED] > An: users@tapestry.apache.org > Betreff: RE: HoneycombLib/Hibernate problem > > > Which hivemodule.xml did you change? You only need to change the > > following contribution in the generated core project's > hivemodule.xml: > > > > <contribution > > configuration-id="honeycomb.hibernate.HibernateSessionFactory"> > > ... > > <property name="dialect" > > value="org.hibernate.dialect.HSQLDialect"/> > > <property name="connection.username" value="sa"/> > > <property name="connection.url" > > value="jdbc:hsqldb:hsql://localhost/testdb"/> > > <property name="connection.password" value=""/> > > <property name="connection.driver_class" > > value="org.hsqldb.jdbcDriver"/> > > <property name="show_sql" value="true"/> > > </contribution> > > > > There's no need to change anything inside the honeycomb libs > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > Sent: Sunday, December 31, 2006 2:43 AM > > > To: users@tapestry.apache.org > > > Subject: HoneycombLib/Hibernate problem > > > > > > I am trying to use HoneycombLib with MySQL and adapted the > > > hivemodule.xml file. > > > > > > It seems like it still uses the hivemodule.xml file from > inside the > > > HoneycombHibernate-0.3.3.jar file? > > > > > > Any ideas how I can get it to work with MySQL or Postgres? > > > > > > > > > > > > org.apache.hivemind.ApplicationRuntimeException > > > Unable to construct service > > > honeycomb.hibernate.HibernateSessionFactory: Error > building service > > > honeycomb.hibernate.HibernateSessionFactory: Failure invoking > > > constructor for class > > > com.javaforge.honeycomb.hivemind.hibernate.HibernateSessionFac > > > tory: java.lang.NullPointerException > > > location: > > > jar:file:/C:/home/dev/.m2/repository/com/javaforge/honeycomb/H > > > oneycombHibernate/0.3.3/HoneycombHibernate-0.3.3.jar!/META-INF > > > /hivemodule.xml, line 28, column 74 > > > > > > > -------------------------------------------------------------------- > > > - 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] > > --------------------------------------------------------------------- > 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]