[jbosstools-issues] [JBoss JIRA] (JBIDE-16427) Set Wildfly 8 java web services runtime to JBossWS/CXF from JAXWS RI

Brian Fitzpatrick (JIRA) issues at jboss.org
Thu Feb 6 14:06:28 EST 2014


     [ https://issues.jboss.org/browse/JBIDE-16427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fitzpatrick updated JBIDE-16427:
--------------------------------------

    Attachment: wss-mvn.zip


Mavenized version (not very pretty) of your project that pulls in all the dependencies. The client now hits this problem, which we are looking into:

{code}
log4j:WARN No appenders could be found for logger (org.apache.cxf.common.logging.LogUtils).
log4j:WARN Please initialize the log4j system properly.
java.lang.NullPointerException
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)
	at org.apache.cxf.jaxws.context.WrappedMessageContext.put(WrappedMessageContext.java:466)
	at org.apache.cxf.jaxws.context.WrappedMessageContext.put(WrappedMessageContext.java:416)
	at org.apache.cxf.jaxws.context.WrappedMessageContext.put(WrappedMessageContext.java:46)
	at com.aaa.wss.WSClient.<init>(WSClient.java:30)
	at com.aaa.wss.WSClient.main(WSClient.java:55)
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: A encryption username needs to be declared.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157)
	at $Proxy32.sayHello(Unknown Source)
	at com.aaa.wss.WSClient.callMethd(WSClient.java:50)
	at com.aaa.wss.WSClient.main(WSClient.java:57)
Caused by: org.apache.cxf.ws.policy.PolicyException: A encryption username needs to be declared.
	at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.policyNotAsserted(AbstractBindingBuilder.java:315)
	at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.setEncryptionUser(AbstractBindingBuilder.java:1631)
	at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.getEncryptedKeyBuilder(AbstractBindingBuilder.java:1453)
	at org.apache.cxf.ws.security.wss4j.policyhandlers.SymmetricBindingHandler.setupEncryptedKey(SymmetricBindingHandler.java:856)
	at org.apache.cxf.ws.security.wss4j.policyhandlers.SymmetricBindingHandler.doSignBeforeEncrypt(SymmetricBindingHandler.java:298)
	at org.apache.cxf.ws.security.wss4j.policyhandlers.SymmetricBindingHandler.handleBinding(SymmetricBindingHandler.java:124)
	at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$PolicyBasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutInterceptor.java:173)
	at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$PolicyBasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutInterceptor.java:90)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:565)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
	... 3 more
{code}
                
> 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
>
>         Attachments: wss-mvn.zip, WSSHelloWorld.zip
>
>
> 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