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 | 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
Closed Thread
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 27th, 2003, 08:37 AM
Registered User
Join Date: Nov 2003
Location: Jerusalem, , Israel.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JNDI Error

I wrote an EJB and I declared the object reference in JNDI using J2EE.
I wrote a client that use this EJB and I get an error.
The running command is:
java -classpath c:\j2sdkee1.2.1\lib\j2ee.jar;NumberKeeperClient.ja r;. NumberKeeperClient
The error that I get is:
javax.naming.CommunicationException: Can't find SerialContextProvider
        at com.sun.enterprise.naming.SerialContext.getProvide r(SerialContext.jav
        at com.sun.enterprise.naming.SerialContext.<init>(Ser ialContext.java:79)

        at com.sun.enterprise.naming.SerialInitContextFactory .getInitialContext(
        at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:6
        at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:243
        at javax.naming.InitialContext.init(InitialContext.ja va:219)
        at javax.naming.InitialContext.<init>(InitialContext. java:175)
        at NumberKeeperClient.createNumberKeeper(NumberKeeper Client.java:82)
        at NumberKeeperClient.<init>(NumberKeeperClient.java: 37)
        at NumberKeeperClient.main(NumberKeeperClient.java:20 4)

The specific command that it fails:
        InitialContext initialContext = new InitialContext();

Thank you for your help

Thank you,
Ofer Mizrahi
Closed Thread

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
Not binding factory to JNDI, no JNDI name configur 4java EJB 0 August 13th, 2007 11:20 AM
jndi tomcat anandp Apache Tomcat 1 July 13th, 2005 05:39 AM
JNDI problem nstickels BOOK: Expert One-on-One J2EE Design and Development 1 May 12th, 2004 01:03 PM
Tomcat JNDI DataSource issues mowoski Apache Tomcat 2 April 9th, 2004 12:10 PM

All times are GMT -4. The time now is 08:21 PM.

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