Hi,
have you redeployed your application? We have a bug that prevent changes
to be applied:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3844
So stop GlassFish, restart and redeploy and let me know what you get!
-- Jeanfrancois
Pete Ehlke wrote:
> Folks:
>
> Running glassfish v2 b58g, I am expecting, based on the comments in
> default-web.xml:
>
> <!-- ===================== Default MIME Type Mappings =================== -->
>
> <!-- When serving static resources, the application server will -->
> <!-- automatically generate a "Content-Type" response header from the -->
> <!-- filename extension of the resource, based on these mappings. -->
> <!-- Additional mappings may be specified here (to be shared by all -->
> <!-- web applications) or in a web application's web.xml deployment -->
> <!-- descriptor (for that web application's individual use). -->
>
>
> And these entries there:
>
> <mime-mapping>
> <extension>css</extension>
> <mime-type>text/css</mime-type>
> </mime-mapping>
>
> <mime-mapping>
> <extension>swf</extension>
> <mime-type>application/x-shockwave-flash</mime-type>
> </mime-mapping>
>
> That I should get text/css for *.css and application/x-shockwave-flash
> for *.swf.
>
> But that is not what I see:
>
> Connected to crazy.akbars.uucpshack.net.
> Escape character is '^]'.
> HEAD /rvng/editlet/open.css HTTP/1.0
>
> HTTP/1.1 200 OK
> X-Powered-By: Servlet/2.5
> Server: Sun Java System Application Server 9.1
> ETag: W/"2096-1196310028000"
> Last-Modified: Thu, 29 Nov 2007 04:20:28 GMT
> Content-Type: text/html; charset=iso-8859-1
> Content-Length: 2096
> Date: Thu, 29 Nov 2007 05:13:16 GMT
> Connection: close
>
> Connection closed by foreign host.
>
> Connected to crazy.akbars.uucpshack.net.
> Escape character is '^]'.
> HEAD /rvng/gcCallCenter.swf HTTP/1.0
>
> HTTP/1.1 200 OK
> X-Powered-By: Servlet/2.5
> Server: Sun Java System Application Server 9.1
> ETag: W/"715034-1196310029000"
> Last-Modified: Thu, 29 Nov 2007 04:20:29 GMT
> Content-Type: text/html; charset=iso-8859-1
> Content-Length: 715034
> Date: Thu, 29 Nov 2007 05:14:06 GMT
> Connection: close
>
> Connection closed by foreign host.
>
> Both css and swf objects are returned with Content-Type: text/html.
>
> What configuration item have I missed?
>
> Thanks!
>
> -Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>