0

请帮忙。我在构建服务器端壁垒服务时遇到了一个问题。我使用 Axis2 服务器接收 Rampart 客户端请求。我在 Eclipse 轴客户端中得到了不好的响应。服务器端也在本地。请参阅下面的完整堆栈跟踪(log4j)。我只能看到 JuiCEProviderOpenSSL 的 ClassNotFound 异常,但有人说我可以忽略它。而且我怀疑粗体部分会导致此问题,因为之后构建器开始创建故障消息。所以,这让我发疯。我对这个问题一无所知。请帮我。谢谢。还有,原谅我的格式,第一次在这里问。TT

axis2.log - log4j

2012-05-22 18:00:52,585 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter  - Calling MTOMXMLStreamWriter.flush
2012-05-22 18:00:52,585 [HttpConnection-8080-1] DEBUG org.apache.rampart.MESSAGE  - *********************** RampartReceiver received 
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-984C299ACFD3E6AABA13376808432101">MIIDSzCCAjOgAwIBAgIEeiVTTzANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJDTjELMAkGA1UECBMCTE4xCzAJBgNVBAcTAkRMMQ0wCwYDVQQKEwRDaXRpMQ8wDQYDVQQLEwZKUFRlY2gxDTALBgNVBAMTBFN0YXIwHhcNMTIwNTE3MDQzNjQxWhcNMTIwODE1MDQzNjQxWjBWMQswCQYDVQQGEwJDTjELMAkGA1UECBMCTE4xCzAJBgNVBAcTAkRMMQ0wCwYDVQQKEwRDaXRpMQ8wDQYDVQQLEwZKUFRlY2gxDTALBgNVBAMTBFN0YXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbDDrpjwITkzxFzNkGV7W5SHTMuNdw+miscGymTDAjJvQZU/FXScu5TtnqQzgef+FDE+Nuu4olMUAB1dYx3r8vucnNRo3i36N/mxA4lD3Y0A0JM1r0lCzxaYQPAaIw7FxQ2Tu7Vmso9b9Vpp4DrDL7U6Si7JlRB7RmzuEViWnvVfgK0cRN3KpjfaJc3Zpdj549dGLpVA/g2feXhEvpTxoCHfRuqUHGjbdHN0dRlmDk8KMi8MBuH+kivcKoWZAsQL8VCJwBgOg232v4ZcodOLyHUfA0eeKK/dht1NhOavlE8Mn/Lq4e8+B7RE8n4bq7wtYshXO02Vc2rSodqWHecm4TAgMBAAGjITAfMB0GA1UdDgQWBBS614JqGc6WsHsY8ZbC9p8R/38sHjANBgkqhkiG9w0BAQUFAAOCAQEALFwI0+ARt4BoCZDEjjBZjvMerCLOXirx3p5e1CYv5R8UTU+l7kTssQpQpDQuxVsyHuClnORyBadhuBKO78Ztq5MyPTBSf4tCxvtRd6ghM8B1FB7aopkHoP6CI016IMrVEfka+OVELrphOxyAeQU0/IOsT6zOWOzN2uUTvzqTYOtP+hI1DL9pYVIr+2R+4Qr5NuVv0Wi+nhFJTohpWRKZy7u27j07SHJ4rOfsaquNz1PohgbMDWULPLoivdUYEFgvDzolk/veqJ0ypqt3iIdQRSPfaIL6/eSZINmrjHvFo4EBi8s7zi12J3iFFpahVOoTZrb2RzC1UtWtfgkLfQWDsQ==</wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<ds:Reference URI="#Id-6349096">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>7Fk2H6qKHzE7LpXN0BbMnULTuZk=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
c4XDzwPEh58ungiFCp7QaF+LvTjRqW3gE5iiLwWWJiq+AUVyN6l4zN2zRmpWhnAoNr9ecP48ZjkS
pk7LY8DsjEXLQ6j4mroM+fm9vuEoeXlVUmSLezC0cByVBGYDHNxLFC5hpVGYAhfC4gOqZBhmtT3U
ZNGn/5ZjR1aQowUrveCaBQ8Zoz8YjUnMsmdgDK9VD3G2gPwJ3Hujb4TicVP8jN9/FNn7jPPKFRDr
cqjvyApVEj1xn/VcpYlnpJxWG2/Jv9pLNTCBBnHE4gGXRjae5ZznLLYESeEaYRNYWqSKz51F28fU
+Imkj7qS06e8WHcxh2SnKat1fVwM6Agj4D5PnQ==
</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-984C299ACFD3E6AABA13376808432422">
<wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-984C299ACFD3E6AABA13376808432423"><wsse:Reference URI="#CertId-984C299ACFD3E6AABA13376808432101" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" /></wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature></wsse:Security></soapenv:Header><soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id-6349096"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>123</s2></ns1:concat></soapenv:Body></soapenv:Envelope>

2012-05-22 18:00:53,570 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSConfig  - The provider BC was added at position: 2
2012-05-22 18:00:53,570 [HttpConnection-8080-1] DEBUG org.apache.ws.security.util.Loader  - org.apache.security.juice.provider.JuiCEProviderOpenSSL
java.lang.ClassNotFoundException: org.apache.security.juice.provider.JuiCEProviderOpenSSL
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.apache.ws.security.util.Loader.loadClass(Loader.java:185)
    at org.apache.ws.security.WSSConfig.loadProvider(WSSConfig.java:605)
    at org.apache.ws.security.WSSConfig.addJceProvider(WSSConfig.java:662)
    at org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:306)
    at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:324)
    at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:333)
    at org.apache.ws.security.WSSConfig.getDefaultWSConfig(WSSConfig.java:342)
    at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:345)
    at org.apache.rampart.RampartEngine.process(RampartEngine.java:78)
    at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
    at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
    at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
    at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:296)
    at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
    at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
    at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
