[rules-users] Uploading models to Guvnor

Zhuk, Yefim Yefim.Zhuk at salliemae.com
Mon Jul 26 11:28:53 EDT 2010


>"Unable to validate package configuration"

This message after uploading a jar file in Guvnor often means that the classes in the jar depend on some library that is not included.

It's hard to say precisely without the jar, but check this possibility (check imports)
I'd recommend to upload a jar with just one-two classes with no extra dependences.

Hope this helps,

Jeff
-----Original Message-----
From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of rules-users-request at lists.jboss.org
Sent: Sunday, July 25, 2010 7:43 PM
To: rules-users at lists.jboss.org
Subject: rules-users Digest, Vol 44, Issue 109

Send rules-users mailing list submissions to
	rules-users at lists.jboss.org

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
	rules-users-request at lists.jboss.org

You can reach the person managing the list at
	rules-users-owner at lists.jboss.org

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


Today's Topics:

   1. Re: Uploading models to Guvnor (james corrigan)
   2. Re: RuleAgents and containers (Pavel Tavoda)
   3. Re: Uploading models to Guvnor (Esteban Aliverti)
   4. Re: Uploading models to Guvnor (james corrigan)


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

Message: 1
Date: Sun, 25 Jul 2010 20:37:23 +0100
From: james corrigan <jamescorrig at gmail.com>
Subject: Re: [rules-users] Uploading models to Guvnor
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
	<AANLkTik8gtw+UddxUpyqJvsMpWSks+32bxnAWpC16or1 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Mark, Esteban,

I recreated the jar and it does contain class files with no manifest file.
It has four classes: Temperature, Room, ServerGUI and Fan - i have included
it. The four appear in Imported types of the package main menu but i still
get the same error when i try to save and validate configuration.

Kind regards,
James.

2010/7/24 Mark Proctor <mproctor at codehaus.org>

> normally this means someone uploaded a .jar of .java files, not .class. You
> need to compile the .java files in the .jar.
>
> Mark
>
> On 24/07/2010 22:56, Esteban Aliverti wrote:
>
> Could you please post your jar here?
>
> El jul 24, 2010 4:24 p.m., "james corrigan" <jamescorrig at gmail.com>
> escribi?:
>
> Hi All,
> I am having severe amount of trouble trying to get started in Guvnor, i
> cannot load any jar files at all - i can upload them but not use them when i
> try write a guided rule it tells me that no models are loaded even though
> Guvnor is telling me its there.
> I create a new package, then upload my jar file, then i add a category and
> try to save but get the following
> error:
>
>   "Unable to validate package configuration (eg, DSLs, models) for
> [Drols]. Suggestion completions may not operate correctly for graphical
> editors for this package."
>
> I am running out of time plus patience trying to get this to work, i have
> been following the book: JBoss Drools Business Rules, and the online
> documentation but to no avail.
>
> Any help is much appreciated.
>
> Kind regards,
> James.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing listrules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100725/63a55271/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: James.jar
Type: application/java-archive
Size: 4868 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100725/63a55271/attachment-0001.bin 

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

Message: 2
Date: Sun, 25 Jul 2010 21:57:14 +0200
From: Pavel Tavoda <pavel.tavoda at gmail.com>
Subject: Re: [rules-users] RuleAgents and containers
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
	<AANLkTim90RD8b7AbQqLyVuwVe_0GrMiswJRRjdWkLSkX at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

In default setup of many servers (which I know) and java has no
prohibited reading of files outside ear. You can read changeset and
rule files from specific directory e.g. (/etc/rules/...). Or you can
use user.home property. We are using it without problems.
However you can use other mechanisms which are more appropriate for
your setup. For example for clustered environment and better
management I will store rules to database or you can use Guvnor.

Regards

Pavel


On Fri, Jul 23, 2010 at 6:56 PM, H.C. <canterburry at gmail.com> wrote:
>
> Pavel,
>
> Thanks for the reply. However, if my change-set file and drl files are not
> packed in the war/ear but located on the server's file system outside of the
> app server then I do believe the JEE spec forces me to map an external
> resource via JNDI? We want this because we need to frequently update the
> rules without having to repackaging and deploy the application.
>
> For this scenario, will the rule agent work correctly? Or...
>
> Are you saying that my change-set file should be packaged with my
> application but point to the drl files located outside of the app server? If
> so, without using JNDI, wouldn't that break the container provided isolation
> from the file system?
>
> I am thinking this has to work somehow since Drools provides a way to manage
> and deploy rules via Guvnor which obviously wouldn't always be located on
> the same server as the execution environment and drools is deployed in
> plenty of enterprise apps.
>
> I just can't quite wrap my head around the correct architecture/setup.
>
> Is there maybe a doc about this anywhere?
>
> Thanks
> --
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgents-and-containers-tp988664p990268.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


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

