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>

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843414#3843414

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3843414


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to