RE: Problems executing Conn Pool example that comes with JSQLConnect

2001-12-20 Thread Guido Medina

put this file also inside TOMCAT_HOME/common/lib or /lib

-Original Message-
From: Rudi Doku [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 8:28 PM
To: [EMAIL PROTECTED]
Subject: Problems executing Conn Pool example that comes with
JSQLConnect


Greetings,

I'm currently evaluating the JSQLConnect Driver. I downloaded jndi1_2_1.zip 
from the sun site, followed the instructions and installed it in the 
following directory - C:\jdk1.3\jre\lib\ext\jndi.jar; I also added this path

to my classpath.

My problem is that I get the following exception when I run 
ExampleConnectionPool.java from the command line.

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.C
lassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]


Any feedback will be very much appreciated.

Cheers,

Rudi


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



Re: Problems executing Conn Pool example that comes with JSQLConnect

2001-12-19 Thread Mark

Greetings,

I'm currently evaluating the JSQLConnect Driver. I downloaded jndi1_2_1.zip 
from the sun site, followed the instructions and installed it in the 
following directory - C:\jdk1.3\jre\lib\ext\jndi.jar; I also added this path 
to my classpath.

My problem is that I get the following exception when I run 
ExampleConnectionPool.java from the command line.

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.C
lassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]


Any feedback will be very much appreciated.

Cheers,

Rudi

Do you have fscontext.jar (eg.
'com.sun.jndi.fscontext.RefFSContextFactory')? That's where
RefFSContextFactory class lives, which seems to be the root of your problem
based on your stacktrace.  As I recall you may also need providerutil.jar.


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




Re: Problems executing Conn Pool example that comes with JSQLConnect

2001-12-19 Thread Rudi Doku

Hi Mark,

Thanks for the prompt response. The files you suggested i add (fscontext.jar 
 providerutil.jar) are not in the jndi1_2_1.zip. I am searching for them at 
the sun site. Any ideas where I can get them?

Cheers,
Rudi

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Problems executing Conn Pool example that comes with JSQLConnect

2001-12-19 Thread Mark

At 11:05 AM 12/20/2001 +1000, you wrote:
Hi Mark,

Thanks for the prompt response. The files you suggested i add (fscontext.jar 
 providerutil.jar) are not in the jndi1_2_1.zip. I am searching for them at 
the sun site. Any ideas where I can get them?

Cheers,
Rudi

This is one of the oddest and hardest to find download of any Sun
product/package I've encountered. To be honest I initially just copied it
from my Forte FJ lib area after giving up trying to find it at Sun a while
back.  

You piqued my interest again since it was such a frustrating experience, so
I tried again. This time I did find it at
http://java.sun.com/products/jndi/index.html#download - look for the
'Download JNDI 1.2.1  More' button which (after the usual license accept
screen) will lead you to another download screen that has an 'FS Context'
download option.  Why Sun made this so hard to find is beyond me.  

hth
Mark


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