Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
| Search | Today's Posts | Mark Forums Read
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2004, 09:41 AM
Registered User
 
Join Date: Oct 2004
Location: PUNE, Maha, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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


 
Old October 15th, 2004, 01:54 PM
Registered User
 
Join Date: Oct 2004
Location: des moines, IOWA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ashyabhi
Default

:)
hi
just analysing ur problem , i guess that ur client is not able to lookup the ur ejb.

so take care of this . and check the classpath variable too. thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
java bean VS ejb kishore.dyn J2EE 0 February 20th, 2006 01:58 AM
Using JavaBean with Session Bean siddsonline J2EE 0 April 12th, 2005 07:16 AM
bean problem sandi JSP Basics 3 April 5th, 2005 01:22 PM
Removing a stateful session bean from client code noman77 J2EE 0 February 24th, 2005 01:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.