Hi,

        When I run my applet, I got the following error :-

javax.naming.NoInitialContextException: Need to specify class name in
environment or system property: java.naming.factory.initial     at
javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager
.java:688)      at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:744)        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:181)  at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:219)
at javax.naming.InitialContext.lookup(InitialContext.java:288)  at
Applet1.jbInit(Applet1.java:98)         at Applet1.init(Applet1.java:55)        at
sun.applet.AppletPanel.run(Unknown Source)      at java.lang.Thread.run(Unknown
Source)

Albert

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Stirling
Sent: Tuesday, July 11, 2000 12:45 AM
To: [EMAIL PROTECTED]
Subject: Re: Applet and EJB


Data that is downloaded to the client from a web app must
always go into the web app's document root (the directory that contains
WEB-INF), or a subdirectory thereof.  Nothing that goes into WEB-INF or any
of
its subdirectories can be downloaded (or accessed directly) by an HTTP
client.
Think of your applet as a regular web resource to be served from the web
server
and put in the same place you would put its associated HTML file:

Example:

/index.html
/html/myApplet.html
/html/myApplet.jar
/WEB-INF/classes/
/WEB-INF/lib/
/WEB-INF/other_private_stuff

Scott Stirling
Allaire Corporation
http://www.allaire.com/developer/jrunreferencedesk/

> -----Original Message-----
> From: Albert [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 09, 2000 11:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [EJB-INT] Applet and EJB
>
>
> But when I run the html, it cannot find my applet class file
> which I already
> place in public_html/Web-inf/classes directory.
>
> Albert

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to