5 Replies Latest reply on Nov 9, 2002 11:32 AM by koltar

    ARGGH!!! - JSP Help Anyone who has made a JSP with JBoss ple

    koltar Newbie

      I'm about to give up.

      /usr/local/jboss/server/template/bin/run-client.sh

      Works! Returns the Entity ID

      http://localhost:8083/index.jsp

      Works! shows me the code

      http://localhost:8080/index.jsp

      ERROR: Internal 500 - No Context configured to process this request

      Standardhost[Engine]: MAPPING configuration error for request URI /index.jsp

      @%#&*#^(&!$!%&#(@*^*)@(

      I can get the EJBs working but I can not get JSPs working on JBoss HELP!!!

        • 1. Re: ARGGH!!! - JSP Help Anyone who has made a JSP with JBoss
          Don Laidlaw Newbie

          I think your problem is that you are not deploying a web application. You can do that in one of three ways:
          1. Create a war file and drop it in your deploy dir
          2. Create an ear file and drop it in your deploy dir
          3. Create a directory in your deploy dir with a name like "root.war" and put your web application files in there.

          If you want your web application to be served on the context "/" then you need to have a file called jboss-web.xml in the dir root.war/WEB-INF with the contents:
          <jboss-web>
          <context-root>/</context-root>
          </jboss-web>

          Of course there should also be a web.xml file in that dir.
          Your index.jsp can then go in the root.war directory.

          Note that without the jboss-web.xml file in the WEB-INF dir the context name of the web application is "root", taken from "root.war". So your jsp would be accessed as http://localhost:8080/root/index.jsp

          Hope that helps
          -Don

          • 2. Re: ARGGH!!! - JSP Help Anyone who has made a JSP with JBoss
            koltar Newbie

            MANY THANKS!

            That was awesome it worked. I went to my previous tomcat install that is not part of JBoss and war'ed up one of my webapps in there moved the war file to the deploy and the server picked it up and deployed it.

            Thanks Don!

            • 3. Re: ARGGH!!! - JSP Help Anyone who has made a JSP with JBoss
              koltar Newbie

              Don if you ever view this message again I have one more question hopefully its the last for a while. I am trying to configure a Datasource that my JSP pages can see.

              I created a mysite-service.xml and only changed the below

              jdbc/mysite


              <config-property name="ConnectionURL" type="java.lang.String">jdbc:postgresql://localhost:5432/ mysite</config-property>
              <config-property name="DriverClass" type="java.lang.String">org.postgresql.Driver</config- property>
              <!--set these only if you want only default logins, not through JAAS -->
              <config-property name="UserName" type="java.lang.String">myuser</config-property>
              <config-property name="Password" type="java.lang.String">mypw</config-property>




              I copied in the pgjdbc2.jar into the default/lib, the mysite-service.xml is located in the default/deploy

              What else do I need to do to get my JSPs to be able to see jdbc/mysite? It works fine in tomcat when I deploy on jboss it fails.

              I am missing something and I am not able to find any documentation on this subject. I'm trying to deploy a webapps I created in tomcat into JBoss so I can later change some of the pages to use EJBs.

              Thanks in advance!

              • 4. Re: ARGGH!!! - JSP Help Anyone who has made a JSP with JBoss
                koltar Newbie

                Don if you ever view this message again I have one more question hopefully its the last for a while. I am trying to configure a Datasource that my JSP pages can see.

                I created a mysite-service.xml and only changed the below

                jdbc/mysite


                <config-property name="ConnectionURL" type="java.lang.String">jdbc:postgresql://localhost:5432/ mysite</config-property>
                <config-property name="DriverClass" type="java.lang.String">org.postgresql.Driver</config- property>
                <!--set these only if you want only default logins, not through JAAS -->
                <config-property name="UserName" type="java.lang.String">myuser</config-property>
                <config-property name="Password" type="java.lang.String">mypw</config-property>




                I copied in the pgjdbc2.jar into the default/lib, the mysite-service.xml is located in the default/deploy

                What else do I need to do to get my JSPs to be able to see jdbc/mysite? It works fine in tomcat when I deploy on jboss it fails.

                I am missing something and I am not able to find any documentation on this subject. I'm trying to deploy a webapps I created in tomcat into JBoss so I can later change some of the pages to use EJBs.

                Thanks in advance!

                • 5. Re: ARGGH!!! - JSP Help Anyone who has made a JSP with JBoss
                  koltar Newbie

                  Don if you ever view this message again I have one more question hopefully its the last for a while. I am trying to configure a Datasource that my JSP pages can see.

                  I created a mysite-service.xml and only changed the below

                  jdbc/mysite


                  <config-property name="ConnectionURL" type="java.lang.String">jdbc:postgresql://localhost:5432/ mysite</config-property>
                  <config-property name="DriverClass" type="java.lang.String">org.postgresql.Driver</config- property>
                  <!--set these only if you want only default logins, not through JAAS -->
                  <config-property name="UserName" type="java.lang.String">myuser</config-property>
                  <config-property name="Password" type="java.lang.String">mypw</config-property>




                  I copied in the pgjdbc2.jar into the default/lib, the mysite-service.xml is located in the default/deploy

                  What else do I need to do to get my JSPs to be able to see jdbc/mysite? It works fine in tomcat when I deploy on jboss it fails.

                  I am missing something and I am not able to find any documentation on this subject. I'm trying to deploy a webapps I created in tomcat into JBoss so I can later change some of the pages to use EJBs.

                  Thanks in advance!