[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-java
Subject: Re: some bits of help still needed (with jakarta)
From: Sven Reimers <reimers () tu-harburg ! de>
Date: 2000-04-26 6:47:39
[Download RAW message or body]
Hi Chris,
Christoph Kukulies wrote:
>
> I ran the bootstrap.sh and build.sh in /usr/local/jakarta-ant
> and the build.sh in /usr/local/jakarta-tomcat.
>
> Now what? Running the startup shells script in ../build/jakarta
> gives me an exception saying that address already in use. Pointing to
> the fact that probably my apache server is running in the
> apache/jserv configuration.
It is not Apache itself but the connection Apache to Jserv that is
causing the problem.
For a start you may just stop your Apache ant start tomcat standalone.
You can reach it
in standard configuration under <yourhost>:8080. This should work.
After that change the Apache configuration in the following way:
#Include etc/apache/jserv.conf // Comment out this line in your
apache.conf
Include /usr/local/tomcat/etc/tomcat.conf // Put in this instead (where
ever your tomcat.conf lives)
This takes care of your problem.
Here my tomcat.conf
###############################################################################
# Apache JServ Configuration
File #
###############################################################################
# Note: this file should be appended or included into your httpd.conf
# Tell Apache on win32 to load the Apache JServ communication module
# LoadModule jserv_module modules/ApacheModuleJServ.dll
# Tell Apache on Unix to load the Apache JServ communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
LoadModule jserv_module libexec/apache/mod_jserv.so
<IfModule mod_jserv.c>
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServLogFile /var/log/jserv.log
### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
ApJServDefaultPort 8007
#################### All jsp files will go to tomcat
####################
ApJServMount default /root
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
############################## Context mapping - all requests go to
tomcat
ApJServMount /examples /root
ApJServMount /JCVSlet /root
############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
##
# ApJservMount /CONTEXT/servlet /root
# <Location /CONTEXT/WEB-INF/ >
# AllowOverride None
# deny from all
# </Location>
</IfModule>
Hope this fixes your problems (at least for a start)
Sven
>
> I couldn't find any direct installation instructions to configure
> apache though www.apache.org/jakarta has a vast FAQ on this kind
> of issues but it's hard to find the starting point.
>
> Edward (Wolpert) you wrote:
>
> "First, you need to modify the http.conf file in /usr/local/etc/apache as
> it stipulates in the installation directions for tomcat. (Check the website)
> it's actually easy. They have 'default' instructions, and check the userguide
> as well for more complete information)"
>
> I'm totally lost here. Cannot find the information you are
> referring. Sorry.
>
> Also, I'm reading that tomcat doesn't reload altered servlets automatically.
> I think apache/jserv does it. And I think it is an essential feature when one
> is developing servlets. Without this feature, is it really worth
> dealing with tomcat?
>
> Help! I need to get a working Servlet 2.<at least 1> API
> by tomorrow.
>
> Spent the whole day with downloading/compiling/installing tomcat now
> and to step further with development.
>
> S.O.S.
>
> --
> Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic