users@glassfish.java.net

Re: gzip compression

From: <w.rittmeyer_at_jsptutorial.org>
Date: Mon, 26 Oct 2009 11:59:59 +0100 (CET)

Hi Felipe,

I do not know for sure if this is the reason for your problem, but the attribute
"compression" is now of type boolean.

Maybe you should try to use "true" instead.

See the output of asadmin set:

asadmin> set
server.network-config.protocols.protocol.http-listener-1.http.compression=force
com.sun.enterprise.admin.cli.CommandException: remote failure: Could not change
the attributes: org.jvnet.hk2.config.ValidationException: Validation Failed:
force is not of data type: java.lang.Boolean
org.jvnet.hk2.config.ValidationException: Validation Failed: force is not of
data type: java.lang.Boolean

Command set failed.
asadmin> set
server.network-config.protocols.protocol.http-listener-1.http.compression=true
server.network-config.protocols.protocol.http-listener-1.http.compression=true

Command set executed successfully.

Afterwards in the domain.xml I see >>compression="true"<<.


--
Wolfram Rittmeyer
"Felipe Gaúcho" <fgaucho_at_gmail.com> hat am 25. Oktober 2009 um 15:29
geschrieben:
> following this manual: http://docs.sun.com/app/docs/doc/820-4507/abhco?a=view
> 
> the "http-listener" should be under the http-service element, right ?
> 
>   <configs>
>     <config name="server-config">
>       <http-service>
>         <access-log />
>         <virtual-server id="server"
> network-listeners="http-listener-1,http-listener-2" />
>         <virtual-server id="__asadmin" network-listeners="admin-listener" />
>               <http-listener>
>                 <property name="compression" value="force"/>
>                 <property name="compressableMimeType"
> value="text/html,text/xml,text/plain,image/gif,image/jpeg,image/png,text/css,t
> ext/javascript,application/json,application/xml"/>
>               </http-listener>
>       </http-service>
> ...
> 
> and nothing happens.. what is missed ?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>