1 2 Previous Next 17 Replies Latest reply on Jan 19, 2010 6:41 PM by Peter Johnson Go to original post
      • 15. Re: Where to deploy files for users to download
        Peter Johnson Master

        "The home (seam) page of my app loads and displays. Maybe this is the cause?"

         

        Yes! Finally! This is the cause. Apparently your app is using the root context ("/"). I am surpirsed that you did not remove ROOT.war since it also uses the root context (you could end up with problems if you don't).

         

        If your app needs to retain the root context, then you will have to go with one of the other methods that I mentioned.

         

        If you need the PDF to be in the root context, then you will have to use the exploded directory mechnism and place your files in the base directory of the exploded WAR file.

         

        If you can place the files in another context, then you can use the external directory mechanism. For example, if you set an external deploy directory reference of "c:/webstuff", and then have the file c:\webstuff\data.war\test.pdf, you can then access the PDF via http://www.mydocmain.com/data/text.pdf

        • 16. Re: Where to deploy files for users to download
          Roger Lee Apprentice

          Fixed!

           

          I created a directory "BlackBerry" in;

           

          <jboss-4.2.3.GA>/server/default/BlackBerry

           

          Where I placed my file test.pdf.

           

          I add the following lines to the server.xml configuration file which can be found in;

           

          <jboss-4.2.3.GA>/server/default/deploy/jboss-web.deployer

           

          <Context path="/BlackBerry"

              docBase="/BlackBerry"

              reloadable="true">

          </Context>

           

          Restarted JBoss and point my (IE8) browser to;

           

          http://localhost:8080/BlackBerry/test.pdf

           

          and the PDF file open in my browser!

           

          I have also deployed it on my "live" beta test server making the changes as above and can open the PDF file in the browser using;

           

          http://www.mydomain.com/BlackBerry/test.pdf

           

           

          Many thanks for all effort and patience.

          • 17. Re: Where to deploy files for users to download
            Peter Johnson Master
            Roger, for the sake of others who come across this post in the future, could you briefly state what you did to fix this? Thanks!
            1 2 Previous Next