|
-
integrating Tomcat with Apache
Hi there,
I'm trying to integrate Tomcat with Apache. The instructions I've seen repeatedly on the NET are as follows:
1. Download
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from
http://jakarta.apache.org/builds/jak...se/v2.0.2/src/
2. Uncompress it and extract the tar file.
3. cd to
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
4. chmod u+x configure
5. Run configure with:
./configure \
--with-apxs2=<apache-root-directory>/bin/apxs \
--with-tomcat41=<tomcat-root-directory> \
--with-java-home=<java-root-directory> \
--with-jni \
--with-pcre
For example:
./configure --with-apxs2=/usr/local/apache/bin/apxs \
--with-tomcat41=/home/tomcat \
--with-java-home=/usr/java \
--with-jni \
--with-pcre
6. Run make
7. The two .so files (mod_jk2.so and jkjni.so) will be
in:
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2
8. Copy those to files to
<apache-root-directory>/modules with the
proper permissions.
9. Configure Apache and Tomcat
10. Restart and enjoy
Well, I've managed to obtain the jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz file and uncompress it. However, I'm getting stuck on item 5:
5. Run configure with:
./configure \
--with-apxs2=<apache-root-directory>/bin/apxs \
--with-tomcat41=<tomcat-root-directory> \
--with-java-home=<java-root-directory> \
--with-jni \
--with-pcre
I know the paths to tomcat and java but because I don't know the path to apache on Fedora Core 4, I am unable to provide one. When I run the configure without the line:
--with-apxs2=<apache-root-directory>/bin/apxs \
The whole configuration thing fails. I keep getting an error message saying:
no apxs given
no apache given
configure: error: Cannot find the WebServer
Obviously, I have to provide the path to the server and in many examples they site /usr/local/apache/bin/apxs as being the path. That is not the case on my machine! I did a complete search on my drive and didn't find a single directory named apxs.
What is the path supposed to be for the arguement: --with-apxs2=<apache-root-directory>/bin/apxs ????
Alan
Similar Threads
-
Replies: 1
Last Post: 09-04-2007, 12:48 AM
-
By Jose Rodz in forum Java
Replies: 4
Last Post: 06-21-2002, 11:05 PM
-
By Anindya Basu in forum Java
Replies: 1
Last Post: 04-18-2002, 05:24 PM
-
By Raymond Monroe in forum Java
Replies: 0
Last Post: 10-27-2001, 09:41 AM
-
By Ummair Waheed in forum Web
Replies: 0
Last Post: 10-13-2000, 09:32 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks