[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1801) drools-ant-4.0.7, DroolsCompilerAntTask, classloader mixup leads to ClassCastException if drools-compiler.jar part of classpathref

Juergen none (JIRA) jira-events at lists.jboss.org
Mon Oct 13 12:59:21 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBRULES-1801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12433625#action_12433625 ] 

Juergen none commented on JBRULES-1801:
---------------------------------------

seems to be the same for drools-core.jar:
java.lang.ClassCastException: org.drools.base.DefaultConsequenceExceptionHandler
location unknown

> drools-ant-4.0.7, DroolsCompilerAntTask, classloader mixup leads to ClassCastException if drools-compiler.jar part of classpathref
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-1801
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-1801
>             Project: JBoss Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-ant
>    Affects Versions: 4.0.7
>            Reporter: Juergen none
>            Assignee: Mark Proctor
>
> 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 contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list