4 Replies Latest reply on Jul 4, 2007 2:44 PM by Thiago Marafon

    JBoss Federated CR1 Connection Refused

    Thiago Marafon Newbie

      Hey
      I'm evaluating JBoss Federated CR1 but I'm getting the following error:

      08:17:55,354 ERROR [SSOAutoLogout] org.jboss.security.valve.SSOAutoLogout[/TesteSSOWeb]
      javax.servlet.ServletException: java.net.ConnectException: Connection refused: connect
      at org.jboss.security.valve.SSOTokenManager.invoke(SSOTokenManager.java:201)
      at org.jboss.security.valve.SSOAutoLogout.invoke(SSOAutoLogout.java:172)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11B
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      08:17:55,354 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request pr
      javax.servlet.ServletException: java.net.ConnectException: Connection refused: connect
      at org.jboss.security.valve.SSOAutoLogout.invoke(SSOAutoLogout.java:178)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11B
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)

      I'm not using LDAP, but a custom jdbc LoginProvider.
      The login module class is "org.jboss.security.idm.UsernameAndPasswordLoginModule".

      Can someone help me?
      Cheers,
      Thiago

        • 1. Re: JBoss Federated CR1 Connection Refused
          Thiago Marafon Newbie

          OK. Found the problem.
          The federation server port was wrong.

          But now I'm having another problem.
          The login works fine and the token is being created.
          But after the login, if I try to access another page, an error occurs:

          09:51:25,444 ERROR [SSOAutoLogout] org.jboss.security.valve.SSOAutoLogout[/TesteSSOWeb]
          org.jboss.security.saml.SSOException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
          at org.jboss.security.saml.JBossSingleSignOn.parseAuthResponse(JBossSingleSignOn.java:343)
          at org.jboss.security.sso.util.SSOUtil.getUsername(SSOUtil.java:119)
          at org.jboss.security.valve.SSOAutoLogout.invoke(SSOAutoLogout.java:116)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
          at org.opensaml.SAMLObject.fromStream(Unknown Source)
          at org.opensaml.SAMLResponse.(Unknown Source)
          at org.jboss.security.saml.JBossSingleSignOn.parseAuthResponse(JBossSingleSignOn.java:281)
          ... 13 more
          Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
          at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
          at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
          at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
          at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
          at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
          at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          at org.opensaml.XML$ParserPool.parse(Unknown Source)
          at org.opensaml.XML$ParserPool.parse(Unknown Source)
          ... 16 more
          09:51:25,459 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
          javax.servlet.ServletException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
          at org.jboss.security.valve.SSOAutoLogout.invoke(SSOAutoLogout.java:178)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          at java.lang.Thread.run(Thread.java:595)

          Any ideas?
          Thanks,
          Thiago

          • 2. Re: JBoss Federated CR1 Connection Refused
            Thiago Marafon Newbie

            Debugging the class SSOUtil, method getSSOToken(HttpServletRequest request,String tokenName), I found out that the token is actually divided in two cookies.

            [img]http://www.softplan.com.br/troca/token.JPG[/img]

            I'm using JBoss 4.0.5, tomcat 5.5.
            Help me please!
            Thiago