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/11/15 19:44:41 UTC
RE: I have tried to invoke EJB's from TOMCAT: NoInitialContextExc
eption:
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.
Cheers,
Chris.
-----Original Message-----
From: Peter Knight [mailto:peter.knight@eurostar.co.uk]
Sent: 15 November 2000 14:54
To: tomcat-user@jakarta.apache.org
Subject: I have tried to invoke EJB's from TOMCAT:
NoInitialContextException:
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!!
PLEASE PLEASE HELP ME!
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
_________________________________________________________________