Steps to Reproduce: 1. Download BRMS 5.1.0 GA standalone, install ModeShape 2. Start the server, log into Guvnor and import the sample repository when promted 3. Restart the server and log in again. The error appears. securitylevel_name: Public When the sample rules repository is imported, then the server is restarted and user log again into Guvnor GUI, the org.modeshape.graph.session.ValidationException is thrown. This only happens when ModeShape is used as JCR backend. The line with excpetion: org.modeshape.graph.session.ValidationException: Missing primary node type "drools:categoryNodeType" for node /drools:repository/drools:tag_area/Home Mortgage in workspace "default" of "JCR brms-store" The whole stacktrace is in attached server.log file starting on line 435. Tested with HSQL and local MySQL.
Attached config files, log file and screenshot.
Attachment: Added: brms-jdbc-ds.xml Attachment: Added: components.xml Attachment: Added: modeshape-config.xml Attachment: Added: modeshape-validationException.png Attachment: Added: mortgage-sample-repository.xml Attachment: Added: server.log
Randall - this is blocking our BRMS 5.1 certification with Modeshape - can you look at this on Monday? Thx!
Link: Added: This issue is related to BRMS-557
Is this an issue also for the default database HSQLDB, or only MySQL?
Can you verify that the "/drools:repository/drools:state_area/Draft" node can be loaded before BRMS is shut down and restarted?
If your Mysql db is using InnoDB, can you use the InnoDB, org.hibernate.dialect.MySQLInnoDBDialect.
Yes, this is an issue for both HSQL and MySQL, same exception is thrown. Before restart the GUI is responding to all commands without errors, so the "/drools:repository/drools:state_area/Draft" node is probably loaded successfully, but I can't be absolutely sure, because I don't know what operations the Guvnor is doing underneath.
Same exception with org.hibernate.dialect.MySQLInnoDBDialect.
Link: Added: This issue Cloned to BRMS-568
I've diagnosed the problem (see MODE-1113), and have a proposed fix: https://github.com/ModeShape/modeshape/pull/34 We will definitely merge this fix into the 'master' branch, but I need advice on how this should be merged into the '2.2.x' branch (and what is needed, if anything, for a patch).
The previous changes were for 'master', and need to be slightly altered for the '2.2.x' branch due to more recent changes with the unit test framework introduced in 'master' after 2.4. I generated a different pull-request for the 2.2.x changes: https://github.com/ModeShape/modeshape/pull/35 These were committed to the '2.2.x' branch, after approval from [~vhalbert]. For details, see MODE-1113.
Link: Added: This issue is a dependency of SOA-2976
I have marked MODE-1113 as resolved. If there continues to be a problem with this issue, please reopen MODE-1113.
Patch has been created.
Link: Added: This issue depends SOA-2976