Message: 3
Date: Sun, 25 Jul 2010 19:23:15 -0300
From: Esteban Aliverti <esteban.aliverti at gmail.com>
Subject: Re: [rules-users] Uploading models to Guvnor
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
	<AANLkTi=KnBwBd8zi3bBUxhHjOujaxFLQ4HrqsvmD2WPQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

It looks like your classes are not defined inside a package, or your jar
file is malformed.
Please try to define your classes inside a package and try again.

Best,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/7/25 james corrigan <jamescorrig at gmail.com>

> Hi Mark, Esteban,
>
> I recreated the jar and it does contain class files with no manifest file.
> It has four classes: Temperature, Room, ServerGUI and Fan - i have included
> it. The four appear in Imported types of the package main menu but i still
> get the same error when i try to save and validate configuration.
>
> Kind regards,
> James.
>
> 2010/7/24 Mark Proctor <mproctor at codehaus.org>
>
>  normally this means someone uploaded a .jar of .java files, not .class.
>> You need to compile the .java files in the .jar.
>>
>> Mark
>>
>> On 24/07/2010 22:56, Esteban Aliverti wrote:
>>
>> Could you please post your jar here?
>>
>> El jul 24, 2010 4:24 p.m., "james corrigan" <jamescorrig at gmail.com>
>> escribi?:
>>
>> Hi All,
>> I am having severe amount of trouble trying to get started in Guvnor, i
>> cannot load any jar files at all - i can upload them but not use them when i
>> try write a guided rule it tells me that no models are loaded even though
>> Guvnor is telling me its there.
>> I create a new package, then upload my jar file, then i add a category and
>> try to save but get the following
>> error:
>>
>>   "Unable to validate package configuration (eg, DSLs, models) for
>> [Drols]. Suggestion completions may not operate correctly for graphical
>> editors for this package."
>>
>> I am running out of time plus patience trying to get this to work, i have
>> been following the book: JBoss Drools Business Rules, and the online
>> documentation but to no avail.
>>
>> Any help is much appreciated.
>>
>> Kind regards,
>> James.
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>> _______________________________________________
>> rules-users mailing listrules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100725/9a255977/attachment-0001.html 

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

Message: 4
Date: Mon, 26 Jul 2010 00:42:23 +0100
From: james corrigan <jamescorrig at gmail.com>
Subject: Re: [rules-users] Uploading models to Guvnor
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
	<AANLkTik-719imx=z6dOjSbJ2do2bvxvR+ZZpvZXJ6eFT at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Esteban,
Thanks very much for your repsonses, i have just figured what was wrong - i
had other classes such as hibernate session etc defined and they were not
included in my jar, i have it working now.
All the best,
James.

2010/7/25 Esteban Aliverti <esteban.aliverti at gmail.com>

> It looks like your classes are not defined inside a package, or your jar
> file is malformed.
> Please try to define your classes inside a package and try again.
>
> Best,
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Developer @ http://www.plugtree.com
> - Blog @ http://ilesteban.wordpress.com
>
>
> 2010/7/25 james corrigan <jamescorrig at gmail.com>
>
>  Hi Mark, Esteban,
>>
>> I recreated the jar and it does contain class files with no manifest file.
>> It has four classes: Temperature, Room, ServerGUI and Fan - i have included
>> it. The four appear in Imported types of the package main menu but i still
>> get the same error when i try to save and validate configuration.
>>
>> Kind regards,
>> James.
>>
>> 2010/7/24 Mark Proctor <mproctor at codehaus.org>
>>
>>  normally this means someone uploaded a .jar of .java files, not .class.
>>> You need to compile the .java files in the .jar.
>>>
>>> Mark
>>>
>>> On 24/07/2010 22:56, Esteban Aliverti wrote:
>>>
>>> Could you please post your jar here?
>>>
>>> El jul 24, 2010 4:24 p.m., "james corrigan" <jamescorrig at gmail.com>
>>> escribi?:
>>>
>>> Hi All,
>>> I am having severe amount of trouble trying to get started in Guvnor, i
>>> cannot load any jar files at all - i can upload them but not use them when i
>>> try write a guided rule it tells me that no models are loaded even though
>>> Guvnor is telling me its there.
>>> I create a new package, then upload my jar file, then i add a category
>>> and try to save but get the following
>>> error:
>>>
>>>   "Unable to validate package configuration (eg, DSLs, models) for
>>> [Drols]. Suggestion completions may not operate correctly for graphical
>>> editors for this package."
>>>
>>> I am running out of time plus patience trying to get this to work, i have
>>> been following the book: JBoss Drools Business Rules, and the online
>>> documentation but to no avail.
>>>
>>> Any help is much appreciated.
>>>
>>> Kind regards,
>>> James.
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>> _______________________________________________
>>> rules-users mailing listrules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100726/bbab0205/attachment.html 

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

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 44, Issue 109
********************************************

This E-Mail has been scanned for viruses.




More information about the rules-users mailing list