Thanks Steve....

I am able to run the applet, but when it calls the servlet, I see following
messages in JAVA CONSOLE.


netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code) netscape.security.AppletSecurityException: security.class from local
disk trying to access url:
http://localhost:8080/servlet/TestServlet?name=Sanjay
   at java.lang.Throwable.<init>(Compiled Code)
   at java.lang.Exception.<init>(Compiled Code)
   at java.lang.RuntimeException.<init>(Compiled Code)
   at java.lang.SecurityException.<init>(Compiled Code)
   at netscape.security.AppletSecurityException.<init>(Compiled Code)
   at netscape.security.AppletSecurityException.<init>(Compiled Code)
   at netscape.security.AppletSecurity.checkURLConnect(Compiled Code)
   at java.lang.SecurityManager.checkURLConnect(Compiled Code)
   at netscape.net.URLConnection.connect(Compiled Code)
   at netscape.net.URLConnection.getInputStream(Compiled Code)
 * at java.net.URL.openStream(Compiled Code)
   at TestApplet.init(Compiled Code)
   at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled
Code)
   at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
   at java.awt.EventDispatchThread.run(Compiled Code)
   at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)
java.lang.NullPointerException
   at sun.awt.windows.WGraphics.drawString(Compiled Code)
   at TestApplet.paint(Compiled Code)
   at java.awt.Component.dispatchEventImpl(Compiled Code)
   at java.awt.Container.dispatchEventImpl(Compiled Code)
 * at java.awt.Component.dispatchEvent(Compiled Code)
   at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
   at java.awt.EventDispatchThread.run(Compiled Code)
   at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)


which beats me...seems like a security violation...Any ideas ?

Sanjay Jain


> -----Original Message-----
> From: Steven D. Meacham [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 15, 2000 1:59 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: new member
>
> Pretty much everybody gets errors when posting to the list.  Some
> individuals and mail servers have an auto-respond turned on, so every
> message you send will send back a handful of "out of office" or "not on
> server" messages.
>
> Welcome to mailing lists.
>
> Your applet doesn't "run".  You place an <applet code=...> tag in an HTML
> document.  When you browse to that document, the tag, in turn, will fire
> up
> your applet.  The applet is as free to be in any document directory as an
> image is.  Servlets need to be placed in a particular "servlet" directory,
> specified by your web server (or add in servlet engine).
>
> By the way, this is a servlet discussion group, so the volume of applet
> questions should probably be posted elsewhere, unless dealing with servlet
> interactions.
>
> Steven
>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's
> > Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Jain,
> > Sanjay (Exchange)
> > Sent: Monday, May 15, 2000 12:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: new member
> >
> >
> > Hi all, I got an error posting this message, so here it is again
> >
> > I am absolutely new to Java and web technology. I have installed JSWDK
> > package on my PC and tested a sample servlet as explained
> > below by Liwen. My
> > next question is --
> >
> > How do I call a servlet from an applet ? where should the
> > applet and servlet
> > reside. currently I can run the servlet alone from the
> > browser, but am not
> > able to run the applet itself. I get 404 trying to run the
> > applet. what URL
> > should I specify for running the applet and which directory
> > should it be in.
> > Currently the applet is in a directory specified in classpath.
> >
> > Sanjay
> >
> >
> > Sanjay Jain
> > 8-226-7069
> >
> > > -----Original Message-----
> > > From: Liwen Chen [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, May 15, 2000 3:52 AM
> > > To:   [EMAIL PROTECTED]
> > > Subject:      Re: new member
> > >
> > > if i am not wrong, it's coming as a zip file. you unzip to whatever
> > > directory you want. then add all the
> > > jar files to your classpath. remember to add the tools.jar
> > file in your
> > > jdk_root/lib. installation then finished.
> > > to start the server, just go to bin directory and run
> > "startserver" or
> > > something else.
> > >
> > > to test your servlet, put them under
> > jsdk_root\webpages\web-inf\servlets\.
> > > then using
> > > <http://localhost:8080/servlet/servletname>
> > >
> > > hope this will help
> > >
> > > liwen
> > >
> > >       ----- Original Message -----
> > >       From: rohit <mailto:[EMAIL PROTECTED]>
> > >       To: [EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>
> > >       Sent: Monday, May 15, 2000 1:02 PM
> > >       Subject: new member
> > >
> > >       Hello all
> > >        I just downloaded the Jsdk 2.1. Could someone please
> > tell me how to
> > > install and run it. Thanks in advance.
> > >
> > >       Rohit.
> > >
> >
> >
> > **********************************************************************
> > Please be aware that, notwithstanding the fact that the person sending
> > this communication has an address in Bear Stearns' e-mail system, this
> > person is not an employee, agent or representative of Bear Stearns.
> > Accordingly, this person has no power or authority to represent, make
> > any recommendation, solicitation, offer or statements or disclose
> > information on behalf of or in any way bind Bear Stearns or any of its
> > affiliates.
> > **********************************************************************
> >
> > ______________________________________________________________
> > _____________
> > To unsubscribe, send email to [EMAIL PROTECTED] and
> > include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
> > http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


**********************************************************************
Please be aware that, notwithstanding the fact that the person sending
this communication has an address in Bear Stearns' e-mail system, this
person is not an employee, agent or representative of Bear Stearns.
Accordingly, this person has no power or authority to represent, make
any recommendation, solicitation, offer or statements or disclose
information on behalf of or in any way bind Bear Stearns or any of its
affiliates.
**********************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to