Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error messages when using mutual authentication with JAX-WS

843811Sep 18 2006
I have a web service deployed to AS9 that is working (tested using Admin Console). Is it running on a secure port, and the web.xml file specifies CLIENT-CERT authentication and a transport guarantee of CONFIDENTIAL. I have created a client certificate and imported it into the server's truststore. When I run the client application, I get the following error that I cannot decode. Can someone help?
bpp-run-app-client:
     [echo] running application client container.
     [exec] Retrieving the port from the following service: helloservice.endpoint.HelloService@64160e
     [exec] Invoking the sayHello operation on the port.
     [exec] Sep 18, 2006 1:30:56 PM com.sun.xml.messaging.saaj.soap.MessageImpl identifyCo
ntentType
     [exec] SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a  SOAP message
     [exec] javax.xml.ws.WebServiceException: Couldn't create SOAP message due to exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/plain. Is this an error message instead of a SOAP response?
     [exec]     at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(SOAPConnectionUti
l.java:81)
     [exec]     at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toSOAPMessage(SOAPXM
LDecoder.java:100)
     [exec]     at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPM
essageDispatcher.java:438)
     [exec]     at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMe
ssageDispatcher.java:258)
     [exec]     at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMess
ageDispatcher.java:137)
     [exec]     at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.ja
va:84)
     [exec]     at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(En
dpointIFInvocationHandler.java:172)
     [exec]     at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvo
cationHandler.java:106)
     [exec]     at $Proxy18.sayHello(Unknown Source)
     [exec]     at simpleclient.HelloClient.doTest(HelloClient.java:36)
     [exec]     at simpleclient.HelloClient.main(HelloClient.java:17)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39)
     [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl.java:25)
     [exec]     at java.lang.reflect.Method.invoke(Method.java:585)
     [exec]     at  com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:232)

     [exec]     at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModul
eSupport.java:329)
     [exec]     at com.sun.enterprise.appclient.Main.main(Main.java:180)
     [exec] Caused by: Couldn't create SOAP message due to exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/plain. Is this an error message instead of a SOAP response?
     [exec]     at com.sun.xml.ws.util.SOAPUtil.createMessage(SOAPUtil.java:152)
     [exec]     at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(SOAPConnectionUti
l.java:76)
     [exec]     ... 17 more
     [exec] Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:
text/plain. Is this an error message instead of a SOAP response?
     [exec]     at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Message
Impl.java:581)
     [exec]     at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:254
)
     [exec]     at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1
Impl.java:68)
     [exec]     at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.create
Message(SOAPMessageFactory1_1Impl.java:62)
     [exec]     at com.sun.xml.ws.util.SOAPUtil.createMessage(SOAPUtil.java:150)
     [exec]     ... 18 more
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2006
Added on Sep 18 2006
0 comments
299 views