我正在尝试部署本地weblogic服务器,尽管出现错误:
The resource-env-ref 'hibernate/PSessionFactory' declared in the standard descriptor or annotation has no JNDI name mapped to it. The resource-env-ref must be mapped to a JNDI name using the resource-env-description element of the weblogic proprietary descriptor or corresponding annotation.
在我的web.xml中,我将resource-env-ref定义为:
<resource-env-ref>
<resource-env-ref-name>hibernate/PSessionFactory</resource-env-ref-name>
<resource-env-ref-type>org.hibernate.SessionFactory</resource-env-ref-type>
</resource-env-ref>
我应该在哪里添加resource-env-description?