[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: hibernate.properties not found
henry_h
do-not-reply at jboss.com
Wed May 28 12:29:14 EDT 2008
thanks,
I went over to JBoss 5.0 Beta and I have no this error!
Know i have another problem. I see in the JMX console that my EJBs are deployed and are activated , nevertheless I become this error when i am trying to run the client:
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
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at client.kap09.BankClient.main(BankClient.java:17)
my client code snippet for the JNDI and naming look like follows :
Context ctx = new InitialContext();
Object ref = ctx.lookup("BankBean/remote");
BankRemote bvr = (BankRemote) PortableRemoteObject
.narrow(ref, BankVerwaltungRemote.class);
BufferedReader din = new BufferedReader(new InputStreamReader(
System.in));
????
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154031#4154031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154031
More information about the jboss-user
mailing list