Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JAX-WS client exception whilerunning from command prompt

33 views
Skip to first unread message

pava...@gmail.com

unread,
Sep 23, 2009, 1:24:35 AM9/23/09
to
Hi,

I've developed a web service and a client based on JAX-WS.

I've implemented WS Security both on the service and on the client using Rational Application Developer(for client)v7.5.3 and Websphere Integration Developer(for Service) V6.2

Things work fine when i run the client from RAD but when i run the same client from the command prompt i run into issues.

I've added the jars needed.But not sure if i missed anything.

The exception is thrown when loading the security custom bindings.I Kept all the policy files in the classpath too

Am i missing something or am i doing something which is not correct.

Appreciate any kind of help and pointers on this issue.

Below is the exception stack trace:
========================================
javax.xml.ws.WebServiceException: com.ibm.wsspi.wssecurity.core.SoapSecurityException: CWWSS7049E: Exception received while loading the web services security custom bindings::
java.lang.NullPointerException: null
at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:180)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:134)
at org.apache.axis2.jaxws.core.controller.AxisInvocationController.execute(AxisInvocationController.java:596)
at org.apache.axis2.jaxws.core.controller.AxisInvocationController.doInvoke(AxisInvocationController.java:111)
at org.apache.axis2.jaxws.core.controller.InvocationController.invoke(InvocationController.java:110)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:275)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:147)
at $Proxy34.sendMessage(Unknown Source)
at greetingmediation.sendgreeting.binding.Export_SendGreetingHttpPortProxy.sendMessage(Export_SendGreetingHttpPortProxy.java:87)
at ws.test.Test.main(Test.java:16)
Caused by: com.ibm.wsspi.wssecurity.core.SoapSecurityException: CWWSS7049E: Exception received while loading the web services security custom bindings:: java.lang.NullPointerException: null
at com.ibm.wsspi.wssecurity.core.SoapSecurityException.format(SoapSecurityException.java:67)
at com.ibm.ws.wssecurity.handler.WSSecurityBindingLoaderImpl.loadCustom(WSSecurityBindingLoaderImpl.java:389)
at com.ibm.ws.policyset.runtime.BindingAggregator.getCustomBinding(BindingAggregator.java:154)
at com.ibm.ws.policyset.runtime.PolicySetAttachmentsImpl.getPSConfig(PolicySetAttachmentsImpl.java:241)
at com.ibm.ws.policyset.runtime.PolicySetAttachmentsImpl.getPolicySet(PolicySetAttachmentsImpl.java:133)
at com.ibm.ws.policyset.runtime.PolicySetAttachmentsImpl.getPolicySet(PolicySetAttachmentsImpl.java:100)
at com.ibm.ws.websvcs.deployment.WASAxis2PolicySetConfigurator.associatePolicySets(WASAxis2PolicySetConfigurator.java:253)
at org.apache.axis2.jaxws.ClientConfigurationFactory.completeAxis2Configuration(ClientConfigurationFactory.java:322)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl. (EndpointDescriptionImpl.java:235)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl. (EndpointDescriptionImpl.java:189)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:317)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:241)
at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:102)
at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:243)
at javax.xml.ws.Service.getPort(Service.java:94)
at greetingmediation.sendgreeting.binding.ExportSendGreetingHttpService.getExportSendGreetingHttpPort(ExportSendGreetingHttpService.java:48)
at greetingmediation.sendgreeting.binding.Export_SendGreetingHttpPortProxy$Descriptor.initCommon(Export_SendGreetingHttpPortProxy.java:33)
at greetingmediation.sendgreeting.binding.Export_SendGreetingHttpPortProxy$Descriptor. (Export_SendGreetingHttpPortProxy.java:23)
at greetingmediation.sendgreeting.binding.Export_SendGreetingHttpPortProxy.(Export_SendGreetingHttpPortProxy.java:75)


Request you to let me know your inputs on this.

Thanks,
Pavan.

bkail

unread,
Sep 29, 2009, 1:56:16 PM9/29/09
to
This is not my area of expertise, but this looks like it might be a product defect.
0 new messages