You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Pablo Rios <pr...@bea.com> on 2007/05/29 23:56:10 UTC

Running Jackrabbit JCRTestSuite with a database

I've been running the JCRTestSuite test suite of Jackrabbit (JCR API
tests) with a repository configured to store workspace and versioning
data in a dbms (*), but if I configure the global repository state
(namespaces and node types) to use the dbms (**) lots of tests fail with
NoSuchNodeTypeException. Using the local file system (***) for global
repository state all tests pass.
 
(*)
org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager
(**) org.apache.jackrabbit.core.fs.db.DbFileSystem
(***) org.apache.jackrabbit.core.fs.local.LocalFileSystem
 
The repository configuration is in the
jackrabbit-core\applications\test\repository.xml file.
 
Why aren't the test namespace (among others) and custom node types of
this test suite registered when using a DatabaseFileSystem ?
How are the ns_reg.properties and custom_nodetypes.xml resource files
processed ?
What am I doing wrong ?
 
Thanks,
Pablo
 
 
 
 

Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.

Re: Running Jackrabbit JCRTestSuite with a database

Posted by Marcel Reutegger <ma...@gmx.net>.
Hi Pablo,

Pablo Rios wrote:
> Why aren't the test namespace (among others) and custom node types of
> this test suite registered when using a DatabaseFileSystem ?
> How are the ns_reg.properties and custom_nodetypes.xml resource files
> processed ?

the jackrabbit checkout uses predefined namespaces and node type definitions, 
which are located here:
jackrabbit-core/applications/test/repository/namespaces/ns_reg.properties.install
jackrabbit-core/applications/test/repository/namespaces/custom_nodetypes.xml.install

if you use a DatabaseFileSystem you need to register the namespaces and node 
types manually before you run the tests.

the tck-candidate contribution already contains such a setup procedure. See: 
http://svn.apache.org/repos/asf/jackrabbit/trunk/contrib/tck-candidate

regards
  marcel