Re: Newbie, JNDI Error - Help Required

2001-12-24 Thread Amine AMAR

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]




Re: Newbie, JNDI Error - Help Required

2001-12-24 Thread Mark

At 04:24 PM 12/24/2001 +1000, you wrote:
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: 

Since the basic problem is the RefFSContextFactory class can't be found, do
you have the fscontext.jar (it's contains the class that can't be found)?
If you look in jndi.jar you'll see it does not contain this class.  

Also, what version of Tomcat are you using?  That makes a difference on
whether classpath is an issue or whether it's the location of the jar.  

Mark


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




RE: Newbie, JNDI Error - Help Required

2001-12-23 Thread Seethalakshmi Kalyanaraman

Hi
Is the Classpath set properly?
Regds
Seetha
-Original Message-
From: Rudi Doku [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 11:54 AM
To: [EMAIL PROTECTED]
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]