RE: Null EndpointDescription Parameter in JAXWSMessageReceiver
agree with brian- place this deployer in ./WEB-INF/axis2.xml restart axis copy your .class file to AXIS2_HOME/repository/pojo HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. To: axis-user@ws.apache.org Subject: Re: Null EndpointDescription Parameter in JAXWSMessageReceiver From: [EMAIL PROTECTED] Date: Fri, 19 Sep 2008 17:43:48 +0100 Hi Ben, I am not sure if this still works. You might be better off repackaging your service as a jar file, and dropping it in your axis2_home/repository/servicejars directory. The JAXWSDeployer will examine all jars within that directory and deploy those classes that have JAX-WS annotations which identify them as web services. You won't need a service.xml file. Cheers Brian DePradine Web Services Development IBM Hursley External +44 (0) 1962 816319 Internal 246319 If you can't find the time to do it right the first time, where will you find the time to do it again? "Ben Reif" <[EMAIL PROTECTED]> wrote on 16/09/2008 21:08:16: > I am using Axis2 1.4 and I have JAXWS Web Services deployed in *.aar > files. I have the JAXWSMessageReceiver configured in the service. > xml, but get an exception because the EndpointDescription parameter > in the service is null and it tries to do this: > > Parameter endpointDescParam = > service.getParameter(EndpointDescription. > AXIS_SERVICE_PARAMETER); > if (endpointDescParam == null) { > throw new RuntimeException(Messages.getMessage( > "JAXWSMessageReceiverNoServiceClass")); > } > > Does anyone know how this gets set? It seems like the only place > I've found is in EndpointDescriptionImpl.addToAxisService(), but > what do I need to do to get this logic to be called? > > Thanks, > Ben Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU _ See how Windows Mobile brings your life together—at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
Re: Null EndpointDescription Parameter in JAXWSMessageReceiver
Hi Ben, I am not sure if this still works. You might be better off repackaging your service as a jar file, and dropping it in your axis2_home/repository/servicejars directory. The JAXWSDeployer will examine all jars within that directory and deploy those classes that have JAX-WS annotations which identify them as web services. You won't need a service.xml file. Cheers Brian DePradine Web Services Development IBM Hursley External +44 (0) 1962 816319 Internal 246319 If you can't find the time to do it right the first time, where will you find the time to do it again? "Ben Reif" <[EMAIL PROTECTED]> wrote on 16/09/2008 21:08:16: > I am using Axis2 1.4 and I have JAXWS Web Services deployed in *.aar > files. I have the JAXWSMessageReceiver configured in the service. > xml, but get an exception because the EndpointDescription parameter > in the service is null and it tries to do this: > > Parameter endpointDescParam = > service.getParameter(EndpointDescription. > AXIS_SERVICE_PARAMETER); > if (endpointDescParam == null) { > throw new RuntimeException(Messages.getMessage( > "JAXWSMessageReceiverNoServiceClass")); > } > > Does anyone know how this gets set? It seems like the only place > I've found is in EndpointDescriptionImpl.addToAxisService(), but > what do I need to do to get this logic to be called? > > Thanks, > Ben Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Null EndpointDescription Parameter in JAXWSMessageReceiver
I am using Axis2 1.4 and I have JAXWS Web Services deployed in *.aar files. I have the JAXWSMessageReceiver configured in the service.xml, but get an exception because the EndpointDescription parameter in the service is null and it tries to do this: Parameter endpointDescParam = service.getParameter(EndpointDescription.* AXIS_SERVICE_PARAMETER*); *if* (endpointDescParam == *null*) { *throw* *new* RuntimeException(Messages.*getMessage*( "JAXWSMessageReceiverNoServiceClass")); } Does anyone know how this gets set? It seems like the only place I've found is in EndpointDescriptionImpl.addToAxisService(), but what do I need to do to get this logic to be called? Thanks, Ben