1 Reply Latest reply on Oct 21, 2004 9:43 AM by Wannes Sels

    override jboss jaas?

    Wannes Sels Newbie

      Hi everyone,

      We've been trying to deploy a third party web application ( http://ebxmlrr.sourceforge.net ) on jboss 3.2.3, together with our own web application which acts as a proxy between omar and client. Omar and proxy use jaas to authenticate, and we have a 'custom' LoginModuleManager and CallbackHandler. However when trying to authenticate we get a “javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required‚”.

      The problem is that instead of the custom classes, the jboss Security Extensions classes are used, which of course causes our attempts to fail. I've looked at the JBoss JAAS howto, however I'm not sure which parts apply to my problem.

      How can I tell JBoss to use custom classes instead of the JBoss defaults, only for that specific webapplication?

      Thanks in advance,

      Wannes Sels

        • 1. Re: override jboss jaas?
          Wannes Sels Newbie

          Stacktrace:

          14:04:25,007 INFO [ProxyConnectionManager] attempting logon for user urn:uuid:85428d8e-1bd5-473b-a8c8-b9d595f82728
          14:04:25,116 WARN [ProxyConnectionManager] Logon for user urn:uuid:85428d8e-1bd5-473b-a8c8-b9d595f82728 failed
          javax.xml.registry.JAXRException: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
           at org.freebxml.omar.client.xml.registry.ConnectionImpl.authenticate(ConnectionImpl.java:413)
           at com.xti.xml.registry.registryProxy.ProxyConnectionManager.logOn(ProxyConnectionManager.java:182)
           at com.xti.xml.registry.registryProxy.ebXMLrrImpl.logOn(ebXMLrrImpl.java:77)
           at com.xti.xml.registry.registryProxy.ebXMLrrIF_Tie.invoke_logOn(ebXMLrrIF_Tie.java:878)
           at com.xti.xml.registry.registryProxy.ebXMLrrIF_Tie.processingHook(ebXMLrrIF_Tie.java:1827)
           at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
           at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443)
           at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:86)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
           at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
           at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
           at java.lang.Thread.run(Thread.java:534)
          Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
           at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:154)
           at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:113)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
           at org.freebxml.omar.client.xml.registry.ConnectionImpl.authenticate(ConnectionImpl.java:399)
           ... 48 more
          14:04:25,241 ERROR [STDERR] Logon with user urn:uuid:85428d8e-1bd5-473b-a8c8-b9d595f82728 failed: javax.xml.registry.JAXRException: javax.se
          curity.auth.login.FailedLoginException: Password Incorrect/Password Required
          14:04:25,241 ERROR [STDERR] javax.xml.registry.JAXRException: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Re
          quired
          14:04:25,241 ERROR [STDERR] at org.freebxml.omar.client.xml.registry.ConnectionImpl.authenticate(ConnectionImpl.java:413)
          14:04:25,241 ERROR [STDERR] at com.xti.xml.registry.registryProxy.ProxyConnectionManager.logOn(ProxyConnectionManager.java:182)
          14:04:25,304 ERROR [STDERR] at com.xti.xml.registry.registryProxy.ebXMLrrImpl.logOn(ebXMLrrImpl.java:77)
          14:04:25,304 ERROR [STDERR] at com.xti.xml.registry.registryProxy.ebXMLrrIF_Tie.invoke_logOn(ebXMLrrIF_Tie.java:878)
          14:04:25,304 ERROR [STDERR] at com.xti.xml.registry.registryProxy.ebXMLrrIF_Tie.processingHook(ebXMLrrIF_Tie.java:1827)
          14:04:25,304 ERROR [STDERR] at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
          14:04:25,304 ERROR [STDERR] at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443)
          14:04:25,304 ERROR [STDERR] at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:86)
          14:04:25,304 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          14:04:25,304 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          43)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          14:04:25,304 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          43)
          14:04:25,304 ERROR [STDERR] at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          41)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          41)
          14:04:25,366 ERROR [STDERR] at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          41)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          43)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          41)
          14:04:25,366 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          41)
          14:04:25,429 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          41)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          41)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:6
          43)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
          14:04:25,429 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
          14:04:25,429 ERROR [STDERR] at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
          14:04:25,429 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
          14:04:25,429 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549
          )
          14:04:25,491 ERROR [STDERR] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
          14:04:25,491 ERROR [STDERR] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
          14:04:25,491 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
          14:04:25,491 ERROR [STDERR] Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
          14:04:25,491 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:154)
          14:04:25,491 ERROR [STDERR] at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:113)
          14:04:25,491 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          14:04:25,491 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          14:04:25,491 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          14:04:25,491 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
          14:04:25,491 ERROR [STDERR] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
          14:04:25,491 ERROR [STDERR] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
          14:04:25,491 ERROR [STDERR] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
          14:04:25,491 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
          14:04:25,491 ERROR [STDERR] at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
          14:04:25,491 ERROR [STDERR] at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
          14:04:25,491 ERROR [STDERR] at org.freebxml.omar.client.xml.registry.ConnectionImpl.authenticate(ConnectionImpl.java:399)