I have prepared multilevel project using Maven2 for the webapp I want to create. So, I have:
sf/sf-core -> which is my CORE project, responsible for business model and data layers
sf/sf-webapp -> which is my webapp
Now, I have configured Hibernate3 in my CORE project, and SpringMVC in my WEBAPP. I have also used DbUnit for populating my database (MYSQL) with sample data.
So if I run:
CORE_DIR: mvn dbunit: operation <- this puts my sample data into DataBAse (checked few times)
The strange thing happens if I want to run my WEBAPP in Jetty container...
WEBAPP_DIR: mvn jetty:run <- my DataBase is suddenly empty!
It looks like running jetty causes my database to drop the content. I assume this is somehow related to running MVC's HIbernate Session Factory components, but I have no idea what is wrong there. I have checked all configuration files in my project, and couldn't come up with anything...
Do You have any ideas what might be the problem?