tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Francis <>
Subject RE: I have tried to invoke EJB's from TOMCAT: NoInitialContextExc eption:
Date Wed, 15 Nov 2000 18:44:41 GMT
Hi Peter, 

I've seen this a couple of times (doing the same sort of
thing myself). The problem usually stems from Tomcat not picking
up all jar files properly. Make sure you have jndi.jar on
the classpath. Also the oracle aurora stuff should be there aswell
and maybe one or two other things. (Do you use JDeveloper? The complete 
list will be in your library addins under project properties -
not sure if all of these are necessary but doesn't do any harm).  
The safest way of doing this is to make a set classpath entry in 
the bat or sh file that starts Tomcat.
Also have you got all the EJBGenerated and EJB Source jar files
on your classpath aswell? It could be one these is missing.


-----Original Message-----
From: Peter Knight []
Sent: 15 November 2000 14:54
Subject: I have tried to invoke EJB's from TOMCAT:

I have tried to invoke EJB's from TOMCAT and get:

Internal Servlet Error:
javax.servlet.ServletException: Need to specify class name in environment or
system property:
Root cause:
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property: e.t.c.

The EJB resides in an Oracle 8i 8.1.6 database.
I have included the EJB API and the two EJB jar files in the class path and
it doesn't seem to matter what I do, I cannot get it to work!!

Regards Peter Knight

Important Note: This E-Mail is confidential, it must not be read, 
copied, disclosed or used by any person other than the above 
named addressees. Unauthorised use, disclosure or copying is 
strictly prohibited and may be unlawful. Eurostar (U.K.) Limited 
disclaims any liability for any action taken in reliance on the 
content of this E-Mail. The comments or statements expressed in 
this E-Mail are not necessarily those of Eurostar (U.K.) Limited 
or its subsidiaries or affiliates.

Eurostar (U.K.) Ltd. Registered Office: Eurostar House, Waterloo
Station, London, SE1 8SE, Registered in England No. 2462001 
VAT No. GB 657 719 590

View raw message