You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Omar Vera <ov...@jala-industries.com> on 2003/06/02 02:29:38 UTC

Tomcat 4 jk2-2.0.2 with apache2 in solaris 8 configuration

Hi to everybody,
I am trying to configure tomcat 4.1.24 with apache 2 using the connector
jk2-2.0.2 and I get an error message when I am making the mod_jk2.so file.
The error message is:
# make
list=' server/apache2'; \
for i in $list; do \
        echo "Making $target in $i"; \
        if test "$i" != "."; then \
        (cd $i && make) || exit 1; \
fi; \
done;
Making  in server/apache2
mkdir -p ../../../build/jk2/apache2
/usr/local/apache2/build/libtool --mode=install  cp
../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2
cp ../../../build/jk2/apache2/.libs/mod_jk2.so
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.so
chmod +x
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.so
cp ../../../build/jk2/apache2/.libs/mod_jk2.lai
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.la
cp ../../../build/jk2/apache2/.libs/mod_jk2.a
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.a
cp: cannot access ../../../build/jk2/apache2/.libs/mod_jk2.a
*** Error code 2
make: Fatal error: Command failed for target
`../../../build/jk2/apache2/mod_jk2.so'
Current working directory
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2
*** Error code 1
make: Fatal error: Command failed for target `jk2-build'
 
 
I also tried to use the compiled .so file from apache for solaris 8, but
when I am starting the apache I got the following error:
 
# apache start       
httpd starting.
Syntax error on line 1019 of /etc/apache/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_jk2-2.0.43.so into server:
ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache2/modules/mod_jk2-2.0.43.so: symbol apr_pool_cleanup_null:
referenced symbol not found
/usr/apache/bin/apachectl start: httpd could not be started
 
Do you know the best way to configure successfully the connector for Apache
and Tomcat successfully?
 
Thanks in advance, I will appreciate your answers and suggestions.
 
Best regards.
 
Omar Vera

Re: Tomcat 4 jk2-2.0.2 with apache2 in solaris 8 configuration

Posted by John Turner <to...@johnturner.com>.
What version of Apache 2 do you have?   The binary of mod_jk2 (and mod_jk) 
is version-sensitive.  It should work for 2.0.43 and up.

John

On Sun, 1 Jun 2003 20:29:38 -0400, Omar Vera <ov...@jala-industries.com> 
wrote:

> Hi to everybody,
> I am trying to configure tomcat 4.1.24 with apache 2 using the connector
> jk2-2.0.2 and I get an error message when I am making the mod_jk2.so 
> file.
> The error message is:
> # make
> list=' server/apache2'; \
> for i in $list; do \
> echo "Making $target in $i"; \
> if test "$i" != "."; then \
> (cd $i && make) || exit 1; \
> fi; \
> done;
> Making  in server/apache2
> mkdir -p ../../../build/jk2/apache2
> /usr/local/apache2/build/libtool --mode=install  cp
> ../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2
> cp ../../../build/jk2/apache2/.libs/mod_jk2.so
> /jakarta-tomcat-connectors-jk2-2.0.2- 
> src/jk/native2/server/apache2/../../../
> build/jk2/apache2/mod_jk2.so
> chmod +x
> /jakarta-tomcat-connectors-jk2-2.0.2- 
> src/jk/native2/server/apache2/../../../
> build/jk2/apache2/mod_jk2.so
> cp ../../../build/jk2/apache2/.libs/mod_jk2.lai
> /jakarta-tomcat-connectors-jk2-2.0.2- 
> src/jk/native2/server/apache2/../../../
> build/jk2/apache2/mod_jk2.la
> cp ../../../build/jk2/apache2/.libs/mod_jk2.a
> /jakarta-tomcat-connectors-jk2-2.0.2- 
> src/jk/native2/server/apache2/../../../
> build/jk2/apache2/mod_jk2.a
> cp: cannot access ../../../build/jk2/apache2/.libs/mod_jk2.a
> *** Error code 2
> make: Fatal error: Command failed for target
> `../../../build/jk2/apache2/mod_jk2.so'
> Current working directory
> /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2
> *** Error code 1
> make: Fatal error: Command failed for target `jk2-build'
>
> I also tried to use the compiled .so file from apache for solaris 8, but
> when I am starting the apache I got the following error:
> # apache start       httpd starting.
> Syntax error on line 1019 of /etc/apache/httpd.conf:
> Cannot load /usr/local/apache2/modules/mod_jk2-2.0.43.so into server:
> ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file
> /usr/local/apache2/modules/mod_jk2-2.0.43.so: symbol 
> apr_pool_cleanup_null:
> referenced symbol not found
> /usr/apache/bin/apachectl start: httpd could not be started
> Do you know the best way to configure successfully the connector for 
> Apache
> and Tomcat successfully?
> Thanks in advance, I will appreciate your answers and suggestions.
> Best regards.
> Omar Vera
>



-- 
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: Tomcat 4 jk2-2.0.2 with apache2 in solaris 8 configuration

Posted by Mark Eggers <md...@earthlink.net>.
Omar,

Did you build httpd yourself, or did you download a binary?

If you built httpd yourself, what was your configuration command?

Also, what configuration command did you use to build mod_jk2?


/mde/
just my two cents . . . .


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