Hi Kicho,

I could not find addPackageFromBRL() in Package Builder.

Any other options???

Thanks
M
-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Monday, June 14, 2010 8:36 AM
To: [email protected]
Subject: rules-users Digest, Vol 43, Issue 68

Send rules-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."


Today's Topics:

   1. Re: running brl rules - error (kicho)
   2. Error using change-set (Raf)
   3. Re: Error using change-set (Esteban Aliverti)
   4. Re: Error using change-set (Raf)


----------------------------------------------------------------------

Message: 1
Date: Mon, 14 Jun 2010 04:10:02 -0700 (PDT)
From: kicho <[email protected]>
Subject: Re: [rules-users] running brl rules - error
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii


Hi,

you should have a look at PackageBuilder javadoc. There is a method for
adding brl's:

public void addPackageFromBrl(Resource resource)
                       throws DroolsParserException,
                              IOException

    Throws:
        DroolsParserException
        IOException


--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/running-brl-rules-error-tp889521p894097.html
Sent from the Drools - User mailing list archive at Nabble.com.


------------------------------

Message: 2
Date: Mon, 14 Jun 2010 13:24:05 +0200
From: Raf <[email protected]>
Subject: [rules-users] Error using change-set
To: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
I am trying to use a change-set file to load my DSL and DSLR resources, but
I am not able to get it working.

My first attempt was based on the snippet I found here:
http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933

<?xml version="1.0" encoding="UTF-8"?>
<change-set xmlns='http://drools.org/drools-5.0/change-set'
            xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
            xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'
>
   <add>
      <resource source='file:classification.dsl' type='DSL' />
      <resource source='file:classification.drl' type='DSLR' />
   </add>
</change-set>

but I received the following error:
(null: 4, 78): SchemaLocation: schemaLocation value = '
http://drools.org/drools-5.0/change-set.xsd' must have even number of URI's.
(null: 4, 78): cvc-elt.1: Cannot find the declaration of element
'change-set'.

Then, I found the following old post in the mailing list:
http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html
where it was suggested to
"Just replace *xs:schemaLocation='**http://drools.org/drools-5.0/change-set.
xsd* <http://drools.org/drools-5.0/change-set.xsd>*'* by *xs:schemaLocation
='http://drools.org/drools-5.0/change-set drools-change-set-5.0.xsd'*"

So I changed my file to:
<?xml version="1.0" encoding="UTF-8"?>
<change-set xmlns='http://drools.org/drools-5.0/change-set'
            xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
            
xs:schemaLocation='http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd'
>
   <add>
      <resource source='file:classification.dsl' type='DSL' />
      <resource source='file:classification.dslr' type='DSLR' />
   </add>
</change-set>

but now I receive the following errors:
(null: 4, 100): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 4, 100): cvc-elt.1: Cannot find the declaration of element
'change-set'.
(null: 5, 9): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 6, 63): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 7, 65): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.

What am I missing?

Thanks.
Raf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20100614/50f99fee/attachment-0001.html

------------------------------

Message: 3
Date: Mon, 14 Jun 2010 08:50:28 -0300
From: Esteban Aliverti <[email protected]>
Subject: Re: [rules-users] Error using change-set
To: Rules Users List <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
The "null: 4, 78): SchemaLocation: schemaLocation value = '
http://drools.org/drools-5.0/change-set.xsd' must have even number of URI's.
(null: 4, 78): cvc-elt.1: Cannot find the declaration of element
'change-set'."  error is harmless. The agent should work anyway.
Please take a look at https://jira.jboss.org/browse/JBRULES-2377. Maybe you
are experiencing that error. I need to take a look at this issue.

Best,

2010/6/14 Raf <[email protected]>

> Hi,
> I am trying to use a change-set file to load my DSL and DSLR resources, but
> I am not able to get it working.
>
> My first attempt was based on the snippet I found here:
> http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933
>
> <?xml version="1.0" encoding="UTF-8"?>
> <change-set xmlns='http://drools.org/drools-5.0/change-set'
>             xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
>             xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'
> >
>    <add>
>       <resource source='file:classification.dsl' type='DSL' />
>       <resource source='file:classification.drl' type='DSLR' />
>    </add>
> </change-set>
>
> but I received the following error:
> (null: 4, 78): SchemaLocation: schemaLocation value = '
> http://drools.org/drools-5.0/change-set.xsd' must have even number of
> URI's.
> (null: 4, 78): cvc-elt.1: Cannot find the declaration of element
> 'change-set'.
>
> Then, I found the following old post in the mailing list:
> http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html
> where it was suggested to
> "Just replace *xs:schemaLocation='**http://drools.org/drools-5.0/change-
> set.xsd* <http://drools.org/drools-5.0/change-set.xsd>*'* by *xs:
> schemaLocation='http://drools.org/drools-5.0/change-set drools-change-set
> -5.0.xsd'*"
>
> So I changed my file to:
> <?xml version="1.0" encoding="UTF-8"?>
> <change-set xmlns='http://drools.org/drools-5.0/change-set'
>             xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
>             
> xs:schemaLocation='http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd'
>  >
>    <add>
>       <resource source='file:classification.dsl' type='DSL' />
>       <resource source='file:classification.dslr' type='DSLR' />
>    </add>
> </change-set>
>
> but now I receive the following errors:
> (null: 4, 100): schema_reference.4: Failed to read schema document
> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
> document could not be read; 3) the root element of the document is not
> <xsd:schema>.
> (null: 4, 100): cvc-elt.1: Cannot find the declaration of element
> 'change-set'.
> (null: 5, 9): schema_reference.4: Failed to read schema document
> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
> document could not be read; 3) the root element of the document is not
> <xsd:schema>.
> (null: 6, 63): schema_reference.4: Failed to read schema document
> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
> document could not be read; 3) the root element of the document is not
> <xsd:schema>.
> (null: 7, 65): schema_reference.4: Failed to read schema document
> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
> document could not be read; 3) the root element of the document is not
> <xsd:schema>.
>
> What am I missing?
>
> Thanks.
> Raf
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20100614/21331258/attachment-0001.html

------------------------------

Message: 4
Date: Mon, 14 Jun 2010 14:35:38 +0200
From: Raf <[email protected]>
Subject: Re: [rules-users] Error using change-set
To: Rules Users List <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi Esteban, thanks for your answer.
I thought that the error was due to change-set declaration so I didn't
investigate further before.

After reading your answer, I made some other experiments and I have found
that the problem is the use of a "relative path".
If I modify the change-set declaration using the absolute path of the two
resources, it works.

So the question is: may I use a relative path declaration in my change-set
file? How?
My change-set.xml file and the two resources are all in the same directory.

Thanks.
Bye

Raf

2010/6/14 Esteban Aliverti <[email protected]>

> Hi,
> The "null: 4, 78): SchemaLocation: schemaLocation value = '
> http://drools.org/drools-5.0/change-set.xsd' must have even number of
> URI's.
> (null: 4, 78): cvc-elt.1: Cannot find the declaration of element
> 'change-set'."  error is harmless. The agent should work anyway.
> Please take a look at https://jira.jboss.org/browse/JBRULES-2377. Maybe
> you are experiencing that error. I need to take a look at this issue.
>
> Best,
>
> 2010/6/14 Raf <[email protected]>
>
>>  Hi,
>> I am trying to use a change-set file to load my DSL and DSLR resources,
>> but I am not able to get it working.
>>
>> My first attempt was based on the snippet I found here:
>> http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <change-set xmlns='http://drools.org/drools-5.0/change-set'
>>             xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
>>             xs:schemaLocation='
>> http://drools.org/drools-5.0/change-set.xsd' >
>>    <add>
>>       <resource source='file:classification.dsl' type='DSL' />
>>       <resource source='file:classification.drl' type='DSLR' />
>>    </add>
>> </change-set>
>>
>> but I received the following error:
>> (null: 4, 78): SchemaLocation: schemaLocation value = '
>> http://drools.org/drools-5.0/change-set.xsd' must have even number of
>> URI's.
>> (null: 4, 78): cvc-elt.1: Cannot find the declaration of element
>> 'change-set'.
>>
>> Then, I found the following old post in the mailing list:
>> http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html
>> where it was suggested to
>> "Just replace *xs:schemaLocation='**http://drools.org/drools-5.0/change-
>> set.xsd* <http://drools.org/drools-5.0/change-set.xsd>*'* by *xs:
>> schemaLocation='http://drools.org/drools-5.0/change-set drools-change-set
>> -5.0.xsd'*"
>>
>> So I changed my file to:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <change-set xmlns='http://drools.org/drools-5.0/change-set'
>>             xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
>>             
>> xs:schemaLocation='http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd'
>>  >
>>    <add>
>>       <resource source='file:classification.dsl' type='DSL' />
>>       <resource source='file:classification.dslr' type='DSLR' />
>>    </add>
>> </change-set>
>>
>> but now I receive the following errors:
>> (null: 4, 100): schema_reference.4: Failed to read schema document
>> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
>> document could not be read; 3) the root element of the document is not
>> <xsd:schema>.
>> (null: 4, 100): cvc-elt.1: Cannot find the declaration of element
>> 'change-set'.
>> (null: 5, 9): schema_reference.4: Failed to read schema document
>> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
>> document could not be read; 3) the root element of the document is not
>> <xsd:schema>.
>> (null: 6, 63): schema_reference.4: Failed to read schema document
>> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
>> document could not be read; 3) the root element of the document is not
>> <xsd:schema>.
>> (null: 7, 65): schema_reference.4: Failed to read schema document
>> 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
>> document could not be read; 3) the root element of the document is not
>> <xsd:schema>.
>>
>> What am I missing?
>>
>> Thanks.
>> Raf
>>
>> _______________________________________________
>> rules-users mailing list
>> [email protected]
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20100614/216d6810/attachment.html

------------------------------

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 43, Issue 68
*******************************************
Please consider the environment before printing this email.

Visit our website at http://www.nyse.com

****************************************************

Note:  The information contained in this message and any attachment to it is 
privileged, confidential and protected from disclosure.  If the reader of this 
message is not the intended recipient, or an employee or agent responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify 
the sender immediately by replying to the message, and please delete it from 
your system.  Thank you.  NYSE Euronext.


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to