0 Replies Latest reply on Nov 8, 2013 5:01 PM by John Franey

    class cast exception in drools that makes no sense: seam 2.3, eap 6.1

    John Franey Novice

      I cannot understand this.  MVELDialectConfiguration implements DialectConfiguration. They are in the same jar file.  I've built this application using the seam 2.3 maven bom which specifies the version of drools to use.

       

      How can I get out of this?

       

       

       

      16:29:57,812 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/sdp-gui]] (http-localhost/127.0.0.1:8080-5) JBWEB000211: Session event listener threw exception: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.ruleBasedPermissionResolver

        at org.jboss.seam.Component.newInstance(Component.java:2208) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:343) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:317) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:233) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:182) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:46) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:368) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.session.StandardSession.setId(StandardSession.java:338) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:496) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:300) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.connector.Request.doGetSession(Request.java:2651) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.connector.Request.getSession(Request.java:2357) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:790) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:800) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.jboss.seam.web.IdentityRequestWrapper.<init>(IdentityRequestWrapper.java:23) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]

      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: securityRules

        at org.jboss.seam.Component.newInstance(Component.java:2208) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.getInstance(Component.java:2034) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.getInstance(Component.java:1996) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.getInstance(Component.java:1990) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [jboss-el-api_2.2_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

        at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]

        at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]

        at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:157) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2606) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.initialize(Component.java:1534) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.postConstructJavaBean(Component.java:1460) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.postConstruct(Component.java:1382) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.newInstance(Component.java:2193) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        ... 39 more

      Caused by: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration'

        at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:310) [drools-compiler-5.3.3.Final.jar:5.3.3.Final]

        at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:295) [drools-compiler-5.3.3.Final.jar:5.3.3.Final]

        at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:184) [drools-compiler-5.3.3.Final.jar:5.3.3.Final]

        at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:162) [drools-compiler-5.3.3.Final.jar:5.3.3.Final]

        at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:45) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]

        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]

        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.callComponentMethod(Component.java:2313) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.callCreateMethod(Component.java:2236) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        at org.jboss.seam.Component.newInstance(Component.java:2196) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

        ... 55 more

      Caused by: java.lang.ClassCastException: org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration cannot be cast to org.drools.compiler.DialectConfiguration

        at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:305) [drools-compiler-5.3.3.Final.jar:5.3.3.Final]

        ... 68 more