karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saravana Prasad <rspras...@hotmail.com>
Subject Re: Web context state is failed
Date Wed, 17 Apr 2019 14:11:01 GMT

Hi,

War file name: WBKarafFeaturesWeb-0.0.1-SNAPSHOT.war

It is a regular war using maven-war-plugin and not a wab

web.xml:

	<listener>
	
<listener-class>com.cc.wb.karaf.features.web.activator.WBKarafWebActivator</listener-class>
	</listener>

	<servlet>
		<servlet-name>KarafFeaturesWeb</servlet-name>
	
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
		<init-param>
			<param-name>jersey.config.server.provider.packages</param-name>
			<param-value>
      			com.cc.wb.karaf.features.web.template
      		</param-value>
		</init-param>
		<init-param>
			<param-name>jersey.config.server.provider.scanning.recursive</param-name>
			<param-value>false</param-value>
		</init-param>
		<init-param>
			<param-name>jersey.config.server.provider.classnames</param-name>
			<param-value>
		        org.glassfish.jersey.jackson.JacksonFeature,
		        org.glassfish.jersey.media.multipart.MultiPartFeature
		    </param-value>
		</init-param>

 
	</servlet>

	<servlet-mapping>
		<servlet-name>KarafFeaturesWeb</servlet-name>
		<url-pattern>/rest/*</url-pattern>
	</servlet-mapping>



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Mime
View raw message