Hello friends,
I am a new fan of Java Servlet, however I am really frustrated. Your
help will be deeply appreciated.
Reference: I use "Sun-solari" as os, "Netscape Enterprise 3.6" as web
server, "Sybase ASE 11" as back-end DB, "JConnect4.0" as DB connective.
"jdk 1.1.x", "no problem compling code", "no problem connecting to
database"
Question 1: I downloaded JSDK2.0 API, start with "servletrunner -p
9000", everything works fine.
if I start with servletrunner or "servletrunner -p 8080", get:
servletrunner starting with settings:
port = 8080
backlog = 50
max handlers = 100
timeout = 5000
servlet dir = ./examples
document dir = ./examples
servlet propfile = ./examples/servlet.properties
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.bind(Compiled Code)
at java.net.ServerSocket.<init>(Compiled Code)
at java.net.ServerSocket.<init>(Compiled Code)
at sun.servlet.http.HttpServer.run(Compiled Code)
at sun.servlet.http.HttpServer.main(Compiled Code)
If I do not start "servletrunner" and go to
http://myhost:8080/servlet/[servlet name], only examples like
"HelloWorldServlet", "SessionServlet" .. can work. My own servlet which
is in /examples could not found "404 Not Found". It is wired, who start
servletrunner -p 8080? Can it be started automatically using 8080 port?
How can I write a script file which could start servletrunner
automatically when user access a servlet and stop it when leave servlet
dir? May not be?!
Question 2: Then I enabled "Java Interpreter" from "Netscape Enterprise
Server 3.6". Now if I go to http://myhost/servlet/[servlet name], I can
start up servlet automatically. But the servlet engine "NESrunner" is
too weak to fully support JSDK API. (I think so, maybe not?). So I leave
it alone again. Next step:
Question 3: I downloaded a free JRun, installed it to my own dir but not
root (because I am scared). After finishing installation, I restart web
server, start JRun, go to
http://myhost/servlet/[servlet name].
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 Server's error log says:
process-uri-objects reports: cannot find template jrun
What's wrong with this? Should I install the JRun to the root?
Oh, please, please help me, I am going mad. Thanks for your guys
patients and have a good one.
___________________________________________________________________________
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