Bug 780613 - JBDS 4 - SOA-P 4.3 CP05 incompatibility - creating new Drools project - multiple warnings are displayed
Summary: JBDS 4 - SOA-P 4.3 CP05 incompatibility - creating new Drools project - multi...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: Documentation, Tooling, JBoss Rules
Version: 5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 5.2.0 GA
Assignee: David Le Sage
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-02 19:58 UTC by Len DiMaggio
Modified: 2012-07-13 04:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: SOA-3051
Environment:
Version: 4.0.0.GA Build id: v20110216-1930-H239-GA Build date: 20110216-1930 SOA-P 4.3 CP05, ER3 build JBoss Rules runtime set to: /jboss-soa-p.4.3.0/jboss-as/server/production/deploy/jbrules.esb
Last Closed: 2011-09-30 19:00:23 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-3051 0 Minor Closed JBDS 4 - SOA-P 4.3 CP05 incompatibility - creating new Drools project - multiple warnings are displayed 2014-03-18 09:31:24 UTC

Description Len DiMaggio 2011-05-02 19:58:48 UTC
++ This bug is a clone of bug 780612 ++

project_key: SOA

The problem looks like that JBDS 4 requires/assumes a Drools 5 runtime.

The new Drools project references api elements that did not exist before Drools 5 - such as:  org.drools.KnowledgeBase

Comment 1 Len DiMaggio 2011-05-02 20:03:29 UTC
Link: Added: This issue is a dependency of JBDS-1643


Comment 2 Kris Verlaenen 2011-05-08 05:02:13 UTC
When creating a new Drools project, you can set code compatibility (last page of the wizard, in this case set to 4.x).
I just tested and I was able to generate and execute the hello world process for Drools 4.x on a Drools 4.0.7 runtime using the latest Drools plugin.

Comment 3 Len DiMaggio 2011-05-09 19:04:44 UTC
Thanks Kris, Selecting the Drools 4 option solves that problem - I'm now seeing > 70 Warnings such as this for the example project:

Discouraged access: The type Package is not accessible due to restriction on required library /opt/local/51_GA/jboss-soa-p-5/jboss-as/server/production/deploy/jbrules.esb/drools-core-5.1.0.BRMS.jar

What is the restriction on the library?

Are these caused by the examples using internal (Pre-5.1) API calls?  (http://lists.jboss.org/pipermail/rules-users/2009-June/009242.html)



Comment 4 Kris Verlaenen 2011-05-09 19:37:31 UTC
These warnings are indeed generated, as we introduced a new API in Drools 5.0 (as defined in drools-api).  We discourage access to the internal API using these warnings.  You can however turn them off if you want to (for example if you use drools4) in Drools preferences (Windows - Preferences and then under Drools set internal classes to accessible).

Comment 5 Len DiMaggio 2011-05-09 20:33:32 UTC
Thanks Kris - this is not a critical bug then - but, we should document this for the users.


Comment 6 Brian Fitzpatrick 2011-05-31 17:35:23 UTC
Isaac, how do we need to go about getting this into the SOA-P 5.2 readme?

Comment 7 Isaac Rooskov 2011-05-31 21:23:09 UTC
Brian - It needs to be assigned to the writer for SOA-P so he is aware of this issue. 

David, this is why I am assigning it to you ;)

Comment 8 David Le Sage 2011-07-18 00:11:13 UTC
Release Notes Docs Status: Added: Documented as Known Issue
Writer: Added: dlesage
Release Notes Text: Added: Users may encounter warning messages if the set Rules project code compatibility to JBoss Rules 4.x.  These are caused by examples that use pre-5.x API calls and are intended to discourage users from accessing the internal API. If, however, you do need to access the API, you can turn them off by going to Windows - Preferences - JBoss Rules and setting the set internal classes to accessible.



Comment 9 David Le Sage 2011-07-18 00:11:43 UTC
Release note created to document this issue.

Comment 10 David Le Sage 2011-07-18 02:38:49 UTC
Release Notes Text: Removed: Users may encounter warning messages if the set Rules project code compatibility to JBoss Rules 4.x.  These are caused by examples that use pre-5.x API calls and are intended to discourage users from accessing the internal API. If, however, you do need to access the API, you can turn them off by going to Windows - Preferences - JBoss Rules and setting the set internal classes to accessible.
 Added: https://issues.jboss.org/browse/SOA-3051

Users may encounter warning messages if the set Rules project code compatibility to JBoss Rules 4.x.  These are caused by examples that use pre-5.x API calls and are intended to discourage users from accessing the internal API. If, however, you do need to access the API, you can turn them off by going to Windows - Preferences - JBoss Rules and setting the set internal classes to accessible.



Comment 12 David Le Sage 2011-09-28 03:10:37 UTC
LOL - Helps if I check them in.  ;-)


Note You need to log in before you can comment on or make changes to this bug.