Matt,
I just tried to reproduce in a virginal archetype project and was unable
to get it to fail. My "real" project is the result of a "war:inplace"
and manual copying appfuse classes and test cases from appfuse sources
(I want/need an "old style" project with all sources and resources in my
project source tree rather than automagically included by maven warpath).
So I would guess that some of the unit tests (which are not run in a
virginal build) are leaving the h2 database locked. Sorry I can't be
more specific -- it was quite tedious to copy all those source files out
of appfuse source tree and I did not take notes in order to create a
cookbook.
Steve
On 5/22/2007 11:19 AM, Matt Raible wrote:
On 5/22/07, Steve Tynor <[EMAIL PROTECTED]> wrote:
FWIW, I've abandoned the idea of using hsqldb or h2 for cruisecontrol
auto testing of my appfuse 2.0-m5-snapshot based project and have set up
a mysql server on the continuous integration server. I'd prefer hsqldb
or h2 since they support localaized set up/tear down with less chance
that one bad test will corrupt the database for future tests, but until
I can make it work, I'll live with mysql.
I'm still curious to know if this is something peculiar to my
development environment, or if this is a limitation w/ h2 and hsqldb
that all appfuse users must work around.
If you can provide the steps to reproduce, I'll see if it works on my
environment. Please include the command you used to create and test
the project.
Matt
Regards,
Steve
On 5/16/2007 8:36 AM, Steve Tynor wrote:
> That works for "mvn clean test" (BUILD SUCCESSFUL), but I still see
> "locked by other process" errors (and BUILD ERROR) for "mvn clean
> integration-test".
>
> Steve
>
> On 5/16/2007 8:19 AM, Matt Raible wrote:
>> You could try removing the 2nd execution that dbunit has - the one
>> that populates the database after tests are run:
...
>>> The build fails. Surefire reports all tests pass:
>>>
>>> > Results :
>>> > [surefire] Tests run: 57, Failures: 0, Errors: 0
>>>
>>> then maven reports build failure:
>>>
>>> > [INFO] [dbunit:operation {execution: test}]
>>> > [INFO]
>>>
------------------------------------------------------------------------
>>> > [ERROR] BUILD ERROR
>>> > [INFO]
>>>
------------------------------------------------------------------------
>>> > [INFO] Error executing database operation: CLEAN_INSERT
>>> >
>>> > Embedded error: Database may be already open: Locked by another
>>> process [90020-34]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]