Hibernate version: 3.0beta4
The NamingContext lookup failed in the filter of my webapp. Where i'm wrong in the configuration ?
A part of my web.xml:
Code:
<filter>
<filter-name>PersistenceFilter</filter-name>
<filter-class>webapp.PersistenceFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PersistenceFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<context-param>
<param-name>HIBERNATE_FILTER_SESSION_FACTORY_JNDI</param-name>
<param-value>java:comp/env/hibernate/SessionFactory</param-value>
</context-param>
<context-param>
<param-name>HIBERNATE_FILTER_REQUEST_ATTRIBUTE_ID</param-name>
<param-value>HibernateSession</param-value>
</context-param>
I'm using the Persistence class described here :
http://www.hibernate.org/43.html
And i can't get the SessionFactory from JNDI :-/
Any idea ?