javax.naming.NameNotFoundException: Name portal is not bound in this Context

tomcat-5.5.20部署hibernate应用,报错为:javax.naming.NameNotFoundException: Name portal is not bound in this Context
以前用weblogic8.14的时候在hibernate.cfg.xml连接池是这么配置的:
<property name="connection.datasource">portal</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
现需要改为:
<property name="connection.datasource">java:comp/env/portal</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
问题解决。

你可能感兴趣的:(java,tomcat,Hibernate,xml)