Originally posted by Phauderel Phaus:
[QB]i'm a newbie in tapestry and i have a problem that i dont find any solutions.
I'm using tapestry with hibernate in Eclipse.
My code using the hibernate Framework works but when i m using it with tapestry , i have the following message:
---------------------------------------------------------------------------------
org.apache.tapestry.ApplicationRuntimeException
Unable to invoke method verification on tutorial.EncoPers@167c5e3[EncoPers]: null
java.lang.NoClassDefFoundError org/hibernate/Session
Stack Trace:
tutorial.EncoPers.verification(EncoPers.java:44)
[/QOUTE]
I don't know how you run your web application, perhaps with the webtools server integration, or with the sysdeo
tomcat plugin. But this error tells me that you don't have the hibernate package on your web application classpath.
The
servlet container (the application server) uses a different classloader for running your web applciation. The eclipse plugin running your application needs to know which libraries to use, and it doesn't know about Hibernate. Hence you get the
NoClassDefFoundError.
I strongly suggest you download the Jetty application server, unzip it to your c:\ folder, and install the Jetty launcher plugin into eclipse. Then create a Jetty launch configuration and run your application that way. You will get instant gratification, as the launcher plugin puts your whole project classpath (including dependencies) in the webapp classloader.
It is cheating a bit, but it makes development much easier.