You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by michael wimmer <m....@ecom-it.at> on 2003/04/27 13:48:52 UTC

mod_jk2 build errors

Hi,
 
I tried to build mod_jk2 because a customer wants to integrate tomcat
4.1.24 into apache 2.0.45 and binaries only seem to be available for
apache 2.0.43.
 
Unfortunately I seem to be unable to do so.
 
Using ant I get the following errors: (in the jk dir)
 
ant or ant all:
 
BUILD FAILED
file:/data/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105:
Warning: Could not find file
/data/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-co
yote.jar to copy.
 
ant native
 
BUILD FAILED
file:/data/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:232:
srcdir "/data/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/jkant/java"
does not exist!
 
 
 
Changing to native2 and trying to use make:
 
./configure --with-apxs2=/opt/www2045/bin/apxs
--with-tomcat41=/opt/tomcat
....
make:
....
../../../build/jk2/apache2/.libs/jkjni.so
/usr/bin/ld: cannot find -laprutil
collect2: ld returned 1 exit status
make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1
make[1]: Leaving directory
`/data/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2
'
make: *** [jk2-build] Error 1
 
BTW:
mod_jk2 is the best solution to integrate tomcat with apache, right?
 
Regrards,
 
Michael Wimmer
 

Re: mod_jk2 build errors

Posted by Michael Gerdau <mg...@technosis.de>.
>I tried to build mod_jk2 because a customer wants to integrate tomcat
>4.1.24 into apache 2.0.45 and binaries only seem to be available for
>apache 2.0.43.

I'm not sure I can help you with your build errors, but:
I know from my own working setup that mod_jk2 for Apache 2.0.43
does work with Apache 2.0.45 as well.

Also as had been pointed out by others last week according to
the release notes Apache 2.0.45 is supposed to be compatible
to Apache 2.0.43 w/r to modules.

Best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 Requirement not stated for Windows or MS-DOS 6.22: Barf bag
 GPG/PGP-keys available on request or at public keyserver



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


AW: AW: mod_jk2 build errors (solved)

Posted by michael wimmer <m....@ecom-it.at>.
Thank you Mark,

It seems that enable-shared=most did the trick. I kept the modules=so
(with modules=all I got problems to get coldfusion working -> it is a
test server where I need everything running) and added the
--enable-shared=most and it worked.

Regards,

Michael

> -----Ursprüngliche Nachricht-----
> Von: Mark Eggers [mailto:its_toasted@yahoo.com]
> Gesendet: Dienstag, 29. April 2003 17:38
> An: Tomcat Users List
> Betreff: Re: AW: mod_jk2 build errors
> 
> Michael,
> 
> When you compile Apache, you'll have to use the
> following:
> 
> ./configure --enable-modules=all --enable-shared=most
> 
> You really don't need to use enable-modules=all if you
> wish to be more selective on your system.  My system
> is a development box, and I never know quite what the
> users will ask next.
> 
> However, you do need to use enable-shared=most, or at
> least enable shared modules.  Without this, you will
> not be able to use a mod_jk2.so module.  It would have
> to be linked in at Apache compile time.
> 
> There's a good explanation of how to build Apache in
> the installation readme (INSTALL.txt, I think).
> Running
> 
> ./configure --help
> 
> will also give you lots of information.
> 
> HTH
> 
> /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



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


Re: AW: mod_jk2 build errors

Posted by Mark Eggers <it...@yahoo.com>.
Michael,

When you compile Apache, you'll have to use the
following:

./configure --enable-modules=all --enable-shared=most

You really don't need to use enable-modules=all if you
wish to be more selective on your system.  My system
is a development box, and I never know quite what the
users will ask next.

However, you do need to use enable-shared=most, or at
least enable shared modules.  Without this, you will
not be able to use a mod_jk2.so module.  It would have
to be linked in at Apache compile time.

There's a good explanation of how to build Apache in
the installation readme (INSTALL.txt, I think). 
Running

./configure --help

will also give you lots of information.

HTH

/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


AW: mod_jk2 build errors

Posted by michael wimmer <m....@ecom-it.at>.
Hi,

I did not work for me, I still get the same error (Redhat 8). 

I installed both, Apache and Tomcat from the tar.gz. 

Could it be that I have to specify a certain switch when compiling
Apache to get that to work?

(I used --enable-modules=so)

Regards,

Michael

> -----Ursprüngliche Nachricht-----
> Von: Mark Eggers [mailto:its_toasted@yahoo.com] 
> Gesendet: Sonntag, 27. April 2003 18:12
> An: Tomcat Users List
> Betreff: Re: mod_jk2 build errors
> 
> 
> Michael,
> 
> This was done on Redhat 9 Linux, but it should work
> for all flavors of UNIX systems.  I'll mark the
> Redhat-specific ones with
> <redhat></redhat>
> 
> <redhat>
> Apache 2.0.45 was used on Redhat 9 Linux.  The Apache
> rpm that was installed with Redhat was uninstalled. 
> Tomcat was installed from a binary tarball and not the
> rpm.
> </redhat>
> 
> 1. Download
> jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from
>   
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
> /release/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=/home/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.  It's been reported that make install may
> not do the right thing.
> 
> 9. Configure and restart
> 
> HTH
> 
> /mde/
> 
> __________________________________
> 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
> 
> 


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


Re: mod_jk2 build errors

Posted by Mark Eggers <it...@yahoo.com>.
Michael,

This was done on Redhat 9 Linux, but it should work
for all flavors of UNIX systems.  I'll mark the
Redhat-specific ones with
<redhat></redhat>

<redhat>
Apache 2.0.45 was used on Redhat 9 Linux.  The Apache
rpm that was installed with Redhat was uninstalled. 
Tomcat was installed from a binary tarball and not the
rpm.
</redhat>

1. Download
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from
  
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/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=/home/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.  It's been reported that make install may
not do the right thing.

9. Configure and restart

HTH

/mde/

__________________________________
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