Hi
I am trying to call a simple Helloworld EJB thru a servlet.
The source of the servlet is.....
Properties h = new Properties();
out.println( "output 1 \n" );
h.setProperty(Context.INITIAL_CONTEXT_FACTORY,"allaire.ejipt.ContextFactory"
);
out.println( "output 2 \n" );
h.setProperty(Context.PROVIDER_URL,"ejipt://localhost:2323");
out.println( "output 3\n" );
Context ctx = new InitialContext(h);
out.println( "output 4\n" );
Object o = ctx.lookup("statelessSession.HelloWorldBean");
out.println( "output 5\n" );
HelloWorldHome home = (HelloWorldHome)(o);
out.println( "output 5---a\n" );
HelloWorld helloworld = home.create();
out.println( "output 6\n" );
the output the servlet shows is upto
lines
output1
output2
output3
output4.
Once it tries to do the lookup it fails and shows exception
javax.naming.NameNotFoundException: statelessSession.HelloWorldBean not
found
at allaire.ejipt._NamingContext.lookup(_NamingContext.java:115)
at allaire.ejipt._ClientContext.lookup(_ClientContext.java:147)
I need some help with EJB deployment...
I have a web app...through which I call the servlet.
also I have the beans hosted on the localhost using JMC as HelloWorld.jar.
Somewhere the servlet is not able to find the jar file.
Can anyone pass detailed inputs how can I do so...
i.e. set my CLASSPATH for the web app maybe to refer to the beans jar file
too.
Thanks
Jeetu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists