Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GW6.5 Webaccess on Apache/Linux

1 view
Skip to first unread message

Erik Pentz

unread,
Aug 28, 2003, 12:05:17 PM8/28/03
to
I've installed GW6.5 Webaccess on a RedHat Linux 9 server running Tomcat and Apache. Everything seems ok until shortly after I contact the server address thru a web browser. I get the initial index page for language selection, however, I receive a 404 error - object not found after hitting 'go'. I've followed Novell's GW6.5 Webaccess documentation step-by-step and retraced my steps and I can't figure this one out. I've been unable to find anything in Novell's knowledgebase or forums that would lead me in the right direction. I thought maybe I've installed the servlets in the wrong directory, but that's just a guess. Any suggestions would be greatly appreciated.

Erik Pentz
Network Admin


Jim Michael

unread,
Aug 28, 2003, 3:30:31 PM8/28/03
to
Is the 404 being returned by Apache, or by Tomcat? The difference is easy to
spot, as Tomcat's 404 will be on a screen with bright blue bars, etc.

Assuming this is an Apache-generated 404, this implies that Apache doesn't
even "know" about the servlet context to pass requests to Tomcat.. when
Apache sees /servlet/webacc in a URL, it needs to KNOW that this URL belongs
to Tomcat, and that it's not a subdirectory in the Apache document root. The
404 implies that Apache does indeed think it's supposed to handle this
content itself, which of course does not exist.

So, first thing to check is your apache HTTPD.CONF file. Are there JKMount
statements telling apache about the /servlet/* context? On a typical apache
file you should see a statement like this:

JkMount /servlet/* ajp13

do you have that?

--
Jim
NSC Sysop

Erik Pentz

unread,
Aug 29, 2003, 7:04:23 AM8/29/03
to
I looked thru the httpd.conf file and didn't see any JkMount statements. Could this be the problem and if so exactly what statements would I need added and where in the file should I add them?

Jim Michael

unread,
Aug 29, 2003, 10:39:14 AM8/29/03
to

Yes, that's the problem. Your apache server simply doesn't even know to hand
off requests for webaccess to Tomcat. At a minimum you should have these
directives:

LoadModule jk_module modules/mod_jk.nlm

JkWorkersFile "<path to workers file>/workers.properties"
JkLogFile "<path to logs directory>/mod_jk.log"
JkLogLevel error

JkMount /servlet/* ajp13

--
Jim
NSC Sysop

Erik Pentz

unread,
Sep 2, 2003, 12:22:33 PM9/2/03
to
Thanks. I'll check into this.

klancar

unread,
Jan 29, 2004, 6:09:17 PM1/29/04
to
I just got mine working. I struggled for 2 days because an old doc on novell support said to use a worker called ajp12. didn't notice that the wokers.properties in adminsrv said ajp13!!!!!! argh....

at the end of httpd.conf add

include "sys:/apache2/conf/GWApache2.conf"

and in GWapache2.conf put:
#
# Root context mounts for Tomcat
#
LoadModule jk_module sys:/apache2/modules/mod_jk.nlm
JkWorkersFile "SYS:/adminsrv/conf/mod_jk/workers.properties"
JkLogFile "SYS:/tomcat/4/logs/mod_jk.log"
#
# Log level to be used by mod_jk
#
JkLogLevel info
#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

reload everying and it should work

good luck
Tony

0 new messages