Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Problem deploying a servlet
Hi,
i am trying to deploy a simple servlet under oracle 8.1.7. The Name of the
Servlet-class is "einServlet.class" as shown below. I have tested the
servlet
with tomcat, and it works. As I am no Oracle Specialist I don't know why it
does not work. On Oracles homepage i have found an exmaple how to deploy a
servlet,
and I tried to do the same. When I write http://localhost, the
Oracle-HTTP-Server
works correctly. Maybe there's someone who can help me. Tnx, Markus
My System: Oracle 8.1.7 / Windows2000
In my INIT.ORA there's following:
mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
mts_dispatchers =
"(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=8020))(DISP=1)(PRE=http://scot
tService)"
Windows-Console:
sess_sh -u sys/change_on_install -s jdbc:oracle:thin:@localhost:1521:e019
--Session Shell--
--type "help" at the command line for help message
$ createwebservice -root /scottRoot scottService
$ addendpoint -port 8020 -register scottService main
$ createwebdomain -docroot /scott/htdocs /scottRoot
$ createcontext -virtualpath /test -docroot /scott/htdocs /scottRoot
scottContext
$ exit
Windows-Console:
Now I change to the directory where my servlet-file (.class) is located.
Now I load the Servlet which is named einServlet.class
loadjava -r -thin -user simmerl/markus_at_localhost:1521:e019 einServlet.class
After this has been done I run the shell again and publish the servlet and
set permissions:
sess_sh -u sys/change_on_install -s jdbc:oracle:thin:@localhost:1521:e019
--Session Shell--
--type "help" at the command line for help message
$ publishservlet -virtualpath /MyServlet /scottRoot/contexts/scottContext
einServlet SIMMERL:einServlet
$ chown -R SIMMERL /scottRoot
$ chmod -R +rwx public /scottRoot
$ ls scottRoot/contexts/scottContext/named_servlets
einServlet internalError
$ exit
Now i want to test my servlet in a browser (IE5.5): http://localhost:8020/test/einServlet
But it doesn't work. The page can not be found. Why? Received on Thu Apr 19 2001 - 02:04:51 CDT