Problem with EJB(Session+Entity bean)
Hello Friends,
While executing the example of EJB(CMP ex )from 9th chap. of "Beginning J2EE 1.4"I got following error code:-
java.lang.UnsupportedClassVersionError: com/sun/enterprise/naming/SerialInitContextFactory (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass( Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(U nknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at client.StockClient.getStockList(StockClient.java:7 1)
at client.StockClient.<init>(StockClient.java:27)
at client.StockClient.main(StockClient.java:210)
It is example of session + entity bean(CMP).Please help me solving the problem as I am stuck badly at this point and cant come out..
Thanking You all,
Sincerely,
hiparry_m
|