Hi,
 
I am having trouble using JNDI under Tomcat to look up reference type Objects. I have tried converting the Fruit example from the sun JNDI tutorial to work in a web context.
 
The problem is that the DirContext.lookup function returns an object of type java.naming.Reference instead of the object type that you placed in the directory. The example returns the correct object type as a console app, but not under Tomcat.
 
I have tested this on Tomcat 3.2 beta 4 and 6, I have found that JRun3.0 also displays the same behaviour. Tomcat 3.1 actually works, with the jar files below stored in the web application's WEB-INF/lib directory.
 
I am using jdk1.3
Some notes are that the fscontext.jar & providerutil.jar are in the folder <java_home>/jre/lib/ext.
 
Has anyone experienced this problem ? Should I be converting the reference manually using the object factory? What is the correct location for fscontext.jar & providerUtil.jar ?
 
thanks...

Reply via email to