2012-05-22 18:00:53,585 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSConfig  - The provider JuiCE could not be added: org.apache.security.juice.provider.JuiCEProviderOpenSSL
2012-05-22 18:00:53,585 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.builder.StAXOMBuilder  - START_ELEMENT: 
2012-05-22 18:00:53,585 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.builder.StAXOMBuilder  -   QName: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security

2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil  - Loading Signature crypto
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.RampartEngine  - Processing security header in normal path
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil  - Loading encryption crypto
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil  - Trying the signature crypto info
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil  - Loading Signature crypto
**2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSecurityEngine  - enter processSecurityHeader()
2012-05-22 18:00:53,648 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSecurityEngine  - Processing WS-Security header for '' actor.
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options  - getAction (null) from org.apache.axis2.client.Options@12cfd62
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext  - Old WSAAction is (null)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext  - New WSAAction is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options  - setAction Old action is (null)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options  - setAction New action is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference  - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference  - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder  - start createFaultEnvelope()**
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder  - faultCode == null
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder  - context.isSOAP11() = true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder  - End createFaultEnvelope()
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper  - [MessageContext: logID=19f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] isFaultRedirected: FaultTo is null. Returning isReplyRedirected
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper  - [MessageContext: logID=19f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] isReplyRedirected: ReplyTo is null. Returning false
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.engine.AxisEngine  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] sendFault:null
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking pre-condition for Phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.handlers.addressing.AddressingOutHandler  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Addressing is disabled. Not adding WS-Addressing headers.
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking post-conditions for phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking pre-condition for Phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'SecurityOutHandler' in Phase 'Security'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'Apache Rampart outflow handler' in Phase 'Security'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking post-conditions for phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference  - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options  - getAction (http://www.w3.org/2005/08/addressing/soap/fault) from org.apache.axis2.client.Options@12cfd62
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext  - SoapAction is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.CommonsHTTPTransportSender  - SOAP Action from messageContext : (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.OMOutputFormat  - Start getContentType: OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=null ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.OMOutputFormat  - getContentType= {text/xml}   OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter  - contentType from the OMOutputFormat =text/xml
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter  - contentType returned =text/xml; charset=UTF-8
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter  - start writeTo()
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter  -   preserve=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter  -   isOptimized=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter  -   isDoingSWA=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter  - Creating MTOMXMLStreamWriter
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter  - OutputStream =class org.apache.axis2.transport.http.server.AxisHttpResponseImpl$AutoCommitOutputStream
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter  - OMFormat = OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.MTOMXMLStreamWriter  - Call Stack =DEBUG_FRAME = org.apache.axiom.om.util.CommonUtils.callStackToString(CommonUtils.java:78)
    DEBUG_FRAME = org.apache.axiom.om.impl.MTOMXMLStreamWriter.<init>(MTOMXMLStreamWriter.java:100)
    DEBUG_FRAME = org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:191)
    DEBUG_FRAME = org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
    DEBUG_FRAME = org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:364)
    DEBUG_FRAME = org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:241)
    DEBUG_FRAME = org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:526)
    DEBUG_FRAME = org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:320)
    DEBUG_FRAME = org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
    DEBUG_FRAME = org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
    DEBUG_FRAME = java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    DEBUG_FRAME = java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    DEBUG_FRAME = java.lang.Thread.run(Thread.java:595)

2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.util.StAXUtils  - XMLStreamWriter is org.apache.axiom.util.stax.dialect.WoodstoxStreamWriterWrapper
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl  - Could not close builder or parser due to:
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl  - builder is null
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter  - Calling MTOMXMLStreamWriter.flush
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire  - << HTTP/1.1 500 Internal server error
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire  - << Date: Tue, 22 May 2012 10:00:53 GMT
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire  - << Server: Simple-Server/1.1
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire  - << Transfer-Encoding: chunked
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire  - << Content-Type: text/xml; charset=UTF-8
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter  - close
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter  - end writeTo()
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.TransportUtils  - Did not find RequestResponseTransport cannot set response written
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() in Phase "Security"
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'Apache Rampart outflow handler' in Phase 'Security'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'SecurityOutHandler' in Phase 'Security'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() in Phase "MessageOut"
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'AddressingOutHandler' in Phase 'MessageOut'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.AxisHttpService  - Remote address of the connection : 127.0.0.1
4

2 回答 2

0

我终于发现了这个问题,但是,我认为我的解决方案不能帮助其他人,因为我犯了一个非常愚蠢的错误。

我认为我解决问题的方式更有价值。我调试了源代码并跟踪了每一步以找出异常的位置。

接下来,我发现 Rampart 无法从我放置 Rampart 配置的 services.xml 中获取安全配置​​。

发生错误是因为我错过了xmlns='..../rampart/policy'公告。因此,代码无法将它们识别为RampartConfig对象。

于 2012-05-25T07:37:35.867 回答
0

如果您也附上了服务政策,那就太好了。您的政策中使用的算法套装是什么。JCE 需要在许多加密操作中安装在您的 JVM 中,特别是在需要长度超过 128 位的密钥的情况下。请参阅我的博客http://sureshatt.blogspot.com/2012/03/java-cryptography-extension-jce.html,安装 JCE 并再次尝试该服务。

于 2012-06-28T18:23:54.180 回答