andersonsilveira / red-piranha

Automatically exported from code.google.com/p/red-piranha
GNU General Public License v2.0
0 stars 0 forks source link

Drools guvnor: Error on import chapter 3 sample #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I try to import the sample repository_export.xml into Guvnor, I get the 
following error:

09:44:15,849 INFO  [STDOUT] ERROR 28-08 09:44:15,846 (UserInfo.java:<init>:52) 
     Unable to init UserInfo
javax.jcr.RepositoryException: failed to resolve path  relative to node 
/drools:repository/user_info

Original issue reported on code.google.com by Tonny.Br...@gmail.com on 28 Aug 2010 at 7:48

GoogleCodeExporter commented 9 years ago
I am encountering the same issue, using drools 5.1.

ERROR 31-08 14:37:43,054 (RepositoryServlet.java:doAuthorizedAction:99)      
javax.jcr.RepositoryException: failed to resolve path  relative to node 
/drools:repository/user_info

Original comment by alexpor...@gmail.com on 31 Aug 2010 at 6:41

GoogleCodeExporter commented 9 years ago
Any idea how to solve this issue?  I get this when importing as well as trying 
too edit test scenarios.

Thanks

Original comment by ricardo....@gmail.com on 9 Sep 2010 at 5:59

GoogleCodeExporter commented 9 years ago
I have the same error.  Anybody has a resolution to this issue?

Thanks.

Original comment by KarateMo...@gmail.com on 25 Oct 2010 at 7:37

GoogleCodeExporter commented 9 years ago
Somebody already found the solution for this problem. I have the same issue 
using the drools-5.1.1-guvnor-standalone release.

Thanks

Original comment by mathijsh...@gmail.com on 1 Nov 2010 at 2:53

GoogleCodeExporter commented 9 years ago
same bug 

Original comment by vinograd...@gmail.com on 10 Nov 2010 at 8:49

GoogleCodeExporter commented 9 years ago
So if someone already found the solution...what is it??

Original comment by scott.mc...@gmail.com on 17 Nov 2010 at 9:24

GoogleCodeExporter commented 9 years ago
Same here...  

08:20:50,291 INFO  [STDOUT] AUTO MIGRATION: Performing drools.package 
migration...
08:20:50,463 INFO  [STDOUT] ERROR 01-12 08:20:50,463 (UserInfo.java:<init>:52)  
 Unable to init UserInfo
javax.jcr.RepositoryException: failed to resolve path  relative to node 
/drools:repository/user_info
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:249)
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:230)
        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2546)
        at org.drools.repository.security.PermissionManager.getNode(PermissionManager.java:181)

Original comment by jlege...@gmail.com on 1 Dec 2010 at 1:26

GoogleCodeExporter commented 9 years ago
currently working my way through the examples, updating them to latest version 
(5.1 of Drools), which is the core of the problem as the examples were created 
with version 4

Have you tried this fix, to see if it solves your problem?

http://code.google.com/p/red-piranha/issues/detail?id=6&can=1 

Original comment by paul.m.browne on 1 Dec 2010 at 9:07

GoogleCodeExporter commented 9 years ago
Thanks. Two observations:

1) Is it possible that Drools 5.1 comes bundled *with* the chapter 3 examples?  
I delete the 5.1 WAR, redeployed 5.1, and noticed the assets are there... weird 
(See attached pic).  Or perhaps they 'half installed' the first time, and still 
remained in the repository?

2) Noticed that Maven 3 is really broken with the Chapter 6 examples.  Had to 
downgrade to Maven 2, which works fine. Given that Maven 3 was supposed to be 
backward compatible, perhaps I'm missing a compatibility switch?

Original comment by jlege...@gmail.com on 2 Dec 2010 at 12:12

Attachments:

GoogleCodeExporter commented 9 years ago
@Paul (#8),

Do you have any update on fixing this?  I am completely new to Drools, and I 
must say, so far, I am not feeling that it is a good choice.  At least with 
if/then, I know my code works.  

Original comment by mikevi...@gmail.com on 10 Jan 2011 at 9:32

GoogleCodeExporter commented 9 years ago
@mikeviens I'm concentrating on getting the examples working in Google App 
Engine to make it easier for people to try out Drools - no knowledge of Java 
required (which is a barrier for a lot of people based on feedback). Not there 
yet, but very good progress.

Chapter 3 sample is always going to be tricky as Changes in Drools Guvnor / 
BRMS are not meant to be backwards compatible . The code samples for the book 
are written against Maven 2/ Drools 4 - as Drools evolves the samples may not 
work in newer code.

Have you tried the samples with the version specified?

Original comment by paul.m.browne on 10 Jan 2011 at 11:01

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:42

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:44

GoogleCodeExporter commented 9 years ago
Issue 50 has been merged into this issue.

Original comment by paul.m.browne on 4 Feb 2011 at 8:44

GoogleCodeExporter commented 9 years ago
Where can get a Drools 4? Theres any other description, i can type in all 
elements, but i don't know how the repository looks.

Original comment by andrade....@gmail.com on 4 Feb 2011 at 10:58