tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <j...@kilbride.com>
Subject Re: HelloWorld example
Date Wed, 25 Apr 2001 01:29:42 GMT
Hi Mike,

It looks like the request isn't being forwarded to Tomcat by Apache. That
usually means there's a JkMount statement missing. How are you including
your mod_jk.conf-auto into httpd.conf?

Look at the mod_jk.conf-auto file and you should see statements like these:

-----------------
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /path/to/tomcat/conf/workers.properties
JkLogFile /path/to/tomcat/logs/mod_jk.log
JkLogLevel error

Alias /examples "/path/to/tomcat/webapps/examples"
<Directory "/path/to/tomcat/webapps/examples">
    Options Indexes FollowSymLinks
</Directory>

JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
-----------------

Did you restart apache after installing the /examples context?

Thanks,
--jeff


----- Original Message -----
From: "Michael Bergknoff" <bergk@yahoo.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, April 24, 2001 6:06 PM
Subject: Re: HelloWorld example


> httpd/logs/access_log is the apache log.
> The error_log in the same directory doesn't have any
> new entries. The only message from today is:
> [Tue Apr 24 16:35:33 2001] [notice] Apache/1.3.12
> (Unix)  (Red Hat/Linux) mod_jk PHP/3.0.15
> mod_perl/1.21 configured -- resuming normal operations
>
>
> Thanks,
> Mike
> --- Tan Khim Siang <tanks@dv9.com> wrote:
> > Mike, check the error log of apache instead.
> >
> > Khim
> > ----- Original Message -----
> > From: Michael Bergknoff <bergk@yahoo.com>
> > To: <tomcat-user@jakarta.apache.org>
> > Sent: Wednesday, April 25, 2001 8:45 AM
> > Subject: Re: HelloWorld example
> >
> >
> > > The error appears to come from apache.
> > > No message is printed to any tomcat logs.
> > > In httpd/logs/access_log I get this:
> > > 127.0.0.1 - - [24/Apr/2001:17:42:42 -0700] "GET
> > > /examples/servlet/HelloWorldExample HTTP/1.0" 403
> > 298
> > >
> > > Thanks,
> > > Mike
> > >
> > >
> > > --- Jeff Kilbride <jeff@kilbride.com> wrote:
> > > > Is this 403 page being generated by Apache or
> > > > Tomcat? Check your Apache or
> > > > Tomcat logs, if you're not sure.
> > > >
> > > > --jeff
> > > >
> > > > ----- Original Message -----
> > > > From: "Michael Bergknoff" <bergk@yahoo.com>
> > > > To: <tomcat-user@jakarta.apache.org>
> > > > Sent: Tuesday, April 24, 2001 5:34 PM
> > > > Subject: Re: HelloWorld example
> > > >
> > > >
> > > > > I get a 403 Forbidden error with that URL
> > > > > (You don't have permission to access
> > > > > /examples/servlet/HelloWorldExample on this
> > > > server).
> > > > >
> > > > > Thanks,
> > > > > Mike
> > > > >
> > > > > --- Jeff Kilbride <jeff@kilbride.com> wrote:
> > > > > >
> > > >
> > http://localhost/examples/servlet/HelloWorldExample
> > > > > >
> > > > > > Just get rid of the "8080" port designation.
> > For
> > > > the
> > > > > > examples, the
> > > > > > mod_jk.conf-auto should work without any
> > > > > > modification.
> > > > > >
> > > > > > Thanks,
> > > > > > --jeff
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Michael Bergknoff" <bergk@yahoo.com>
> > > > > > To: <tomcat-user@jakarta.apache.org>
> > > > > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > > > > Subject: HelloWorld example
> > > > > >
> > > > > >
> > > > > > > The example hello world servlet
> > distributed
> > > > with
> > > > > > > tomcat
> > > > > > > is accessed via the standalone tomcat as:
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://localhost:8080/examples/servlet/HelloWorldExample
> > > > > > >
> > > > > > > With mod_jk and apache what is the URL to
> > > > access
> > > > > > the
> > > > > > > same servlet? I have included the
> > > > > > > mod_jk.conf-auto in httpd.conf. Is there
> > any
> > > > other
> > > > > > > config. required?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Mike
> > > > > > >
> > > > > > >
> > > >
> > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Yahoo! Auctions - buy the things you want
> > at
> > > > great
> > > > > > prices
> > > > > > > http://auctions.yahoo.com/
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Auctions - buy the things you want at
> > great
> > > > prices
> > > > > http://auctions.yahoo.com/
> > > > >
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>


Mime
View raw message