6 Replies Latest reply on May 14, 2007 3:10 AM by Carlo de Wolf

    Problem with @PermitAll on jboss-5.0.0.Beta2

    Carsten Rudat Novice

      Hi,

      I have a SLSB witch delivers messages for my JSF-front-end.

      @PermitAll
      public String getMessage(Locale locale, String key, Object... arguments) {...}
      


      The method is annotated with @PermitAll, because this method will be called on a login-page. This worked fine on JBoss-4.0.5.GA.

      After updating to jboss-5.0.5.Beta2 I get an javax.ejb.EJBAccessException: Authentication failure just when getMessage(...) is called.

      Is this a bug? Should I use another annotation? Is additionally configuration needed?

      Thanks,
      Carsten



        • 2. Re: Problem with @PermitAll on jboss-5.0.0.Beta2
          Carsten Rudat Novice

          11:58:37,625 ERROR [STDERR] javax.ejb.EJBAccessException: Authentication failure
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSecurityException(Ejb3AuthenticationInterceptor.java:67)
          11:58:37,625 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:70)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
          11:58:37,625 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          11:58:37,625 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
          11:58:37,625 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
          11:58:37,625 ERROR [STDERR] at $Proxy104.getMessage(Unknown Source)
          11:58:37,625 ERROR [STDERR] at com.genloop.session.Projektabrechnung.Projektabrechnung_v13.messages.MessageResource.handleGetObject(MessageResource.java:239)
          11:58:37,625 ERROR [STDERR] at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
          11:58:37,625 ERROR [STDERR] at javax.el.ResourceBundleELResolver.getValue(ResourceBundleELResolver.java:45)
          11:58:37,625 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
          11:58:37,625 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
          11:58:37,625 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
          11:58:37,625 ERROR [STDERR] at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
          11:58:37,625 ERROR [STDERR] at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
          11:58:37,625 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
          11:58:37,625 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
          11:58:37,625 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          11:58:37,625 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          11:58:37,625 ERROR [STDERR] Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
          11:58:37,625 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
          11:58:37,625 ERROR [STDERR] at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
          11:58:37,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          11:58:37,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          11:58:37,625 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          11:58:37,625 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
          11:58:37,625 ERROR [STDERR] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
          11:58:37,625 ERROR [STDERR] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
          11:58:37,625 ERROR [STDERR] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
          11:58:37,625 ERROR [STDERR] at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
          11:58:37,625 ERROR [STDERR] at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
          11:58:37,625 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:509)
          11:58:37,625 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:443)
          11:58:37,625 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:345)
          11:58:37,625 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.authenticate(AuthenticationInterceptor.java:128)
          11:58:37,625 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:66)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
          11:58:37,625 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          11:58:37,625 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,625 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
          11:58:37,640 WARN [MessageResource] Access denied - potentially cause of JBoss Bug
          11:58:37,640 ERROR [STDERR] javax.ejb.EJBAccessException: Authentication failure
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSecurityException(Ejb3AuthenticationInterceptor.java:67)
          11:58:37,640 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:70)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
          11:58:37,640 ERROR [STDERR] at $Proxy104.getMessage(Unknown Source)
          11:58:37,640 ERROR [STDERR] at com.genloop.session.Projektabrechnung.Projektabrechnung_v13.messages.MessageResource.handleGetObject(MessageResource.java:239)
          11:58:37,640 ERROR [STDERR] at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
          11:58:37,640 ERROR [STDERR] at javax.el.ResourceBundleELResolver.getValue(ResourceBundleELResolver.java:45)
          11:58:37,640 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
          11:58:37,640 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
          11:58:37,640 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
          11:58:37,640 ERROR [STDERR] at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          11:58:37,640 ERROR [STDERR] Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
          11:58:37,640 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
          11:58:37,640 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          11:58:37,640 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          11:58:37,640 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          11:58:37,640 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:509)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:443)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:345)
          11:58:37,640 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.authenticate(AuthenticationInterceptor.java:128)
          11:58:37,640 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:66)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
          11:58:37,640 WARN [MessageResource] Access denied - potentially cause of JBoss Bug
          11:58:37,640 ERROR [STDERR] javax.ejb.EJBAccessException: Authentication failure
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSecurityException(Ejb3AuthenticationInterceptor.java:67)
          11:58:37,640 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:70)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
          11:58:37,640 ERROR [STDERR] at $Proxy104.getMessage(Unknown Source)
          11:58:37,640 ERROR [STDERR] at com.genloop.session.Projektabrechnung.Projektabrechnung_v13.messages.MessageResource.handleGetObject(MessageResource.java:239)
          11:58:37,640 ERROR [STDERR] at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
          11:58:37,640 ERROR [STDERR] at javax.el.ResourceBundleELResolver.getValue(ResourceBundleELResolver.java:45)
          11:58:37,640 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
          11:58:37,640 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
          11:58:37,640 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
          11:58:37,640 ERROR [STDERR] at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
          11:58:37,640 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          11:58:37,640 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          11:58:37,640 ERROR [STDERR] Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
          11:58:37,640 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
          11:58:37,640 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          11:58:37,640 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          11:58:37,640 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          11:58:37,640 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
          11:58:37,640 ERROR [STDERR] at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:509)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:443)
          11:58:37,640 ERROR [STDERR] at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:345)
          11:58:37,640 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.authenticate(AuthenticationInterceptor.java:128)
          11:58:37,640 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:66)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          11:58:37,640 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          11:58:37,640 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)

          • 3. Re: Problem with @PermitAll on jboss-5.0.0.Beta2
            Carsten Rudat Novice

            My code...

            @Override
            protected Object handleGetObject(String key) {
             ...
             try{
             message = this.languageSessionInterface.getMessage(this.getLocale(),
             key);
             }
             catch(javax.ejb.NoSuchEJBException e) {
             ...
             }
             catch(javax.ejb.EJBAccessException e) { // Exception occured here
             log.warn("Access denied - potentially cause of JBoss Bug");
             e.printStackTrace();
             }
            
            


            • 4. Re: Problem with @PermitAll on jboss-5.0.0.Beta2
              Carlo de Wolf Master

              Try setting an unauthenticatedPrincipal on your security domain.

              • 5. Re: Problem with @PermitAll on jboss-5.0.0.Beta2
                Carsten Rudat Novice

                That's it!!!


                Thanks for the help - good work wolfc!

                Carsten

                • 6. Re: Problem with @PermitAll on jboss-5.0.0.Beta2
                  Carlo de Wolf Master

                  See JavaEE 5.0 FR 3.4.3: Unauthenticated Users