I created 'jetty-web.xml' and 'webdefault.xml' in dsp-k-1.5.0\etc folder

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC &quot;-//Jetty//Configure//EN&quot;
&quot;http://www.eclipse.org/jetty/configure.dtd&quot;>

<Configure class="org.eclipse.jetty.webapp.WebAppContext">      
        <Set name="defaultsDescriptor">webdefault.xml</Set> 
</Configure>

and 'webdefault.xml'

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns="http://java.sun.com/xml/ns/javaee";
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
        id="WebApp_ID" version="2.5">
        
        <filter>
                <filter-name>GzipFilter</filter-name>
                
<filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class>
                <init-param>
                        <param-name>mimeTypes</param-name>
                
<param-value>text/html,text/plain,text/xml,application/xhtml+xml,text/css,application/javascript,application/json,image/svg+xml</param-value>
                </init-param>
        </filter>
        <filter-mapping>
                <filter-name>GzipFilter</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>

</web-app>

Add entry in org.ops4j.pax.web.cfg file

org.ops4j.pax.web.config.file=./etc/jetty-web.xml

still it is not working,, can you please provide me an simple example
talking about gzip compression in karaf



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Compression-in-karaf-tp4030841p4030872.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to