Hi!

I am develop servlets using NetscapeEnterprise 3.6 (Unix platform) as Web
Server and JSDK2.0.The Web Server support servlets (extends httpservlet).
However it not contain someones classes and methods that I want to use as
the HttpSession and this classes and methods are in JSDK2.0

I want to use session variables througt the httpSesion class and I would
like know if it is posible to do? Do I need someone special configuration
in the Web Server? What I have to do to get funcionality?

I have been testing the jsdk2.0 examples (SimpleServlet, SessionServlet y
SnoopServlet) . When my computer works as a  Web Server (using
servletrunner.exe "jsdk2.0/bin/servletrunner -v") all the examples run, but
when I install it in the real Web Server  (servlets location .class -->
/web/ns-home/plugins/java/servlets/) and I do the request to the servlet it
sends to me an error message like this:

Petition:       http://10.222.5.198/servlet/SessionServlet
Request:        java.lang.NoSuchMethodError:
                javax.servlet.http.HttpServletRequest: method getSession
(Z)Ljavax/servlet/http/HttpSession;
                not found at * at
javax.servlet.http.HttpServlet.service(HttpServlet.java:252) at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:330) at
                sun.servlet.netscape.NSRunner.run(NSRunner.java:144) at

netscape.server.applet.ServerApplet.handleRequest(ServerApplet.java:69) at

netscape.server.applet.HttpApplet.handleRequest(HttpApplet.java:680)

Petition:       http://10.222.5.198/servlet/SimpleServlet
Request:        java.lang.NoSuchMethodError: javax.servlet.ServletResponse:
method getWriter ()Ljava/io/PrintWriter;
                not found at SimpleServlet.doGet(SimpleServlet.java:48) *
at            javax.servlet.http.HttpServlet.service(HttpServlet.java:252)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:330) at
    sun.servlet.netscape.NSRunner.run(NSRunner.java:144) at
netscape.server.applet.ServerApplet.handleRequest(ServerApplet.java:69) at

netscape.server.applet.HttpApplet.handleRequest(HttpApplet.java:680)

Cheking the classes allowed in my PC(jsdk.jar) vs the classes allowed en
the Web Server (servlet3_5.zip)  I can see that in the Web Server don�t
exist the sesion classes as HttpSession and in the HttpServletRequest class
don�t exist the getSession method, then I try to add this classes puting
the jsdk.jar in the Web Server classpath but it don`t recognize its.
However, the Web server has the classes servlet3_5.zip (it container the
javax/servlet/*.*  and  javax/servlet/httpd/*.* classes) and I can�t
replace or  delete its, and if I add the HttpSession and HttpServletRequest
the Web Server send to me an error message like this:

        http://10.222.5.198/servlet/SimpleServlethttp://10.222.5.198/servlet/SessionServlet
        Server Error
        This server has encountered an internal error which prevents it
from fulfilling your request. The most likely cause is a
misconfiguration. Please ask the administrator to look for messages in the
server's error log.


The servlet3_5.zip file is
        In the path  "/web/ns-home/plugins/java/classes/"
        In the classpath
        In the .profile of httpd user

        Exist other directory where are servlet3_5.zip file?
        Or any place or file of the web server?


Can you help me with this?, What I can do?.

Thank for all.

___________________________________________________________________________
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