On Tue, May 5, 2009 at 11:46 PM, <[email protected]> wrote:
> Author: jgallimore
> Date: Tue May 5 21:46:37 2009
> New Revision: 771980
>
> URL: http://svn.apache.org/viewvc?rev=771980&view=rev
> Log:
> OPENEJB-1001 soap header patch from Jean-Louis Monteiro
...
> Modified:
> openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorImpl.java
> URL:
> http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorImpl.java?rev=771980&r1=771979&r2=771980&view=diff
> ==============================================================================
> ---
> openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorImpl.java
> (original)
> +++
> openejb/trunk/openejb3/examples/simple-webservice/src/main/java/org/superbiz/calculator/CalculatorImpl.java
> Tue May 5 21:46:37 2009
> @@ -16,8 +16,12 @@
> */
> package org.superbiz.calculator;
>
> +import java.util.Date;
> +
> import javax.ejb.Stateless;
> +import javax.jws.HandlerChain;
> import javax.jws.WebService;
> +import javax.xml.ws.Holder;
>
> /**
> * This is an EJB 3 style pojo stateless session bean
> @@ -32,6 +36,7 @@
> serviceName = "CalculatorWsService",
> targetNamespace = "http://superbiz.org/wsdl",
> endpointInterface = "org.superbiz.calculator.CalculatorWs")
> +...@handlerchain(file = "handler.xml")
> public class CalculatorImpl implements CalculatorWs, CalculatorLocal {
Hi,
I'm trying to build the latest sources and it fails with the following
exception (in examples\simple-webservice):
WARN - Jar not loaded. classpath.ear. Unable to load handler chain
file: handler.xml: null
org.apache.openejb.OpenEJBException: Unable to load handler chain
file: handler.xml: null
at
org.apache.openejb.config.WsDeployer.getHandlerChains(WsDeployer.java:445)
...
Caused by: java.lang.NullPointerException
at
org.apache.openejb.config.ReadDescriptors.readHandlerChains(ReadDescriptors.java:431)
at
org.apache.openejb.config.WsDeployer.getHandlerChains(WsDeployer.java:443)
... 42 more
The NPE is just a side effect of a missing handler.xml file. I'm
investigating it, but would appreciate some advice for easy fixing.
Dunno how the file should look like and what it should contains.
Jacek
--
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl