Hi Tulika, There is nothing obviously wrong with your configuration. Could you either turn logging to FINE + attach it to this mailing list, or else create a sample project that reproduces the error + create a JIRA with it?
Colm. On Tue, Jul 9, 2013 at 6:08 PM, tulika <[email protected]> wrote: > My web service and clietn are on the same tomcat server . The only log I am > getting is following in > eclipse console is : > > > Jul 9, 2013 10:59:38 PM > org.springframework.context.support.AbstractApplicationContext > prepareRefresh > INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@6ecf829d: > startup date [Tue Jul 09 22:59:38 IST 2013]; root of context hierarchy > Jul 9, 2013 10:59:38 PM org.apache.cxf.bus.spring.BusApplicationContext > getConfigResources > INFO: Loaded configuration file cxf.xml. > Jul 9, 2013 10:59:38 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource [cxf.xml] > Jul 9, 2013 10:59:38 PM > org.springframework.beans.factory.support.DefaultListableBeanFactory > preInstantiateSingletons > INFO: Pre-instantiating singletons in > > org.springframework.beans.factory.support.DefaultListableBeanFactory@7c83d8be > : > defining beans > > [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl,{ > http://www.example.org/contract/DoubleIt}DoubleItPort.jaxws-client.proxyFactory,{http://www.example.org/contract/DoubleIt}DoubleItPort.jaxws-client,myPasswordCallback > ]; > root of factory hierarchy > Jul 9, 2013 10:59:39 PM > org.apache.cxf.service.factory.ReflectionServiceFactoryBean > buildServiceFromWSDL > INFO: Creating Service > {http://www.example.org/contract/DoubleIt}DoubleItService from WSDL: > https://localhost:8443/CXFWebService/services/DoubleItPort?wsdl > Using URL: https://localhost:8443/CXFWebService/services/DoubleItPort > Invoking doubleIt... > Jul 9, 2013 11:01:09 PM > org.apache.cxf.ws.security.policy.builders.HttpsTokenBuilder build > WARNING: sp:HttpsToken/wsp:Policy should have a value! > Jul 9, 2013 11:01:11 PM org.apache.cxf.ws.addressing.soap.MAPCodec > restoreExchange > WARNING: Response message does not contain WS-Addressing properties. Not > correlating response. > Jul 9, 2013 11:01:11 PM org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor > handleMessage > WARNING: Request does not contain Security header, but it's a fault. > Jul 9, 2013 11:01:11 PM org.apache.cxf.ws.addressing.ContextUtils > retrieveMAPs > WARNING: WS-Addressing - failed to retrieve Message Addressing Properties > from context > Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: General > security error (WSSecurityEngine: No password callback supplied) > at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156) > at $Proxy27.doubleIt(Unknown Source) > at > > org.example.contract.doubleit.DoubleItPortType_DoubleItPort_Client.main(DoubleItPortType_DoubleItPort_Client.java:89) > Caused by: org.apache.cxf.binding.soap.SoapFault: General security error > (WSSecurityEngine: No password callback supplied) > at > > org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84) > at > > org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51) > at > > org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40) > at > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) > at > > org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113) > at > > org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69) > at > > org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34) > at > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) > at > org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:800) > at > > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1704) > at > > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1537) > at > > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1445) > at > org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) > at > org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:660) > at > > org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) > at > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) > at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319) > at > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) > at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) > ... 2 more > > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/UserName-token-security-on-CXF-General-security-error-WSSecurityEngine-No-password-callback-supplied-tp5730451p5730511.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
