-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Tomcat 5.5.4, hibernate 3.0, JNDI lookup failed
PostPosted: Mon Feb 21, 2005 10:02 am 
Beginner
Beginner

Joined: Wed Jan 26, 2005 5:34 am
Posts: 41
Location: France, Paris
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 ?

_________________
Vincent


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.