Hello all,
I believe this must have been talked about tons of time, and i haven't
been able to find an anwser that satifies me in the archive.
I made an application into an EAR : a servlet locating a stateless EJB
and call a method and finaly show the result of the call to the html
client. nothing too fancy, some kind of hello world thing.
my application work fine with JBoss + embedded jetty
but fail to execute on JBoss + embebed tomcat.
Actually i should detail this a bit more.
if i call my servlet i have this infamous exception in the Jboss console :
[EmbeddedTomcat] javax.naming.NoInitialContextException: 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
But If call first the EAR example servlet shipped with the application
(under /jboss ) , and then my servlet, it works perfectly.
I believe the EAR is well packed and that it has all the required files.
if someone believe something could be wrong in it. i 'll provide it.
So i was wondering what was going wrong and what can i do not to have
to call the EAR example before i can test my application ?
Cheers,
Elouan
-----
Jboss 2.0 final
embedded tomcat 3.2b7
jdk1.3
nt4
-----
that's my call to locate the EJB:
Context ctx = new InitialContext();
MyEjbHome myHome = (MyEjbHome) ctx.lookup("myEjb");
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]