You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pfingstl Gernot <ge...@stmk.gv.at> on 2003/04/22 16:02:43 UTC

Compiling JK2 for apache troubles

I had to connect my tomcat 4.1 to apache (currently 1.3) which is running on HP-UX. I have not found a binary for the apache module for this OS, so downloaded jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz to compile it myself, but I've only troubles: 

(1) In the readme file there's stated, that I have to install tomcat 3.3, 4.0 and 4.1 and apache 1.3. and 2.0. My environment is tomcat 4.1. and apache 1.3, can I ignore the other versions?

(2) I edited build.properties: I commented the lines, where for tomcat 3.3, 4.1 and so on, is this correct?

(3) I ran ant and got the error message: BUILD FAILED
file:/disk0/tomcat/pro/jk/jk2-2.0.2/jk/build.xml:105: Warning: Could not find file /disk0/tomcat/pro/jk/jk2-2.0.2/coyote/build/lib/tomcat-coyote.jar to copy.
Where my current directory were /disk0/tomcat/pro/jk/jk2-2.0.2/jk. What about this error?

(4) What I'm doing wrong?

(5) Is anywhere a documentation how to build the jk2?

Thanks,
Gernot


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Compiling JK2 for apache troubles

Posted by John Turner <to...@johnturner.com>.
On Tue, 22 Apr 2003 16:02:43 +0200, Pfingstl Gernot 
<ge...@stmk.gv.at> wrote:
>
> (1) In the readme file there's stated, that I have to install tomcat 3.3, 
> 4.0 and 4.1 and apache 1.3. and 2.0. My environment is tomcat 4.1. and 
> apache 1.3, can I ignore the other versions?

Yes.  You can use only what you need.

>
> (2) I edited build.properties: I commented the lines, where for tomcat 
> 3.3, 4.1 and so on, is this correct?

Depends.  You should expand the values for your environment...thus if you 
have Tomcat 4.1, you should keep those lines uncommented.

> (3) I ran ant and got the error message: BUILD FAILED
> file:/disk0/tomcat/pro/jk/jk2-2.0.2/jk/build.xml:105: Warning: Could not 
> find file /disk0/tomcat/pro/jk/jk2-2.0.2/coyote/build/lib/tomcat- 
> coyote.jar to copy.
> Where my current directory were /disk0/tomcat/pro/jk/jk2-2.0.2/jk. What 
> about this error?

The error means that it can't find that file.  I typically find that file 
on my system, and copy it to the location that ant is using.  That's 
probably not the correct solution, but I am so inexperienced with ant that 
I tend to use the "brute force" approach instead of the elegant approach.

>
> (4) What I'm doing wrong?
>

Nothing, really.  The project is still in active development, the docs need 
a lot of work, and you have an OS that not many people have access to for 
testing.

> (5) Is anywhere a documentation how to build the jk2?
>

I believe that a Tomcat Wiki has been started for JK2, but I don't have the 
URL because I don't use JK2.  Perhaps someone else on the list has it.

> Thanks,
> Gernot

John

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Compiling JK2 for apache troubles

Posted by Mark Eggers <it...@yahoo.com>.
Check out the recent archives.  I wrote a step by step
procedure for compiling mod_jk2 on Redhat Linux which
should be applicable to your situation.  Search for
mod_jk2 HOWTO.

That being said, it's noted in the source and
README.txt that mod_jk2 is really designed for
multi-threaded servers such as IIS and Apache 2. 
You're probably better off going with mod_jk in your
situation.

I'll write up an appropriate 'How To for the
impatient' tomorrow for building mod_jk.  It's really
not much different than the one for mod_jk2.  Only the
directory structure gets changed (and which source
collection you download).

Hopefully, I'll get my How To web site up shortly
(this week) and provide some of my documentation.

Meanwhile, if you can't find my mail in the archive
send me a note and I'll pull it from my web site
build.

/mde/
just my two cents . . .


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Compiling JK2 for apache troubles

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
On Tue, 22 Apr 2003, Pfingstl Gernot wrote:

> I had to connect my tomcat 4.1 to apache (currently 1.3) which is running on HP-UX. I have not found a binary for the apache module for this OS, so downloaded jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz to compile it myself, but I've only troubles:
>
> (1) In the readme file there's stated, that I have to install tomcat 3.3, 4.0 and 4.1 and apache 1.3. and 2.0. My environment is tomcat 4.1. and apache 1.3, can I ignore the other versions?
>
> (2) I edited build.properties: I commented the lines, where for tomcat 3.3, 4.1 and so on, is this correct?
>
> (3) I ran ant and got the error message: BUILD FAILED
> file:/disk0/tomcat/pro/jk/jk2-2.0.2/jk/build.xml:105: Warning: Could not find file /disk0/tomcat/pro/jk/jk2-2.0.2/coyote/build/lib/tomcat-coyote.jar to copy.
> Where my current directory were /disk0/tomcat/pro/jk/jk2-2.0.2/jk. What about this error?
>
> (4) What I'm doing wrong?
>
> (5) Is anywhere a documentation how to build the jk2?
>
> Thanks,
> Gernot

here is what I did (I used configure)

cd <connector home>/jk/native2

run buildconf.sh to make the configure script

./configure --with-apxs2=/opt/apache_2.0.45/bin/apxs \
--enable-jni \
--with-tomcat41=/opt/tomcat-4.1.24

run make

copy <connector home>/jk/build/jk2/apache2/mod_jk2.so to
<apache2>/modules/

Edit apache httpd.conf file to activate mod_jk module

LoadModule jk2_module modules/mod_jk2.so



Hope this helps....
----------------------------------------
"Mon aƩroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org