2 Replies Latest reply on Jul 27, 2004 6:02 PM by sstacha

    Could use some help deploying a simple webapp from tomcat to

    sstacha

      I have a simple webapp that is a jsp page that connects to a database and retrieves / updates some fields in a table. It works on tomcat in the webapps folder unzipped. Here is the web.xml definition:

      -------------------
      <?xml version="1.0" ?>
      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

      <web-app>

      <display-name>Console</display-name>
      Console

      <welcome-file-list>
      <welcome-file>admin.jsp</welcome-file>
      </welcome-file-list>

      <resource-ref>
      Test Database
      <res-ref-name>jdbc/asp</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      --------------

      I have successfully run jboss in the default config and modified the oracle_ds.xml to connect properly to my database. When I copy (and rename the folder with the .war extension) the webapp from tomcat to jboss it blows up saying the app can not be deployed. I tried making a jboss-web.xml file
      ----------------------
      <?xml version="1.0" ?>
      <jboss-web>
      <!-- map the asp lookup to to OracleDS jndi name -->
      <resource-ref>
      <res-ref-name>jdbc/asp</res-ref-name>
      <jndi-name>java:/OracleDS</jndi-name>
      </resource-ref>
      </jboss-web>
      --------------------------
      but that didn't help either. Has anyone else had problems porting from Tomcat to Jboss? Can anyone point me in the right direction?
      </web-app>

        • 1. Re: Could use some help deploying a simple webapp from tomca
          sstacha

          ok, so this is pretty wierd but... It appears the problem is the directory not being zipped.

          If I zip up the directory into the war file and drop that in any folder under deploy it works fine

          If I just copy the directory that I just zipped into the deploy directory I get scrolling errors

          Has anyone seen this before? Is there a way to deploy it unzipped so I can do work on the jsp's while running?

          • 2. Re: Could use some help deploying a simple webapp from tomca
            sstacha

            ***** PROBLEM SOLVED *****

            I went through systematically removing item by item until the app would deploy. Here it is...

            You can not have a META-INF folder in jboss when deploying as a directory. If you un-jar a web application be sure to remove this directory and everything will work.

            Maybe this can save someone else some time debugging.

            ***************************