8 Replies Latest reply on Sep 24, 2013 5:33 PM by jlavezzo

    root.war/ for jsps how to?

    tushar.kapila

      hi

      i downloaded the Aug 8 release version, 7.0

       

      I'm able to deploy a ear and war files. But not sure where I can put exploded jsps

       

      We currently use jboss 4.3 EA which has a \jboss-EAC\server\MyApp\deploy\jboss-web.deployer\ROOT.war

       

      folder which we use to drop jsp tools, html, images etc

       

      How do I configure the same in AS7?

       

      I tried placing a jsp in \welcome-content\ but it just servers it as text/plain instead of parsing it as a jsp.

       

      I want the / root context to point to a folder instead of a war/ ear and also want a ear and a few wars deployed.

       

      So once all set up http://a.com/a.jsp will be from the root war, http://a.com/utils/b.jsp will also be from the root.war sub folder utils, http://a.com/csr/index.jsp will be from csr.war and http://a.com/app/web/index.jsp will be from appMain.ear with context app/

       

      Thank you your time!

        • 1. Re: root.war/ for jsps how to?
          jaikiran

          Disable the welcome-content application and deploy your application at the root (/) context

          • 2. Re: root.war/ for jsps how to?
            tushar.kapila

            what i want to know is how to - have one web app / ear that is packed in a .ear file and one more that is in exploded format in the same jboss instance?

             

            i tried to add 2 entries for scan folder - one for a exploded and other for non but that did not work deployment-scanner can only have one entry in standalone.xml

             

            maybe i need to deploy the exploded app by default and the ear using api/ the web UI?

            • 3. Re: root.war/ for jsps how to?
              jaikiran

              Just place the .ear and the .war (and any other applications) in the JBOSS_HOME/standalone/deployments folder. You don't have to touch the standalone.xml for this.

              • 4. Re: root.war/ for jsps how to?
                jaikiran

                Also, take a look at the Getting Started Guide here https://docs.jboss.org/author/display/AS7/Documentation

                • 5. Re: root.war/ for jsps how to?
                  tushar.kapila

                  i know i can place multiple war and ear files.

                   

                  Here is what we need

                  1 ear file

                  2 war file

                  and one more app or folder where we can put extracted/ exploded jsps - does not have to be root but has to be a place where we can add a new/ change existing jsp/ images

                   

                  I know I can make another war with these files and re package and re deploy the war every time.

                   

                  But since these change more often than our monthly prod cycle and for convienience, we used the root.wat folder on EAS 4.3

                   

                  Is there  a folder or can one be set up with this jboss - where we can drop jsps and other content? If yes how to?

                  • 6. Re: root.war/ for jsps how to?
                    dlofthouse

                    Just create an exploded war in the deployments folder, name it whateveryoulike.war and add a WEB-INF folder to add a web.xml and jboss-web.xml so you can map the context-root.

                     

                    To deploy the war just create a marker file in the deployments folder called whateveryoulike.war.dodeploy and JBoss will deploy the war, as it is exploded you now have your folder to drop these files in whenever you need and just re-create the whateveryoulike.war.dodeploy to deploy it again.

                    • 7. Re: root.war/ for jsps how to?
                      tushar.kapila

                      cool i will try this saturday

                      • 8. Re: root.war/ for jsps how to?
                        jlavezzo

                        This works if the folder is directly in the deployments folder.   IF there are any symlinks or junctions involved on Windows, you will be able to serve static content but not JSPs.  This has been my experience, at least.