ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: iBatis in a standalone (JUnit) application - NoInitialContext err or
Date Wed, 28 Sep 2005 03:09:53 GMT
Well I am just guessing here but it appears that you have set up your  
datasource as a jndi lookup.

We really need to see your config file to give a better solution.

Nathan

On Sep 27, 2005, at 5:19 PM, Yee, Richard K, CTR,, DMDCWEST wrote:

> Hi,
> I'm trying to use iBatis DAO in a standalone Java class but am  
> getting a
> JNDI NoInitialContext error when I try to configure the DaoManager.  
> I am
> using a SIMPLE datasource and am specifying the username, driver,  
> etc. This
> is the error:
>
> Exception in constructor: testGetPcmFacility
> (com.ibatis.dao.client.DaoException: Error while configuring  
> DaoManager.
>   Cause: com.ibatis.dao.client.DaoException: There was an error  
> configuring
> the DataSource from JNDI.
>   Cause: javax.naming.NoInitialContextException: Need to specify  
> class name
> in environment or system property, or as an applet parameter, or in an
> application resource
>  file:  java.naming.factory.initial
> Caused by: javax.naming.NoInitialContextException: Need to specify  
> class
> name in environment or system property, or as an applet parameter,  
> or in an
> application resource file:  java.naming.factory.initial
> Caused by: com.ibatis.dao.client.DaoException: There was an error
> configuring the DataSource from JNDI.
>   Cause: javax.naming.NoInitialContextException: Need to specify  
> class name
> in environment or system property, or as an applet parameter, or in an
> application resource
>   file:  java.naming.factory.initial
> Caused by: javax.naming.NoInitialContextException: Need to specify  
> class
> name in environment
>
>
> Any idea which class name I need to specify and what the property  
> name is?
>
> Thanks,
>
> Richard
>
>


Mime
View raw message