Wrox Programmer Forums
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 November 27th, 2003, 08:37 AM
Registered User
Join Date: Nov 2003
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

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

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