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

    Could use some help deploying a simple webapp from tomcat to

    Stephen Stacha Newbie

      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>