[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Re: Installing Tomcat 4 with Apache on Cobalt
- Subject: [cobalt-developers] Re: Installing Tomcat 4 with Apache on Cobalt
- From: "William L. Thomson Jr." <support@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri Mar 28 11:19:00 2003
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Peter,
On Fri, 2003-03-28 at 13:51, Peter Reynolds wrote:
> Hello William,
>
> Thanks for the very helpful reply. Your assistance is much appreciated.
>
> Here's the contents of my mod_jk.conf file:
>
> JkWorkersFile /opt/catalina/conf/workers.properties
Why don't you email me what's in the workers.properties as well.
> JkLogFile /var/log/httpd/mod_jk.log
> JkLogLevel error
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
Usually I enable java on a per site basis and not globally. You might
want to try it that way instead of globally. It's a pain but put the
JKMount stuff in each virtual site between the virtual tags.
> And this is what I added to httpd.conf to get the mod_jk loaded:
> <Location ~ ".*/WEB-INF/">
> AllowOverride None
> deny from all
> </Location>
>
> <Location ~ ".*/META-INF/">
> AllowOverride None
> deny from all
> </Location>
> LoadModule jk_module modules/mod_jk.so
> Include /opt/jakarta-tomcat/conf/mod_jk.conf
Good.
> I think you might be right in thinking the error is in here. Although
> I've tried various additional JkMount commands with no luck; i.e.
> /examples/*.jsp ajp13 and /examples/servlet/* ajp13
It might be that those are outside of the virtual site tags. Could be a
mood issue and have nothing to do with your problem.
> > It could be something as simple as the order you started things. Make
> > sure to start Tomcat and have it fully up and running before you start
> > Apache. I usually will wait almost a minute in between starting Tomcat
> > and then Apache.
> This certainly could have been a problem as I've tried relentlessly
> different server.xml configs. Indeed the examples app does now indeed
> appear to be partially working. Browse http://www.r-hosts.com/examples
> to see what I mean. None of the servlets are found but some of the
> .jsps load correctly others report java errors.
That's a start.
> I had another look at the logs and noticed this in apache's:
> 2003-03-28 18:25:01 Internal Error: File /WEB-INF/web.xml not found
You will need to have a web.xml file, and in it should contain any
servlets that need to be started, and used.
It may still be required even outside of the one in the different apps.
Worse case just leave the one at the doc base empty. Include the basic
stuff, but leave out any servlet entries. Something like
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
</web-app>
> In an attempt to fix this (there is certainly no WEB-INF/web.xml
> directory in home/sites/site1/web directory only in the webapp
> directories within it, i.e. examples) I tried changing the Context
> docBase in server.xml to /home/sites/site1/web/examples rather than
> /home/sites/site1/web/ and ammending the JkMounts to include /examples
> at the beginning of their paths but then nothing worked – all .jsps had
> Tomcat reporting 404s again.
I would leave the context path as is, and try the suggestion above.
> I've checked this and it looks enabled correctly.
Good otherwise servlets will not be started. Even if specifying them in
the web.xml files.
> Not sure where to go from here :-(
There are still plenty of things to look into.
> Thanks again for your generosity with your time; I was going quite
> potty with frustration!
No worries. We will get you there sometime soon.
--
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
3548 Jamestown Ln.
Jacksonville, FL 32223
Phone/Fax 904.260.2445
http://www.obsidian-studios.com