caelum / vraptor-scaffold

VRaptor Scaffold extension to make it easier configuring new projects and plugins
http://vraptor.org
MIT License
55 stars 22 forks source link

Genarated project doesn't run on Eclipse's tomcat #23

Closed lucascs closed 13 years ago

lucascs commented 13 years ago

I couldn't run the project on Eclipse via Tomcat. It complains about hsqldb:

Caused by: org.hsqldb.HsqlException: old version database must be shutdown
rodolfoliviero commented 13 years ago

I tried to simulate the problem. I created a app and scaffold a model called product, after that i run the project on eclipse via tomcat and its works.

can you tell me what steps you did?

lucascs commented 13 years ago

I think I know what is the problem:

this line from persistence.xml:

creates a database on my home folder: ~/tmp/devdb.* when running from eclipse...

I guess I run an older version of hsqldb with this very configuration, so the newer version showed me the error above... When I deleted the ~/tmp folder, the error stopped.

Maybe there is a way to guarantee that the tmp folder is created on the project folder. If not, I don't think this issue is fixable, so you can close it.

[]'s

rodolfoliviero commented 13 years ago

when use ant jetty.run the tmp folder is created inside project folder, when import the project on eclipse tmp folder is created on home directory, i dont know why this happens, maybe this is a eclipse issue.

lucascs commented 13 years ago

ok then... closing the issue thanks