So something isn't closing the database properly eh? I was able to
reproduce this problem on my end, so you should probably enter an
issue for it. As a workaround, I found that commenting out the second
<execution> block in the dbunit plugin's configuration solves the
problem.

Matt

On 5/22/07, Steve Tynor <[EMAIL PROTECTED]> wrote:
Matt,

Confirmed fixed.  Now I can give you a cookbook to reproduce the
h2/hsqldb lock errors:

# mvn archetype:create -DarchetypeGroupId=org.appfuse
  -DarchetypeArtifactId=appfuse-basic-jsf
  -DremoteRepositories=http://static.appfuse.org/repository
  -DarchetypeVersion=2.0-m5-SNAPSHOT -DgroupId=com.mycompany.app
  -DartifactId=myproject

# mvn appfuse:full-source

then edit pom.xml to replace the test database mysql config at the
bottom of the pom.xml with:


<dbunit.dataTypeFactoryName>org.dbunit.ext.hsqldb.HsqldbDataTypeFactory</dbunit.dataTypeFactoryName>
   <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type>
    <hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect>
   <jdbc.groupId>hsqldb</jdbc.groupId>
   <jdbc.artifactId>hsqldb</jdbc.artifactId>
   <jdbc.version>1.8.0.7</jdbc.version>
   <jdbc.driverClassName>org.hsqldb.jdbcDriver</jdbc.driverClassName>
   <jdbc.url><![CDATA[jdbc:hsqldb:ascent;shutdown=true]]></jdbc.url>
   <jdbc.username>sa</jdbc.username>
   <jdbc.password></jdbc.password>

# mvn clean integration-test

et voila:

[INFO] [dbunit:operation {execution: test}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing database operation: CLEAN_INSERT

Embedded error: The database is already in use by another process:
[EMAIL PROTECTED]:\newdev\appfuse-clean\test-for-h2\myproject\ascent.lck,
exists=true, locked=false, valid=false, fl =null]: java.lang.Exception:
  java.io.IOException: The process cannot access the file because
another process has locked a portion of the file :
C:\newdev\appfuse-clean\test-for-h2\myproject\ascent.lck


Steve


On 5/22/2007 12:20 PM, Matt Raible wrote:
> Should be fixed now.
>
> Matt
>
> On 5/22/07, Matt Raible <[EMAIL PROTECTED]> wrote:
>> Doh! I remember making this change last night that causes this error.
>> I'll fix it and redeploy.
>>
>> Matt
>>
>> On 5/22/07, Steve Tynor <[EMAIL PROTECTED]> wrote:
>> > Matt,
>> >
>> > When I run "mvn appfuse:full-source" on a freshly checked out
>> > "appfuse-basic-jsf" archetype, I get a failure to create files - if I
>> > were to guess, I'd say that there's an attempt to write to a directory
>> > without first making sure the directory exists?  (note how no
>> > "org/appfuse" directories are present in my src directory after the
>> > failure):
>> >
>> > # mvn archetype:create -DarchetypeGroupId=org.appfuse
>> > -DarchetypeArtifactId=appfuse-basic-jsf
>> > -DremoteRepositories=http://static.appfuse.org/repository
>> > -DarchetypeVersion=2.0-m5-SNAPSHOT -DgroupId=com.mycompany.app
>> > -DartifactId=myproject
>> > ...
>> >
>> > # mvn appfuse:full-source
>> > ...
>> > [INFO] [appfuse:full-source]
>> > [INFO] [AppFuse] Installing source from data modules...
>> > [ERROR] 204899 : svn: error: cannot create new  file
>> >
>> 
'c:\newdev\appfuse-clean\test-for-h2\myproject\src\main\java\org\appfuse\model\BaseObject.java'
>>
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [ERROR] BUILD ERROR
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] svn: error: cannot create new  file
>> > 'c:\newdev\appfuse-clean\test-for-h2\
>> > myproject\src\main\java\org\appfuse\model\BaseObject.java'
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] For more information, run Maven with the -e switch
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Total time: 5 seconds
>> > [INFO] Finished at: Tue May 22 11:56:16 EDT 2007
>> > [INFO] Final Memory: 5M/10M
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> >
>> >
>> > # find src -type d
>> > src
>> > src/main
>> > src/main/java
>> > src/main/java/com
>> > src/main/java/com/mycompany
>> > src/main/java/com/mycompany/app
>> > src/main/resources
>> > src/main/resources/META-INF
>> > src/main/webapp
>> > src/main/webapp/common
>> > src/main/webapp/WEB-INF
>> > src/site
>> > src/test
>> > src/test/java
>> > src/test/java/com
>> > src/test/java/com/mycompany
>> > src/test/java/com/mycompany/app
>> > src/test/resources
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> http://raibledesigns.com
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to