[rules-users] Drools and JBoss Seam proxies

sherlock citadela at gmail.com
Tue Mar 1 06:30:14 EST 2011


Hi,

Some more research revealed that the entity beans managed by Hibernate
(3.2.4) get proxies with classes like
"<actual_entity_class_name>_$$_javassist_XXX" with the actual bean's
class as a superclass (as tihomir noted!) and are correctly recognized
by the Drools engine.

But from what I saw JBoss Seam 2.2.0.GA actually uses Javassist and the
session bean proxies end up with dynamically generated classes like
"org.javassist.tmp.java.lang.Object_$$_javassist_seam_XXX" whose
superclass is java.lang.Object (!) and when asserted as a fact such
object is obviously not recognized by the Drools and corresponding rules
do not fire.

So it looks that there is a problem as Drools is unable to correctly
recognize JBoss Seam components assigned as facts possibly due to the
different way in which JBoss Seam creates proxies compared to Hibernate.



Regards,
sherlock


On 02/28/2011 07:00 PM, rules-users-request at lists.jboss.org wrote:
> 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. Unable to start drools-server 5.1.1 or 5.2.0.M1 under	Tomcat
>       6.0.30 (A R)
>    2. Re: Drools.NET active? (FrankVhh)
>    3. Re: Unable to start drools-server 5.1.1 or 5.2.0.M1 under
>       Tomcat 6.0.30 (Esteban Aliverti)
>    4. Re: Drools.NET active? (Sean Su)
>    5. Re: Drools and JBoss Seam proxies (Tihomir Surdilovic)
>    6. Re: Drools and JBoss Seam proxies (Wolfgang Laun)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 27 Feb 2011 10:52:42 -0800
> From: A R <andromeda918 at gmail.com>
> Subject: [rules-users] Unable to start drools-server 5.1.1 or 5.2.0.M1
> 	under	Tomcat 6.0.30
> To: rules-users at lists.jboss.org
> Message-ID:
> 	<AANLkTik8MpXQmQEeK6ykHKCjLQFvc3Y2nYS-BNwt8Tu1 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I don't seem to be able to get the drools server (5.1.1 or 5.2.0.M1) to
> startup correctly under Tomcat 6.0.30.
>
> Here are the steps I've taken:
>
> 1) cp drools-5.1.1-server.war to my webapps directory
> 2) deleted servlet-api-2.3.jar due to a conflict with tomcat's
> servrlet-api.jar
> 3) On startup however I get the following error in the logs (same error for
> 5.2.0.M1):
>
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Failed to import bean definitions from URL location
> [classpath:knowledge-services.xml]
> Offending resource: class path resource [beans.xml]; nested exception is
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 25 in XML document from class path resource [knowledge-services.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException:
> cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
> can be found for element 'drools:execution-node'.
>
> Where line 25 in the knowledge-services.xml file is:
>         <drools:execution-node id="node1" />
>
> Full stack trace is here:
> http://pastebin.com/Dweg29gJ
>
>
> Any help appreciated.
>
> Thanks!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110227/00869004/attachment-0001.html 
>
> ------------------------------
>
> Message: 2
> Date: Mon, 28 Feb 2011 02:56:26 -0800 (PST)
> From: FrankVhh <frank.vanhoenshoven at agserv.eu>
> Subject: Re: [rules-users] Drools.NET active?
> To: rules-users at lists.jboss.org
> Message-ID: <1298890586871-2594095.post at n3.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> Drools .NET indeed isn't active any more and using it isn't encouraged.
>
> However there are some alternatives to use Drools and .NET together.
>
> Either use IKVM, which is some sort of conversion tool. On this forum, a
> person called Corneil has tried it with success.
>
> Or use jni4net, which is a bridge between Java and .NET, developed by Pavel
> Savara. A sample project of drools is available on via his website.
>
> http://zamboch.blogspot.com/
>
> I have used both methods and succeeded twice in generating results. Given
> the choicce, I think a jnibridge is preferable over IKVM. Imo, it allows for
> a bit more flexibility and it seems to perform a bit faster as well.
>
> Caution, these info is based on limited testing :-)
>
> Good luck.
>
> Regards,
> Frank
>
>
> ge0ffrey wrote:
>> No one at JBoss works on Drools.NET, as far as I know.
>>
>> It looks indeed like the project is inactive and it's been forked from 
>> the java Drools long ago.
>> If you need to connect to Drools from .NET, you might better off looking 
>> at the camel integration... or switch to java :)
>>
>> Op 25-02-11 15:01, Sean Su schreef:
>>> Does anyone know if Drools.NET is something Drools team in JBoss works 
>>> on? Or it is maintained by other team which just named the product 
>>> Drools.NET.
>>>
>>> The website and document seem to me that the project is not active. 
>>> Does anyone know?
>>>
>>> Thanks
>>>
>>> Sean
>>>
>>> -- 
>>> "But beware of the Dark Side. Anger, fear, aggression - the Dark Side 
>>> of the Force are they." -Yoda
>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>> -- 
>> With kind regards,
>> Geoffrey De Smet
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>




More information about the rules-users mailing list