hi Rudi,

Your pb can have 2 sources:
- you are using JDK1.2, and this one does not ship JNDI with it. You need to download 
it from Sun and add it to your classpath.
- you have the JNDI jar but it is not in your classpath. you can put it in 
%tomcat_home%\common\lib

I hope this answers your question

Amine


----- Original Message ----- 
From: "Rudi Doku" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 24, 2001 6:24 AM
Subject: Newbie, JNDI Error - Help Required


> Hello,
> 
> Can anyone please help me resolve this error message?
> I have attached the class (ConnectionPool.java) which causes this exception 
> to be raised.
> 
> Kind Regards,
> 
> Rudi
> 
> 
> Error:init JNDI  javax.naming.NoInitialContextException: Cannot instantiate 
> class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
> java.lang.ClassNotFoundException: 
> com.sun.jndi.fscontext.RefFSContextFactory]
> Error:Register Datasources  java.lang.NullPointerException
> JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: 
> com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
> java.lang.ClassNotFoundException: 
> com.sun.jndi.fscontext.RefFSContextFactory]
> java.lang.IllegalStateException: pooled datasource has not been initialized
>         at 
> com.docutech.viewer.db.ConnectionPool.getConnection(ConnectionPool.java:129)
>         at com.docutech.viewer.db.Test.main(Test.java:28)
> Exception in thread "main"
> 
> 
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 


--------------------------------------------------------------------------------


> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to