This is an example of a Hibernate configuration file which uses a JNDI lookup to obtain a datasoure. Switching to the MyEclipse special view for this XML file, and touching any one value in the editor puts in some empty tags that cause Hibernate to try and instantiate its own data-source, using (among other things) a null JDBC URL. MyEclipse ought not to do this.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">
java:comp/env/jdbc/accessreg
</property>
<property name="show_sql">false</property>
<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<mapping resource="accessreg/hibernate/Accessreg.hbm.xml"></mapping>
</session-factory>
</hibernate-configuration>
Sorry, not tested against the latest milestone, and no time at present.