2 Replies Latest reply on Aug 13, 2007 4:45 AM by baz

    Rendering issues with TC6 in JBossAS 4.2.1

    baz

      We have some rendering issues with JBoss AS4.2.1 and all of our browsers (opera,tomcat,ie).

      The css is not applied correctly, so the pages do not show up as expected. With Opera and IE the pages are readable, but with Firefox it gets towards unreadability.
      We are using JSF, Facelets,Seam, Richfaces.

      Our pages worked well with jboss AS 4.0.5 (and the included Tomcat5.5).
      Found this qoute here:

      The most web servers send as type for HTML and XHTML files ?text/html?. But Tomcat 6 sends per default as type for XHTML files the type ?application/xhtml+xml?. Firefox seems to have trouble with this type

      Is there a configurationb option to obtain the same behaviour as with tc5.5?
      Ciao,
      baz

        • 1. Re: Rendering issues with TC6 in JBossAS 4.2.1
          ssilvert

          You can change the default mime types in deploy/jboss-web.deployer/conf/web.xml.

          Regards,

          Stan

          • 2. Re: Rendering issues with TC6 in JBossAS 4.2.1
            baz

            Thanks sTAN;
            We have tried your suggestion.
            We changed

            <mime-mapping>
             <extension>xhtml</extension>
             <mime-type>application/xhtml+xml</mime-type>
             </mime-mapping>
            

            into
            <mime-mapping>
             <extension>xhtml</extension>
             <mime-type>text/html</mime-type>
             </mime-mapping>
            
            After stopping und starting the server and ensuring that the browsers cache is cleared we got the same effect.
            So it seems that chaniging the mime type is not the correct solution.
            Ciao,
            Carsten