4 Replies Latest reply on May 20, 2011 8:41 AM by hudsonmelo

    Jboss4.2.3/Solaris10_Sparc

    hudsonmelo

      Hello,

       

      i have a environment for a critical application with apache2.2.4/jboss4.2.3 in a machine with solaris10_SPARC. The Default_Type in the Apache is configurated with application/soap+xml and, when the client try to access the page, the browser asks to do the download of the page.

       

      Do you think that some configuration in Jboss can help for this situation????

       

      I wait for a help!!!

      Thanks everybody.

      Hudson

        • 1. Jboss4.2.3/Solaris10_Sparc
          mp911de

          Hi Hudson,

          that would be the behavior I expect. Most Browsers support only text/.... (text/xml, text/html, ...) image.../ (image/gif, image/png, ...) and some few Mime-Types more for displaying. Default Type for an Apache HTTPd should be text/html or text/plain. But more interesting than Browser triggers Download is: Is the content (when you download it) what you expect?

           

          Best regards,

          Mark

          • 2. Re: Jboss4.2.3/Solaris10_Sparc
            hudsonmelo

            Hi Mark, thank you for reply.

             

            the application that is in Jboss is a Java App, and the expected is a .do return. The problem is, i have two environments, one with Apache/jboss in Solaris/Sparc and another in Solaris/x86 but the problem only happen in Solaris/sparc. How the application needs to answer with soap1.2 the application/soap+xml went necessary to be configurated with DefaultType.

             

            In annex a image of the download.

             

            Best regards,

            Hudson

            • 3. Re: Jboss4.2.3/Solaris10_Sparc
              mp911de

              When your DefaultType is other than text/html, the .do-Request won't stay the only one problem. There are three appoaches, what you could do:

               

              1. Setting the Content-Type application/soap+xml only where needed (my favorite)
              2. Create a Servlet-Filter an map this filter to your resources, where you want to display those in your browser (e.g. Filter-Mapping *.do). In this filter you set (static) the Content-Type you need (probably text/html)
              3. You add the "do" extension in Apache's mime-config to the text/html mime-type
              • 4. Re: Jboss4.2.3/Solaris10_Sparc
                hudsonmelo

                Hi Mark, is this guy!!!

                 

                I set a static filter in web.xml to answer requests soap+xml and text/html too. See how i did:

                 

                <filter>

                    <filter-name>SOAPXmlHeadersFilter</filter-name>

                    <filter-class>org.jboss.web.tomcat.filters.ReplyHeaderFilter</filter-class>

                          <init-param>

                             <param-name>contentType</param-name>

                             <param-value>application/soap+xml</param-value>

                          </init-param>

                </filter>

                 

                 

                <filter-mapping>

                      <filter-name>SOAPXmlHeadersFilter</filter-name>

                      <url-pattern>/services/cadconsultacadastro2/*</url-pattern>

                  </filter-mapping>

                 

                Thank you very much for help my friend!!!!

                Hudson