[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Tomcat installed but not working (continuation)
- Subject: [cobalt-developers] Tomcat installed but not working (continuation)
- From: Jay Nelson <jay@xxxxxxxxxxx>
- Date: Mon Oct 29 15:44:15 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
I am a bit baffled here because it looks like it should work
but it doesn't. Here is what I have done:
1) Installed Release 1.3 Java
2) Installed Java update 1.0
3) Installed a login.war file in my root directory
-- Includes path/to/my/Login.class file in classes
-- Includes a modified web.xml in WEB-INF
I can launch /etc/rc.d/init.d/tomcat.init start
My contexts are set up for all my virtual machines
and my new context of /login
I can see in the /usr/java/jakarta-tomcat-3.2.3/work
directory has a bunch of directories with my virtual
hostnames followed by _8080 and even one for my
new context _8080%2Flogin
I put a file called realPath.jsp (from the text examples
in the webapps.inactive directory) into my root directory
/home/sites/home/web
ps aux shows all the java threads running, the httpd
threads running.
I request http://www.mymainhost.com/realPath.jsp
and I get served the file with the % still in the source html.
No translation is done. I get no response trying every
combination of http://www.mymainhost.com/login
followed by servlet/classname, or just classname,
(including variants with path.to.my.Login)
or using a new servlet name that I set up in web.xml so
that /login/form refers to the classname (path.to.my.Login.class).
I notice that /usr/java/jakarta-tomcat-3.2.3/conf/tomcat.conf
says to include a reference to this file in httpd.conf, which
I try, but there is no libexec/mod_jserv.so. In fact, no
mod_jserv.so to be found on my machine. I have to comment
it back out to start the httpd server.
I also notice that in tomcat.conf at the bottom of the file
the security stuff about CONTEXT/WEB-INF denied access
is commented out. I try http://www.mymainhost.com/WEB-INF
and of course get a directory listing because tomcat doesn't
seem to be intercepting requests anyway.
I also notice that there is a mod_jk.conf-auto generated
by the cobalt scripts. It refers to libexec/mod_jk.so but the
only mod_jk.so I have is in /usr/lib/apache. I also notice
that the end of the mod_jk.conf-auto file is the only place
that /servlet/* is mapped to ajpv12, and the corresponding
snippet in mod_jk.conf-cobalt-auto has one line listing my
/login/servlet/* mapped to ajpv12
I've tried everything I can think of now. It seems mod_jserv.so
handles Java Server Pages and mod_jk.so handles Java servlets.
I've read through the Cobalt online documentation and they
talk about restarting the httpd server to restart tomcat, but in
my case they are two things that I start separately
(httpd first, then tomcat).
Questions:
1) Should I have mod_jk.so and mod_jserv.so?
2) Where should they be installed (/etc/httpd/libexec)?
3) Should httpd.conf include /usr/java/jakarta-tomcat-3.2.3/conf/tomcat.conf?
4) How do mod_jk.conf-auto and mod_jk.conf-cobalt-auto get included?
5) What is the pathname I use to view a .jsp page?
http://www.mymainhost.com/realPath.jsp
6) What is the pathname I use to load a servlet?
7) Should I get a response from http://www.mymainhost.com:8080/ ?
8) Did my install go wrong? Should I unistall and reinstall?
9) Do I have to uncomment the bottom section of the tomcat.conf
to get protection for my WEB-INF?
(I thought the update patch took care of the security issue)
Thanks for any help you can provide me.
jay
---------------------------------------------------
DuoMark International, Inc.
6523 Colgate Avenue, Suite 325
Los Angeles, CA 90048-4410 / USA
Voice: +1 323 381-0002
FAX: +1 323 549 0172
Email: jay@xxxxxxxxxxx
WWW: http://www.duomark.com/