Bug 742193

Summary: XML chanesets and XML rules should have valid schemaLocation
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Svitak <jsvitak>
Component: BRE (Expert, Fusion)Assignee: manstis
Status: CLOSED WORKSFORME QA Contact: Jiri Svitak <jsvitak>
Severity: low Docs Contact:
Priority: unspecified    
Version: BRMS 5.2.0.GACC: brms-jira, manstis, mbaluch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-23 10:02:41 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Svitak 2011-09-29 10:58:38 UTC
As developer I experience annoying Eclipse warning "Processing dirty regions" when I edit XML files (changesets and rules). Eclipse keeps throwing this warning very often and it slows work. Problem is in schema location, which is invalid. For example:

xs:schemaLocation="http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd"

or

xs:schemaLocation="http://drools.org/drools-5.2 drools.org/drools-5.2.xsd"

Domain drools.org does not exist. One solution is to edit headers of xml files manually and add an absolute path to my downloaded drools sources which contain a schema file, but it's a bit clumsy.

Comment 2 manstis 2012-01-22 16:28:44 UTC
Schema location "http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd" is valid - paste it into your browser and a .xsd is returned.

Do you have an internet connection when experiencing the problem? You might need to set up an XML Catalog entry in Eclipse if the problem is when you don't have an internet connection.

The first example you give *should* be completely valid: *XML Namespace* of "http://drools.org/drools-5.0/change-set" and location of "http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd". The second example you give is wrong - there is no location "drools.org/drools-5.2.xsd".

Please don't confuse "XML Namespaces" with URLs.

Comment 3 Jiri Svitak 2012-01-22 18:13:08 UTC
I experienced this problem in September 2011. I don't remember exact details now, only the Eclipse error message when editing xml files (changesets and rules). All the time I had internet connection active. I remember my colleague experienced that too and he used .xsd file from Drools sources and he set path to that file on disk. I used different text editor instead of Eclipse for xml files. Now it seems to be working ok in Eclipse.

There are more explanations:
1. The specified URL was not available in that time. I didn't check that in September, so I don't know for sure.
2. There was a problem with Eclipse, Drools plugin or another setting.

Unfortunately I don't remember where I got 5.2 namespace. As far as I can remember, the only namespace which was in documentation was version 4.0 (https://bugzilla.redhat.com/show_bug.cgi?id=742185) which didn't work. And I asked somebody about it and maybe there I got hint to try version 5.2.

I apologize for not providing exact information, but on the other hand if you had responded to this bug earlier I would be able to tell you more information.

Comment 4 manstis 2012-01-22 20:37:12 UTC
Hi Jira, 

There's no need to apologize, we all have different things going on.

Can you however confirm if this still remains a problem? I use Eclipse and do not encounter the problem (I checked before adding my comment). I am happy for the BZ to remain "open" but wonder, if we cannot replicate, whether it is still valid for 5.3.0+? 

Thanks, 

Mike

Comment 5 Jiri Svitak 2012-01-23 10:02:41 UTC
It seems that it was mysteriously solved in BRMS 5.3 without intervention, so I'm closing the bug.