<p>In case someone else runs into the same problem this is how I solved it.</p>
<p>
In order for a fresh Guvnor installation to work against a pre-existing repository you need to add the following files to the appserver config directory (in the case of Glassfish <domain>/config/) 
</p>
<ol>
<li>repository/repository/namespaces/ns_idx.properties</li>
<li>repository/repository/namespaces/ns_reg.properties</li>
<li>repository/repository/nodetypes/custom_nodetypes.xml</li>
</ol>
<p>
These files are generates the first time you deploy guvnor and let it create a new repository. 
</p>
<p>
If someone knows why these files needs to be present for Guvnor to understand that it should use the existing repository instead of (trying to) create a new one I would be very interested to hear. Especially since the information in these files seem to be pretty static.
</p>
<p>
Best Regards
</p>
<p>
Mattias Avelin
</p>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/Deploying-Guvnor-on-a-existing-repository-DB-tp2878946p2931767.html">Re: Deploying Guvnor on a existing repository DB</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>