Allocation Error in Hibernateexample

Hi,
I have tried out your example on how to get Hibernate working with Vaadin properly.

Example here

So I just checked out the version from the svn with subclipse and wanted to run it with tomcat.
So I created a new serverinstance in the servers-panel in eclipse with only the hibernatexample and pressed the button to run the server in debugmode.
When I try to access the site with http://localhost:8080/HbnContainer via webbrowser I get an Error:

Allocate exception for servlet WorkoutLog
javax.servlet.ServletException: Failed to load application class: com.vaadin.demo.workoutlog.WorkoutLog
	at com.vaadin.terminal.gwt.server.ApplicationServlet.init(ApplicationServlet.java:71)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1164)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1118)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:817)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:249)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

I tried to do some research on google, but it is quite hard to find anything on that error.
Did I do something wrong?
How can I get the example working?

Thanks in advance,

Steve

I am having the exact same problem…

Could somebody please shine a light on this for me please…

Cheers,

Dave

The issue looks like a classpath problem, assuming the name of the application class is correct in web.xml . ApplicationServlet tries to instantiate the application class using reflection, and for some reason does not find the application class.

Check your classpath, and that you don’t e.g. have multiple versions of the same JAR.

Check your build path. You did what I did, checked out the source from svn into an eclipse project and then try to run it on a server without even looking in the project properties. When I did look I found that I didn’t have a JRE mapped… :*)