Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Component/s: rampart-policy
    • Labels:
      None
    • Environment:
      ubuntu

      Description

      I followed the README file and tested the sample05. it did not work correctly. following error message displayed in the client terminal.

      [copy] Copying 1 file to /home/asela/Rampart/rampart-1.5-RC1/samples/policy/build/client_repositories/sample05/modules
      [copy] Copying 1 file to /home/asela/Rampart/rampart-1.5-RC1/samples/policy/build/client_repositories/sample05/modules
      [copy] Copying 1 file to /home/asela/Rampart/rampart-1.5-RC1/samples/policy/build/temp_client
      [copy] Copying 1 file to /home/asela/Rampart/rampart-1.5-RC1/samples/policy/build/temp_client
      [java] log4j:WARN No appenders could be found for logger (org.apache.axis2.deployment.FileSystemConfigurator).
      [java] log4j:WARN Please initialize the log4j system properly.
      [java] Exception in thread "main" org.apache.rahas.TrustException: Error in obtaining token from : "http://localhost:8081/axis2/services/STS"
      [java] at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java:151)
      [java] at org.apache.rampart.samples.policy.sample05.Client.main(Unknown Source)
      [java] Caused by: org.apache.axis2.AxisFault: Connection refused
      [java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
      [java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
      [java] at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
      [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:389)
      [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)
      [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
      [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
      [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
      [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:539)
      [java] at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java:145)
      [java] ... 1 more
      [java] Caused by: java.net.ConnectException: Connection refused
      [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
      [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      [java] at java.net.Socket.connect(Socket.java:519)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
      [java] at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
      [java] at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
      [java] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
      [java] at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
      [java] at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
      [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
      [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
      [java] at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:550)
      [java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
      [java] ... 10 more
      [java] Java Result: 1

      1. sample05-fix.patch
        4 kB
        Thilina Buddhika

        Activity

          People

          • Assignee:
            Ruchith Udayanga Fernando
            Reporter:
            asela pathberiya
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development