JAX-WS client exception whilerunning from command prompt - Websphere

This is a discussion on JAX-WS client exception whilerunning from command prompt - Websphere ; 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: JAX-WS client exception whilerunning from command prompt

  1. JAX-WS client exception whilerunning from command prompt

    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.SoapSecurityExceptio n: CWWSS7049E: Exception received while loading the web services security custom bindings::
    java.lang.NullPointerException: null
    at org.apache.axis2.jaxws.ExceptionFactory.createWebS erviceException(ExceptionFactory.java:180)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebSer viceException(ExceptionFactory.java:79)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebSer viceException(ExceptionFactory.java:134)
    at org.apache.axis2.jaxws.core.controller.AxisInvocat ionController.execute(AxisInvocationController.jav a:596)
    at org.apache.axis2.jaxws.core.controller.AxisInvocat ionController.doInvoke(AxisInvocationController.ja va:111)
    at org.apache.axis2.jaxws.core.controller.InvocationC ontroller.invoke(InvocationController.java:110)
    at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHand ler.invokeSEIMethod(JAXWSProxyHandler.java:275)
    at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHand ler.invoke(JAXWSProxyHandler.java:147)
    at $Proxy34.sendMessage(Unknown Source)
    at greetingmediation.sendgreeting.binding.Export_Send GreetingHttpPortProxy.sendMessage(Export_SendGreet ingHttpPortProxy.java:87)
    at ws.test.Test.main(Test.java:16)
    Caused by: com.ibm.wsspi.wssecurity.core.SoapSecurityExceptio n: CWWSS7049E: Exception received while loading the web services security custom bindings:: java.lang.NullPointerException: null
    at com.ibm.wsspi.wssecurity.core.SoapSecurityExceptio n.format(SoapSecurityException.java:67)
    at com.ibm.ws.wssecurity.handler.WSSecurityBindingLoa derImpl.loadCustom(WSSecurityBindingLoaderImpl.jav a:389)
    at com.ibm.ws.policyset.runtime.BindingAggregator.get CustomBinding(BindingAggregator.java:154)
    at com.ibm.ws.policyset.runtime.PolicySetAttachmentsI mpl.getPSConfig(PolicySetAttachmentsImpl.java:241)
    at com.ibm.ws.policyset.runtime.PolicySetAttachmentsI mpl.getPolicySet(PolicySetAttachmentsImpl.java:133 )
    at com.ibm.ws.policyset.runtime.PolicySetAttachmentsI mpl.getPolicySet(PolicySetAttachmentsImpl.java:100 )
    at com.ibm.ws.websvcs.deployment.WASAxis2PolicySetCon figurator.associatePolicySets(WASAxis2PolicySetCon figurator.java:253)
    at org.apache.axis2.jaxws.ClientConfigurationFactory. completeAxis2Configuration(ClientConfigurationFact ory.java:322)
    at org.apache.axis2.jaxws.description.impl.EndpointDe scriptionImpl. (EndpointDescriptionImpl.java:235)
    at org.apache.axis2.jaxws.description.impl.EndpointDe scriptionImpl. (EndpointDescriptionImpl.java:189)
    at org.apache.axis2.jaxws.description.impl.ServiceDes criptionImpl.updateEndpointDescription(ServiceDesc riptionImpl.java:317)
    at org.apache.axis2.jaxws.description.impl.Descriptio nFactoryImpl.updateEndpoint(DescriptionFactoryImpl .java:241)
    at org.apache.axis2.jaxws.description.DescriptionFact ory.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.ExportSendG reetingHttpService.getExportSendGreetingHttpPort(E xportSendGreetingHttpService.java:48)
    at greetingmediation.sendgreeting.binding.Export_Send GreetingHttpPortProxy$Descriptor.initCommon(Export _SendGreetingHttpPortProxy.java:33)
    at greetingmediation.sendgreeting.binding.Export_Send GreetingHttpPortProxy$Descriptor. (Export_SendGreetingHttpPortProxy.java:23)
    at greetingmediation.sendgreeting.binding.Export_Send GreetingHttpPortProxy.(Export_SendGreetingHttpPort Proxy.java:75)


    Request you to let me know your inputs on this.

    Thanks,
    Pavan.

  2. Re: JAX-WS client exception whilerunning from command prompt

    This is not my area of expertise, but this looks like it might be a product defect.

+ Reply to Thread