6 Replies Latest reply on Aug 1, 2002 11:26 AM by romalley

    where to put jsp files

    xcopy

      i want to test jsp on jboss3.0_tomcat4.04
      which directory i should put the file to and how to visit it.

        • 1. Re: where to put jsp files
          slawsonb

          Put your jsp files into a .war file and drop it in the directory $JBOSS_HOME/server/default/depoy.

          For example, if your jsp is called myjsp.jsp and the war is called mywar.war then:

          http://localhost:8080/mywar/myjsp.jsp



          • 2. Re: where to put jsp files
            slawsonb

            Put your jsp files into a .war file and drop it in the directory $JBOSS_HOME/server/default/depoy.

            For example, if your jsp is called myjsp.jsp and the war is called mywar.war then:

            http://localhost:8080/mywar/myjsp.jsp



            • 3. Re: where to put jsp files
              joelvogt

              make a directory test.war in the deploy directory and test
              from localhost:8080. Best to search the forums for a question like this as I am sure it is answered many times already

              • 4. Re: where to put jsp files
                jman

                Hi,

                Under the tomcat directory ("catalina" with jboss 3.0)
                you have to put your jsp files under "/webapps/root",
                if they are under another directory "test" for example
                u have to edit your /conf/server.xml file by adding a context path to your directory it looks sthg like this:

                <!-- My Folders -->


                where "mytest" is the url you type in your browser and "test" the directory under "webapps" where your jsp files are.

                after editting your server.xml file, restart the server.

                For example, if you have a page calling test.jsp under "webapps/test" and you put "/mytests" as a context path ( )

                You'll see your test.jsp page by typing the url:

                http://localhost/test/test.jsp

                that's all

                Enjoy

                • 5. Re: where to put jsp files
                  jman

                  Hi,

                  Under the tomcat directory ("catalina" with jboss 3.0)
                  you have to put your jsp files under "/webapps/root",
                  if they are under another directory "test" for example
                  u have to edit your /conf/server.xml file by adding a context path to your directory it looks sthg like this:

                  <!-- My Folders -->


                  where "mytest" is the url you type in your browser and "test" the directory under "webapps" where your jsp files are.

                  after editting your server.xml file, restart the server.

                  For example, if you have a page calling test.jsp under "webapps/test" and you put "/mytests" as a context path ( )

                  You'll see your test.jsp page by typing the url:

                  http://localhost/test/test.jsp

                  that's all

                  Enjoy

                  • 6. Re: where to put jsp files
                    romalley

                    There are so many answers because, I believe things have changed around with JBoss 3.0 and there are / were several ways to deploy web apps. I am new to JBoss but have used WebLogic, Websphere and HPAS extensively in the past for web apps.

                    I cannot get a deployment to work from the /catalina/webapps folder. I can get them to work by placing the applications in jboss/server/default/deploy.

                    It will work whether I create a physical war file as in a file called test.war or if I create a folder with the .war imbedded in the folder name such as test2.war. Either way you need the J2EE standard web-inf folder inside your application with a web.xml file in that folder. I do NOT need to edit any server.xml or tomcat4-service.xml file to tell it about my new applications.

                    Web applications work when hitting them from the browser on port 8080. (change this by editing jboss/server/default/deploy/tomcat4-service.xml) I am Not sure what port 8083 is all about just yet but it appears to be used by a class loader within JBoss. It probably should not be used for serving html although it happens to do so when the stars are lined up right.

                    The great news is that these things do deploy and undeploy automatically without stopping and restarting the server. Just slide them into the deploy folder and they deploy. You can also add additional files (html and jsp files) to a folder based deployment and they will be served up without restarting the server.

                    Bob O'Malley