I have a webApp with Spring and it works correctly when I use HSQLDB in server mode, but in file mode, it only passes the unit test. This is my data source:
I found the answer here:
http://coding.derkeiler.com/Archive/Java/comp.lang.java.databases/2003-11/0096.html
I put de data inside in a jar on my project persistenceLayerWithData.jar.
Then I set this propety to the datasource:
And I added the jar to the web-inf/lib and make the war (all this with maven) and deploy in tomcat and it works, also I deploy it in websphere 7 and also works.
But when I run whit mvn jetty:run it doesn't I suppose that when running jetty whit maven it doesn't put the jar in the claspath.