[rules-users] error resolving class name on imported class when loading package

lhorton LHorton at ABCLegal.com
Mon Aug 1 14:10:54 EDT 2011


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.



More information about the rules-users mailing list