[jbosstools-issues] [JBoss JIRA] (JBIDE-16427) Set Wildfly 8 java web services runtime to JBossWS/CXF from JAXWS RI
Joseph Hwang (JIRA)
issues at jboss.org
Tue Feb 4 22:56:28 EST 2014
[ https://issues.jboss.org/browse/JBIDE-16427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12941370#comment-12941370 ]
Joseph Hwang commented on JBIDE-16427:
--------------------------------------
For your information, I attach the sample zip file. This project contains 3 WS-security related Jar files(<WILDFLY-8.0.0.CR1-HOME>\modules\system\layers\base\org\apache\cxf\impl\main\cxf-rt-ws-security-2.7.7.jar ,
<WILDFLY-8.0.0.CR1-HOME>\modules\system\layers\base\org\apache\ws\security\main\wss4j-1.6.12.jar,
<WILDFLY-8.0.0.CR1-HOME>\modules\system\layers\base\org\jboss\ws\api\main\jbossws-api-1.0.2.Final.jar). I hope you to modify the appropriate pathes for your wildfly environment.
The client of this project throws the following exception :
ct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0075: Policy assertion "
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}
SymmetricBinding" was evaluated as "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0075: Policy assertion "
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}
Wss11" was evaluated as "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0075: Policy assertion "
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}
EncryptedParts" was evaluated as "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0075: Policy assertion "
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}
SignedParts" was evaluated as "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0075: Policy assertion "
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}
EncryptedParts" was evaluated as "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0075: Policy assertion "
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}
SignedParts" was evaluated as "UNKNOWN".
Oct 24, 2013 3:54:49 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives
WARNING: WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN".
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: com.aaa.ws.KeystorePasswordCallback from [Module "org.apache.cxf.impl:main" from local module loader @562ca0db (finder: local module finder @bf4b610 (roots: /home/jooho/Applications/JBoss/EAP/wildfly-8.0.0.Alpha4/modules,/home/jooho/Applications/JBoss/EAP/wildfly-8.0.0.Alpha4/modules/system/layers/base))]
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:129)
at com.sun.proxy.$Proxy23.sayHello(Unknown Source)
at test.WSClient.callMethd(WSClient.java:53)
at test.WSClient.main(WSClient.java:60)
com.sun.xml.internal.ws.policy class of the exception log is belonged to the JAXWS RI (most likely from the current JDK) not to JBoss WS/CXF. According to JBoss java web services team's advice, if JBossWS/CXF runtime is not specified, JAXWS RI is set as default Java web service runtime. So jbossws / cxf properties (e.g. SecurityConstants.SIGNATURE_PROPERTIES ) is not reflected at all.
And more, the attached project works well with JBoss EAP 6.1.1 and Kepler Eclipse JBossTools. I think the java web services runtime of JBoss EAP 6.1.1 seems to be set to JBossWS/CXF.
> Set Wildfly 8 java web services runtime to JBossWS/CXF from JAXWS RI
> --------------------------------------------------------------------
>
> Key: JBIDE-16427
> URL: https://issues.jboss.org/browse/JBIDE-16427
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: webservices
> Affects Versions: 4.1.1.Final
> Reporter: Joseph Hwang
> Assignee: Brian Fitzpatrick
> Fix For: 4.1.x, 4.2.x
>
>
> I implement Java Web Services with wildfly 8 and eclipse kepler jboss tools with the reference site https://docs.jboss.org/author/display/JBWS/WS-Security .
> The deployment and generated client codes works well. But the the problem is web services runtime is JAXWS RI, not JBossWS/CXF. The eclipse console show the following message,
>
> INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (default taskextensions/wssecurity}HelloWorldService from WSDL: http://localhost:8080/WSSHelloWorld/HelloWorld?wsdl
>
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean class is involved in <WILDFLY_HOME>\modules\system\layers\base\org\apache\cxf\impl\main\cxf-rt-core-2.7.7.jar file of JAXWS RI.
> So the configuration of web services mentioned in above reference site are useless, does not work at all.
> But the same project works well with JBoss EAP 6.1.1 and eclipse kepler jboss tools.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list