Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Building jakarta-tomcat-connectors-jk2-2.0.2-src [HOW?]

Building jakarta-tomcat-connectors-jk2-2.0.2-src [HOW?]

2004-01-09       - By Carlos Cajina - Hotmail

 Back
Reply:     1     2     3     4     5  

Hi everyone.

Tryin' to build mod_jk2 for my Slackware box (version 9.1 with reiserfs) I've
come to a dead-end, and I would appreciate any help since the documentation I
've looked into (including the mailing lists) seems to be out of date regarding
the building process for version 2.0.2 of the Jakarta-Tomcat-Connectors.

Please consider the necessary enviroment variables set up as follows:

JTC_HOME = /usr/src/jakarta-tomcat-connectors-jk2-2.0.2-src/
JAVA_HOME = /usr/local/java/j2sdk1.4.2_03
TOMCAT_HOME = /usr/local/tomcat/jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.29
APACHE2_HOME = /usr/local/apache2
ANT_HOME = /usr/local/ant/apache-ant-1 (See http://ant-1.ora-code.com).5.4

In order to successfully run the Ant build file I had to:

1. Modify the provided $JTC_HOME/jk/build.properties.sample to match my
enviroment (set up paths, basically)
2. Create an empty 'java' directory inside $JTC_HOME/jk
3. Create the following directory structure inside $JTC_HOME: 'coyote/build/lib'
4. Copy every $TOMCAT_HOME/server/lib/*.jar file into $JTC_HOME/coyote/build/lib

After the build process, the necessary files to actually generate the *.so
module file for the JK2 connector are left in $JTC_HOME/jk/native2/server
/apache2

I assumed that the 'Makefile.in' file was the one to be renamed as 'Makefile'
in order tu run make, so I did renamed it and executed make but got the
following output:

mkdir -p ../../../build/jk2/apache2
make: APACHE2_HOME@/build/libtool: Command not found
make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 127

Apparently, the APACHE2_HOME@ variable was the source of the problem, so I went
and modified the Makefile changing APACHE2_HOME=@(protected)@
into APACHE2_HOME=/usr/local/apache2

That solved the problem, but then another one came up. When executing make
again, I got the folling output:

mkdir -p ../../../build/jk2/apache2
/usr/local/apache2/build/libtool  --mode=compile @(protected)@  @(protected)@    @(protected)
_CPPFLAGS@   -I../../include @(protected)@ @(protected)@  -I @(protected)@/include
-I @(protected)@/include/@(protected)@  -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR @(protected)
_JNI@ @(protected)@ -c ./../common/jk_channel.c -o ../../../build/jk2/apache2/jk
_channel.lo
rm -f ../../../build/jk2/apache2/.libs/jk_channel.lo
@(protected)@ @(protected)@ @(protected)@ -I../../include @(protected)@ @(protected)
@ -I @(protected)@/include -I @(protected)@/include/@(protected)@ -DCHUNK_SIZE=4096 -DUSE
_APACHE_MD5 -DHAS_APR @(protected)@ @(protected)@ -c ./../common/jk_channel.c  -fPIC
-DPIC -o ./../../build/jk2/apache2/.libs/jk_channel.lo
/usr/local/apache2/build/libtool: line 1: @(protected)@: command not found
make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1

Its seemed that the problem was now with the @(protected)@ variable -which I think
should point to /usr/bin/cc. I used the same reasoning as before I changed CC=
@(protected)@ for CC=/usr/bin/cc, but got an error message pretty much like the last one
except for the two last lines:

..
cc: cannot specify -o with -c or -S and multiple compilations
make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1

...And finally.... Here's where I'm stalled :-(

Any help will be geratly appreciated.

Regards,

       Carlos

©2008 junlu.com - Jax Systems, LLC, U.S.A.