tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vnalla <v_na...@hotmail.com>
Subject Re: How to configure Loggin, Featrues, Interceptors for CXF web services
Date Sun, 14 Aug 2016 21:14:04 GMT
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"/>

2) Removed @Stateless in the TestPortImpl.java - Web Service Implementation
class
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

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.

Mime
View raw message