2 Replies Latest reply on Sep 10, 2008 9:29 AM by Eric H

    Security Rules resulting in Exception

    Srinivas Chamarthi Newbie

      Hi,


      I have enabled seam security and am encountering the following exception when I access login page.


      I am deploying the application as ear and ear/lib contains the following jars.


      antlr-runtime.jar
      drools-compiler.jar
      drools-core.jar
      mvel14.jar


      I am using seam version 2.0.0.GA. The Dialect class JavaDialectConfiguration is existing in drools-compiler.jar.


      Could any 1 experienced this problem ? appreciate any help in this regard.


      
      
      18:46:41,293 INFO  [Contexts] starting up: org.jboss.seam.web.session
      18:46:41,293 INFO  [Contexts] starting up: org.jboss.seam.security.identity
      18:46:41,450 ERROR [[/UMC]] Session event listener threw exception
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
              at org.jboss.seam.Component.newInstance(Component.java:1962)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
              at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:187)
              at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
              at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:44)
              at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:397)
              at org.apache.catalina.session.StandardSession.setId(StandardSession.java:369)
              at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:827)
              at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:291)
              at org.apache.catalina.connector.Request.doGetSession(Request.java:2293)
              at org.apache.catalina.connector.Request.getSession(Request.java:2066)
              at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
              at org.josso.tc55.agent.SSOAgentValve.getSession(SSOAgentValve.java:596)
              at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:406)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Unknown Source)
      Caused by: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
              at org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(PackageBuilderConfiguration.java:134)
              at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:110)
              at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:83)
              at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:40)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
              at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
              at org.jboss.seam.Component.callCreateMethod(Component.java:1997)
              at org.jboss.seam.Component.newInstance(Component.java:1968)
              at org.jboss.seam.Component.getInstance(Component.java:1865)
              at org.jboss.seam.Component.getInstance(Component.java:1832)
              at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
              at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
              at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
              at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
              at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
              at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
              at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:112)
              at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2352)
              at org.jboss.seam.Component.initialize(Component.java:1381)
              at org.jboss.seam.Component.instantiateJavaBean(Component.java:1307)
              at org.jboss.seam.Component.instantiate(Component.java:1260)
              at org.jboss.seam.Component.newInstance(Component.java:1958)
              ... 21 more
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.drools.rule.builder.dialect.java.JavaDialectConfiguration
              at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
              at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
              at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              at org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(PackageBuilderConfiguration.java:128)
              ... 48 more