[rules-users] error resolving class name on imported class when loading package
Michael Anstis
michael.anstis at gmail.com
Mon Aug 1 14:15:59 EDT 2011
Thanks for feeding back your solution.
It's bound to be of help to others who find themselves in a similar position
to yourself.
With kind regards,
Mike
On 1 August 2011 19:10, lhorton <LHorton at abclegal.com> wrote:
> Got around this error for now by using non-strict mode for mvel. I have
> seen
> inquiries before on this forum about how to set the
> drools.dialect.mvel.strict property using Spring config so thought I'd
> share
> my bean definition. One caveat is to make sure the mvel config bean is
> created before any drools spring config loads. The config below gets the
> system properties, then adds the mvel property to the existing ones.
>
> <bean
> class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
> <property name="targetObject">
> <bean
> class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
> <property name="targetClass"
> value="java.lang.System" />
> <property name="targetMethod"
> value="getProperties" />
> </bean>
> </property>
> <property name="targetMethod" value="putAll" />
> <property name="arguments">
>
> <props>
> <prop
> key="drools.dialect.mvel.strict">false</prop>
> </props>
> </property>
> </bean>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/error-resolving-class-name-on-imported-class-when-loading-package-tp3210034p3216638.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> 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/20110801/0cd2f814/attachment.html
More information about the rules-users
mailing list