Hey

Kevin Lewis wrote:
> Does anyone have a suggestion as to where I might put jndi.properties so
> that they will be seen by JSPs?  I've tried the WEB-INF/classes
> directory of my web application, and then TOMCAT_HOME/lib (which is
> added to the classpath by run.bat).

I'm seeing this problem as well. I use the following workaround:
   protected Context getInitialContext()
      throws NamingException
   {
      Properties cfg = new Properties();
      cfg.load(getClass().getResourceAsStream("/jndi.properties"));
      return new InitialContext(cfg);
   }
---

Works, and is easy to change to just new InitialContext(); once it works
as it should (i.e. the new gets jndi.properties all by itself).

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to