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(a)lists.jboss.org wrote:
> Send rules-users mailing list submissions to
> rules-users(a)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(a)lists.jboss.org
>
> You can reach the person managing the list at
> rules-users-owner(a)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(a)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(a)lists.jboss.org
> Message-ID:
> <AANLkTik8MpXQmQEeK6ykHKCjLQFvc3Y2nYS-BNwt8Tu1(a)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!
>