webservice_wssecurity QS does not work
--------------------------------------
Key: JBESB-1957
URL:
https://jira.jboss.org/jira/browse/JBESB-1957
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Examples
Affects Versions: 4.4
Environment: IR2/embedded - FC8, PostgreSQL
Reporter: Jiri Pechanec
Fix For: 4.4 CP1
There are two issues with the quickstart
Server side:
2008-08-26 08:10:12,308 ERROR
[org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener] JBoss Remoting Gateway
failed to synchronously deliver message to target service
[MyServiceCategory:MyWssService].
org.milyn.SmooksException: Unable to filter InputStream for target profile
[org.milyn.profile.Profile#default_profile].
at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:287)
at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:235)
at org.milyn.Smooks.filter(Smooks.java:288)
at org.milyn.Smooks.filter(Smooks.java:253)
at
org.jboss.soa.esb.services.security.auth.ws.WSSecurityInfoExtractor.extractSecurityInfo(WSSecurityInfoExtractor.java:92)
at
org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener$JBossRemotingMessageComposer.populateMessage(JBossRemotingGatewayListener.java:512)
at
org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener$JBossRemotingMessageComposer.populateMessage(JBossRemotingGatewayListener.java:479)
at
org.jboss.soa.esb.listeners.message.AbstractMessageComposer.compose(AbstractMessageComposer.java:76)
at
org.jboss.soa.esb.listeners.message.UncomposedMessageDeliveryAdapter.deliverSyncWithoutDecomposing(UncomposedMessageDeliveryAdapter.java:104)
at
org.jboss.soa.esb.listeners.message.UncomposedMessageDeliveryAdapter.deliverSync(UncomposedMessageDeliveryAdapter.java:86)
at
org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener.invoke(JBossRemotingGatewayListener.java:337)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:866)
at
org.jboss.remoting.transport.coyote.CoyoteInvoker.service(CoyoteInvoker.java:310)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.milyn.SmooksException: Failed to apply processing unit
[org.milyn.javabean.BeanInstancePopulator] to
[org:milyn:smooks:unknowndoc:/env:Envelope/env:Header/wsse:Security/wsse:BinarySecurityToken].
at
org.milyn.delivery.dom.SmooksDOMFilter.processVisitorException(SmooksDOMFilter.java:748)
at org.milyn.delivery.dom.SmooksDOMFilter.access$800(SmooksDOMFilter.java:134)
at
org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:733)
at
org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.process(SmooksDOMFilter.java:671)
at
org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.access$000(SmooksDOMFilter.java:625)
at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:352)
at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:285)
... 16 more
Caused by: org.milyn.cdr.SmooksConfigurationException: Error invoking bean setter method
[setKey] on bean instance class type [class
org.jboss.soa.esb.services.security.auth.ws.BinarySecurityToken].
at
org.milyn.javabean.BeanInstancePopulator.populateAndSetPropertyValue(BeanInstancePopulator.java:353)
at
org.milyn.javabean.BeanInstancePopulator.populateAndSetPropertyValue(BeanInstancePopulator.java:317)
at
org.milyn.javabean.BeanInstancePopulator.bindDomDataValue(BeanInstancePopulator.java:232)
at
org.milyn.javabean.BeanInstancePopulator.visitAfter(BeanInstancePopulator.java:178)
at
org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:727)
... 20 more
Caused by: java.lang.reflect.InvocationTargetException
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:585)
at
org.milyn.javabean.BeanInstancePopulator.populateAndSetPropertyValue(BeanInstancePopulator.java:337)
... 24 more
Caused by: java.lang.IllegalStateException: Could not create certificate:
at
org.jboss.soa.esb.services.security.auth.ws.BinarySecurityToken.setKey(BinarySecurityToken.java:90)
... 29 more
Caused by: java.security.cert.CertificateException:
//docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3 not
found
at java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:146)
at
org.jboss.soa.esb.services.security.auth.ws.BinarySecurityToken.setKey(BinarySecurityToken.java:85)
... 29 more
Caused by: java.security.NoSuchAlgorithmException:
//docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3
CertificateFactory not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
at java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:141)
... 30 more
Client side:
[java] Exception in thread "main" javax.xml.ws.WebServiceException:
java.io.IOException: Could not transmit message
[java] at
org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317)
[java] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255)
[java] at
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
[java] at
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
[java] at $Proxy12.echoUserType(Unknown Source)
[java] at
org.jboss.test.ws.jaxws.samples.wssecurity.client.WSSClient.main(WSSClient.java:46)
[java] Caused by: java.io.IOException: Could not transmit message
[java] at
org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:210)
[java] 08:10:12,325 ERROR [main][SOAPMessageUnMarshaller] Cannot unmarshall
SOAPMessage
[java] javax.xml.soap.SOAPException: Unsupported content type:
application/octet-stream
[java] at
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:248)
[java] at
org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:84)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:518)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:307)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
[java] at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
[java] at org.jboss.remoting.Client.invoke(Client.java:1634)
[java] at org.jboss.remoting.Client.invoke(Client.java:548)
[java] at
org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:189)
[java] at
org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
[java] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
[java] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
[java] at
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
[java] at
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
[java] at $Proxy12.echoUserType(Unknown Source)
[java] at
org.jboss.test.ws.jaxws.samples.wssecurity.client.WSSClient.main(WSSClient.java:46)
[java] 08:10:12,328 ERROR [main][SOAPFaultHelperJAXWS] SOAP request exception
[java] java.io.IOException: Could not transmit message
[java] at
org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:210)
[java] at
org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
[java] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
[java] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
[java] at
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
[java] at
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
[java] at $Proxy12.echoUserType(Unknown Source)
[java] at
org.jboss.test.ws.jaxws.samples.wssecurity.client.WSSClient.main(WSSClient.java:46)
[java] Caused by: org.jboss.remoting.CannotConnectException: Can not connect http
client invoker. javax.xml.soap.SOAPException: Unsupported content type:
application/octet-stream. Response: JBoss Remoting: Error occurred within target
application./500.
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
[java] at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
[java] at org.jboss.remoting.Client.invoke(Client.java:1634)
[java] at org.jboss.remoting.Client.invoke(Client.java:548)
[java] at
org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:189)
[java] ... 7 more
[java] Caused by: java.io.IOException: javax.xml.soap.SOAPException: Unsupported
content type: application/octet-stream
[java] at
org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:92)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:518)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:307)
[java] ... 12 more
[java] Caused by: javax.xml.soap.SOAPException: Unsupported content type:
application/octet-stream
[java] at
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:248)
[java] at
org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:84)
[java] ... 14 more
[java] at
org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
[java] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
[java] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
[java] ... 4 more
[java] Caused by: org.jboss.remoting.CannotConnectException: Can not connect http
client invoker. javax.xml.soap.SOAPException: Unsupported content type:
application/octet-stream. Response: JBoss Remoting: Error occurred within target
application./500.
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
[java] at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
[java] at org.jboss.remoting.Client.invoke(Client.java:1634)
[java] at org.jboss.remoting.Client.invoke(Client.java:548)
[java] at
org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:189)
[java] ... 7 more
[java] Caused by: java.io.IOException: javax.xml.soap.SOAPException: Unsupported
content type: application/octet-stream
[java] at
org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:92)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:518)
[java] at
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:307)
[java] ... 12 more
[java] Caused by: javax.xml.soap.SOAPException: Unsupported content type:
application/octet-stream
[java] at
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:248)
[java] at
org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:84)
[java] ... 14 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira