[
https://issues.jboss.org/browse/JBRULES-1801?page=com.atlassian.jira.plug...
]
Geoffrey De Smet resolved JBRULES-1801.
---------------------------------------
Assignee: Geoffrey De Smet (was: Mark Proctor)
Resolution: Out of Date
Out of date. drools-ant is now properly distributed as part of the drooljbpm-tools
distribution zip, which should fix this.
Pls reopen if the issue occurs with drools 5.4.0.Beta2 or later.
drools-ant-4.0.7, DroolsCompilerAntTask, classloader mixup leads to
ClassCastException if drools-compiler.jar part of classpathref
----------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-1801
URL:
https://issues.jboss.org/browse/JBRULES-1801
Project: Drools
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: drools-ant
Affects Versions: 4.0.7
Reporter: Juergen H
Assignee: Geoffrey De Smet
drools-4.0.7:
Original error in build.xml:
/home/juergen/workspace/eclipse/kusss-dev/build.xml:777: RuleBaseTask failed: Unable to
load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
Traceback to:
org.drools.compiler.PackageBuilderConfiguration, line 154+:
Class cls = classLoader.loadClass( dialectClass );
DialectConfiguration dialectConf = (DialectConfiguration) cls.newInstance();
cls is org.drools.rule.builder.dialect.java.JavaDialectConfiguration, but loaded via
classloader given in drools compile ant task property classpathref, while
DialectConfiguration is loaded via ant tool classpath used for taskdef
-->
java.lang.ClassCastException:
org.drools.rule.builder.dialect.java.JavaDialectConfiguration
interim fix:
make sure drools-compiler.jar is not in classpath of classloaderref
suggested fix:
Class cls = DialectConfiguration.class.getClassLoader().loadClass(
dialectClass );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira