1 Reply Latest reply on Nov 18, 2011 1:09 PM by Jason Porter

    Seam 3 exampels problem

    Peter Penzov Newbie

      Hi,
        I tried the examples of Seam 3 framework. Some of them worked other not. I tried to run the example - security-authorization. I compiled the code with maven and uploaded it into JBoss 7.


      I can login but when I client logout this page appears:



      HTTP Status 500 -


      type Exception report


      message


      description The server encountered an internal error () that prevented it from fulfilling this request.


      exception


      javax.servlet.ServletException: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
              org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
              org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
              org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:72)


      root cause


      javax.faces.el.EvaluationException: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
              javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
              com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
              javax.faces.component.UICommand.broadcast(UICommand.java:315)
              javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
              javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
              com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
              com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
              org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
              org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
              org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:72)


      root cause


      org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
              org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:283)
              org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:268)
              org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:181)
              org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:159)
              org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactoryServiceImpl.java:22)
              org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactory.java:75)
              org.jboss.seam.security.permission.SecurityRuleLoader.init(SecurityRuleLoader.java:42)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:193)
              org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:127)
              org.jboss.weld.util.Beans.callInitializers(Beans.java:901)
              org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:888)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
              org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
              org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
              org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
              org.jboss.weld.context.AbstractContext.get(AbstractContext.java:122)
              org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
              org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
              org.jboss.seam.security.permission.SecurityRuleLoader$Proxy$$$WeldClientProxy.getKnowledgeBase(SecurityRuleLoader$Proxy$$$WeldClientProxy.java)
              org.jboss.seam.security.permission.RuleBasedPermissionResolver.getSecurityRules(RuleBasedPermissionResolver.java:237)
              org.jboss.seam.security.permission.RuleBasedPermissionResolver.init(RuleBasedPermissionResolver.java:49)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:193)
              org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:127)
              org.jboss.weld.util.Beans.callInitializers(Beans.java:901)
              org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:888)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
              org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
              org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
              org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
              org.jboss.weld.context.AbstractContext.get(AbstractContext.java:122)
              org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
              org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
              org.jboss.seam.security.permission.RuleBasedPermissionResolver$Proxy$$$WeldClientProxy.unAuthenticate(RuleBasedPermissionResolver$Proxy$$$WeldClientProxy.java)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
              org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
              org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
              org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
              org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
              org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
              org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
              org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
              org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
              org.jboss.seam.security.IdentityImpl.logout(IdentityImpl.java:424)
              org.jboss.seam.security.IdentityImpl$Proxy$$$WeldClientProxy.logout(IdentityImpl$Proxy$$$WeldClientProxy.java)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.apache.el.parser.AstValue.invoke(AstValue.java:196)
              org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
              org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)
              org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)
              com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
              javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
              com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
              javax.faces.component.UICommand.broadcast(UICommand.java:315)
              javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
              javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
              com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
              com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
              org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
              org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
              org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:72)


      root cause


      org.drools.RuntimeDroolsException: value '1.7' is not a valid language level
              org.drools.rule.builder.dialect.java.JavaDialectConfiguration.getDefaultLanguageLevel(JavaDialectConfiguration.java:162)
              org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:57)
              org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:279)
              org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:268)
              org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:181)
              org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:159)
              org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactoryServiceImpl.java:22)
              org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactory.java:75)
              org.jboss.seam.security.permission.SecurityRuleLoader.init(SecurityRuleLoader.java:42)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:193)
              org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:127)
              org.jboss.weld.util.Beans.callInitializers(Beans.java:901)
              org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:888)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
              org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
              org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
              org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
              org.jboss.weld.context.AbstractContext.get(AbstractContext.java:122)
              org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
              org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
              org.jboss.seam.security.permission.SecurityRuleLoader$Proxy$$$WeldClientProxy.getKnowledgeBase(SecurityRuleLoader$Proxy$$$WeldClientProxy.java)
              org.jboss.seam.security.permission.RuleBasedPermissionResolver.getSecurityRules(RuleBasedPermissionResolver.java:237)
              org.jboss.seam.security.permission.RuleBasedPermissionResolver.init(RuleBasedPermissionResolver.java:49)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:193)
              org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:127)
              org.jboss.weld.util.Beans.callInitializers(Beans.java:901)
              org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:888)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
              org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
              org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
              org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
              org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
              org.jboss.weld.context.AbstractContext.get(AbstractContext.java:122)
              org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
              org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
              org.jboss.seam.security.permission.RuleBasedPermissionResolver$Proxy$$$WeldClientProxy.unAuthenticate(RuleBasedPermissionResolver$Proxy$$$WeldClientProxy.java)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
              org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
              org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
              org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
              org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
              org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
              org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
              org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
              org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
              org.jboss.seam.security.IdentityImpl.logout(IdentityImpl.java:424)
              org.jboss.seam.security.IdentityImpl$Proxy$$$WeldClientProxy.logout(IdentityImpl$Proxy$$$WeldClientProxy.java)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              java.lang.reflect.Method.invoke(Method.java:601)
              org.apache.el.parser.AstValue.invoke(AstValue.java:196)
              org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
              org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)
              org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)
              com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
              javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
              com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
              javax.faces.component.UICommand.broadcast(UICommand.java:315)
              javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
              javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
              com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
              com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
              org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
              org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
              org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:72)


      note The full stack trace of the root cause is available in the JBoss Web/7.0.1.Final logs.





      Is this a configuration problem?


      Regards