You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Francis <ch...@static2358.com> on 2000/10/12 16:24:11 UTC
RE: jndi.properties and classpath
Hi Simon,
It is a classpath problem as you guessed as I had (sometimes still have!)
the same error.
You say you have all your jar file WEB_APPS/lib, I've found the
Tomcat classloader to be particularly unreliable, (I'm using
Tomcat 3.1.1 under Apache 1.3.12 for Win NT sp4).
However I managed to work around this by putting jars either on
the global classpath or setting the classpath specially in tomcat.bat,
(actually once I found I had to extract it to Tomcats' classes
directory!)
I know this is not ideal but it works.
Good luck!
Chris.
-----Original Message-----
From: Simon Oldeboershuis [mailto:sol@outermedia.de]
Sent: 13 October 2000 11:11
To: tomcat-user@jakarta.apache.org
Subject: jndi.properties and classpath
Hi,
I know this seems to be another classpath error, but I really tried
almost everthing.
I am running tomcat3.1
my tomcat/lib contains
ant.jar
jasper.jar
jaxp.jar
parser.jar
servlet.jar
webserver.jar
xml.jar
I have an app in the webapp folder and all classes in
WEB-INF/classes
which only contains the file
jndi.properties
and all jars in
WEB-INF/lib/
ejb.jar, ...
But I always get the following exception for any lookup of ejbs via jndi
-----------------
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
----------------
if I change the external classpath of tomcat and add a location which
only contains the file jndi.properties everything is fine. BUT that is
not what I want to do!
Does anybody know a solution???
so long!
simon