jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: NoInitialContextException
Date Sat, 01 Nov 2003 21:39:33 GMT
David,

> -----Original Message-----
> From: David Chelimsky [mailto:david@chelimsky.org]
> Sent: 01 November 2003 22:27
> To: 'Cactus Users List'
> Subject: Re: NoInitialContextException
> 

[snip]

>  public static DataSource getDataSource() throws NamingException {
>   Context ctx = new InitialContext();
>   Context env = (Context) ctx.lookup("java:comp/env");
>   DataSource ds = (DataSource) ctx.lookup("/jdbc/cheli");
>   return ds;
>  }

In which cactus method are you calling the getDataSource() method? Is it
from a beginXXX() method, is it from a setUp() method, is it from a
testXXX() method, is it from an endXXX method, etc?

> 
> that's it. If this triggers any ideas for you, please let me know.

-Vincent


Mime
View raw message