From owner-freebsd-java Tue Apr 25 23:47:54 2000 Delivered-To: freebsd-java@freebsd.org Received: from rztsun.rz.tu-harburg.de (rztsun.rz.tu-harburg.de [134.28.200.14]) by hub.freebsd.org (Postfix) with ESMTP id D9B6D37B765 for ; Tue, 25 Apr 2000 23:47:47 -0700 (PDT) (envelope-from reimers@tu-harburg.de) Received: from tu-harburg.de (data.et8.tu-harburg.de [134.28.45.64]) by rztsun.rz.tu-harburg.de (8.9.0/8.8.8) with ESMTP id IAA15610; Wed, 26 Apr 2000 08:47:43 +0200 (MET DST) Message-ID: <3906910B.AF58B6F7@tu-harburg.de> Date: Wed, 26 Apr 2000 08:47:39 +0200 From: Sven Reimers X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Christoph Kukulies Cc: java@FreeBSD.ORG Subject: Re: some bits of help still needed (with jakarta) References: <200004251652.SAA95565@gil.physik.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 :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 # 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 # # AllowOverride None # deny from all # 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. 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