Hi all,
I am trying to run my first
EJB. Its been problems all the way right from deploying to running. I was able to get over the NamingException after searching these forums thoroughly.(thanks to Z Zia)
I am trying to RUN the Advice example from Head First EJB.
I am now getting a new Exception

(
When I try to run my client code it throws this exception:
Exception in
thread "main" java.lang.UnsupportedClassVersionError: javax/ejb/EJB Home (Unsupported major.minor version 48.0)
I am using J2sdk1.4.2_04 and Sun
Java System Application Server Platform Edition 8.1.
All the classpath and path settings(including j2ee,jar) are correct.
a part of the code is:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
env.put(Context.PROVIDER_URL,"iiop://localhost:3700");
Context ic = new InitialContext(env);
Object o = ic.lookup("Advisor");
AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, AdviceHome.class);
Advice advisor = home.create();
System.out.println(advisor.getAdvice());
Thanks a lot!