Chris Trueman wrote:
> Not this is much help but once the server is started I can access it using:
> http://127.0.0.1:8080 without any problems.
>
None of the suggested changes to the URL have anything to do with the cause of
this error message.
The "NoSuchMethodError" in the stack trace implies that you have the wrong
servlet classes in your classpath. Make sure you are using the JAR files in
the "lib" directory underneath where you installed JSWDK -- in particular the
servlet.jar file that is there.
Craig McClanahan
>
> Mmmmm.
>
> Chris.
>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Atif
> > Mumtaz Khan
> > Sent: 22 December 1999 11:06
> > To: [EMAIL PROTECTED]
> > Subject: Jswdk problem -->
> > Importance: High
> >
> >
> > I have installled JSWDK-1.0.1 on WIndows NT workstation.
> > On running startserver.bat file, the web server get started.
> > Now when I go to the browser and give URL as http://127.0.0.1:8080/
> >
> > I get the follwing error displayed in the browser:
> > ______________________________________________________
> > Error: 500
> >
> > Internal Servlet Error:
> >
> > java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
> > getResource(Ljava/lang/String;)Ljava/net/URL; not found
> > at com.sun.web.core.DefaultServlet.doGet(DefaultServlet.java:54)
> >
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
> > at
> > com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
> > at com.sun.web.core.Context.handleRequest(Context.java:414)
> > at
> > com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)
> > _______________________________________________________
> >
> >
> > While on the server console, it initialises the servlet, it gives
> > message as:
> > com.sun.web.core.DefaultServlet: init
> >
> > If the web server is running and the servlet is also getting
> > initialized, why it's throwing the exception??
> >
> > Any help will be appreciated.
> >
> > Thanks,
> > Atif
> >
> > __________________________________________________________________
> > _________
> > 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
___________________________________________________________________________
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