I also have some doubts about JNDI configuration and hibernate.
In my case, I put this in hibernate.cfg.xml
Code:
<session-factory>
<property name="connection.datasource">java:comp/env/jdbc/rinoceronte</property>
While in myapp.xml I put
Code:
<Context path="/rinoceronte" swallowOutput="true" docBase="rinoceronte.war" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="rinoceronte." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/rinoceronte" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/rinoceronte">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
Felipe