Le 14 août 2016 23:14, "vnalla" <v_na...@hotmail.com> a écrit :
>
> Hi,
>
> Looks like I am missing something. and getting the following exception
when
> I deploy:
>
> java.lang.NullPointerException: name cannot be null
>
> ...
>
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> java.lang.NullPointerException: name cannot be null
>         at
>
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1269)
>         at
>
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1115)
>         at
>
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
>         at
>
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
>         at
>
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5076)
>         at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
>
> Here is what I did.
>
> 1) Added META-INF/context.xml with the follwing content:
> <Context path="/test-1"/>
>

If you put the war in webapps tomcat doesnt support this anymore so just
delete this file.

> 2) Removed @Stateless in the TestPortImpl.java - Web Service
Implementation
> class

Side note: not sure what the goal is but will not help regarding your
issue. Bezt it will loose this thread reader.

> 3) Modified openejb-jar.xml like below (Used full class name as well
> com.mycompany.test.TestPortImpl - result is same)
> <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1";>
>
>         <pojo-deployment class-name="TestPortImpl">
>                 <properties>
>                 cxf.jaxws.features = org.apache.cxf.feature.LoggingFeature
>                 cxf.jaxws.properties = cxfJaxWSWSSEPolicy
>
>        </properties>
>
> </pojo-deployment>
> </openejb-jar>
> 4) Created test-1.war as before
> Note there is web.xml in WEB-INF with no child elements under web-app
>

You need to map the pojo webservice in the web.xml.

> Thanks,
> Venkat
>
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/How-to-configure-Loggin-Featrues-Interceptors-for-CXF-web-services-tp4679440p4679743.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to