This error occurs when you create an InitialContext without any env (new
InitialContext())
and there is no jndi.properties file in your classpath. What is changing in the server
env
between the first and subsequent runs?
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 30, 2000 9:09 AM
Subject: [jBoss-User] NoInitialContextException]
> I wrote a server application that periodically polls the database for a
> specific set of conditions. Each time these conditions are met, the
> application runs a sequence of ejbs. The first time around, all
> processing is successfull. The second and subsequent times, I get the
> following exception:
>
> Could not export batch. javax.naming.NoInitialContextException in
> batchserver.ExportProcess.process(): 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
>
> I am wondering what is going on.
>
> Thank you for your help!
>
> Thomas Kirsch
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]