[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Connecting Apache & Tomcat



On Tue, Nov 05, 2002 at 09:34:09PM +0100, Pavol Gono wrote:
> I wanted to try some Java Server Pages, so I today installed Apache,
> Tomcat and some other required packages from woody. Apache works fine
> for simple HTML, with Tomcat (on port 8180) I can view my .jsp files.
> But I want to view jsp with Apache.
> apache is 1.3.26-0woody3, tomcat 4.0.3-3woody1 (+ webapps)
> In file /etc/tomcat4/server.xml I read:
> ----
> To configure the Apache side, you must ensure that you have the
> "ServerName" and "Port" directives defined in "httpd.conf". Then,
> lines like these to the bottom of your "httpd.conf" file:
> 
> LoadModule webapp_module libexec/mod_webapp.so
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy examples warpConnection /examples/
> 
> The next time you restart Apache (after restarting Tomcat, if needed)
> the connection will be established, and all applications you make
> visible via "WebAppDeploy" directives can be accessed through Apache.
> ----
> so I installed libapache-mod-webapp v. 1.2.1-1 (the mod_webapp.so was

Have a look at the package description for libapache-mod-webapp.
*waves hand*
'This is not the package you seek' :-)

For apache2, there is a module called mod_webapp, packaged in the
libapache2-mod-webapp package.  For apache1, however, you want
libapache-mod-jk.  Have a look at the Suggests for tomcat4.  I've no
idea why the packages were named so inconsistently, but all the info is
there if you dig a little.

> loaded fine) and then I added lines with WebAppConnection and
> WebAppDeploy into my httpd.conf. But when I started apache deamon, it
> writed:
> 
> Starting web server: apacheSyntax error on line 245 of
> /etc/apache/httpd.conf:
> Invalid command 'WebAppDeploy', perhaps mis-spelled or defined by a
> module not included in the server configuration
> failed

I'm fairly sure everything else will Just Work.

-rob

Attachment: pgpqG3eJhO5Yr.pgp
Description: PGP signature


Reply to: