Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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,


Reply With Quote
  #2 (permalink)  
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

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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:28 PM.

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