You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by thekat <li...@kewlcat.com> on 2009/07/07 17:20:08 UTC

Solaris 10 mod_jk problems...

We have a Windows box running IIS with a tomcat connector.. 
I have been tasked to move this to Solaris 10 platform..

My attempts
- found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
--- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63
Using the binary from above give errors when running apache
*****
[Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28
configured -- resuming normal operations
[Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation
fault (11)
*****
(apache2) (additions)
httpd.conf 
-------------------------------------------
# Load mod_jk module
  # Update this path to match your modules location
LoadModule    jk_module  libexec/mod_jk.so
  # Declare the module for <IfModule directive> (remove this line on Apache
2.x)
###  AddModule     mod_jk.c
  # Where to find workers.properties
  # Update this path to match your conf directory location (put
workers.properties next to httpd.conf)
JkWorkersFile /etc/apache2/workers.properties
  # Where to put jk shared memory
  # Update this path to match your local state directory or logs directory
JkShmFile     /var/apache2/logs/mod_jk.shm
  # Where to put jk logs
  # Update this path to match your logs directory location (put mod_jk.log
next to access_log)
JkLogFile    /var/apache2/logs/mod_jk.log
  # Set the jk log level [debug/error/info]
JkLogLevel    info
  # Send everything for context /examples to worker named worker1 (ajp13)
JkMount  /Example/* worker1
-------------------------------------------
**
worker.properties from Windows box
-------------------------------------------
# Begins worker.properties here
# Define path of .properties files and jdk
# workers.tomcat_home=E:\IISSettings
# ps=\
# Define workers using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=<server name here>
worker.worker1.port=8309
-------------------------------------------

Tried compiling from source but to no avail..
**** 
running ./configure --with-apxs=/usr/apache2/bin/apxs
Error
- gives error regarding /opt/SUNWspro/bin/cc missing
Symbolic link to /usr/sfw/bin/gcc does not work 

******

thx for any help
ct



-- 
View this message in context: http://www.nabble.com/Solaris-10-mod_jk-problems...-tp24375362p24375362.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Solaris 10 mod_jk problems...

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

On 7/7/2009 2:44 PM, André Warnier wrote:
> Dunno, but I have this nagging not-quite-sure memory tidbit :
> 
>>>> running ./configure --with-apxs=/usr/apache2/bin/apxs
> 
> I have not compiled mod_jk very often, but isn't there something like
> "apxs2" for Apache2 ?

Nah, apxs is apxs. Sometimes, the script itself is called apxs2 to
differentiate it, but configure and/or apxs itself can figure everything
out.

> You need to build mod_jk using that same compiler.

Yes. You probably need httpd and mod_jk built with the same compiler.
Any idea where httpd came from?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpb5HMACgkQ9CaO5/Lv0PCPAQCcCw8yMg1kNd9zOcGF0qjOY/Yk
0b4An07PoWIyHUaAQ4ezB6erAVF3ZbNi
=KU8l
-----END PGP SIGNATURE-----

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


Re: Solaris 10 mod_jk problems...

Posted by André Warnier <aw...@ice-sa.com>.
Dunno, but I have this nagging not-quite-sure memory tidbit :

 >>> running ./configure --with-apxs=/usr/apache2/bin/apxs

I have not compiled mod_jk very often, but isn't there something like 
"apxs2" for Apache2 ?
(I mean that "apxs" may be a leftover from an Apache 1.3 installation).

If that doesn't lead anywhere, then another tentative speculation :
your installed Apache2 binary was built using the Sun Solaris 
"professional" C compiler, which is not available by default on your 
current platform. You need to build mod_jk using that same compiler.
When you refer to apxs in the build process, it retrieves the settings 
used to compile/build your Apache binary, but that leads him nowhere 
because you don't have that compiler available here.

I hesitate to speculate further, because I am really not an expert at 
this kind of thing.  But say just for the entertainment value :

On http://www.sunfreeware.com, there is an Apache2 available for Solaris 
10 Sparc.
(There is even an Apache 2.2.11, which I would recommend rather than a 
2.0.x.  2.2.x is the current version, and the differences with 2.0 in 
terms of configuration are minimal, if any).  There are also "apr" and 
"aprutils" which, who knows, you might need also at some point.
(Tomcat may like that e.g.).
Anyway, these are all compiled with gcc.
And.. on www.sunfreeware.com, there is also a gcc available.
All of these are Solaris packages, installable with pkgadd, without 
recompilation.
As far as I recall, they install in /usr/local/..., thus somewhere else 
than your current Apache 2.0, so other than port 80 it should not conflict.
There is unfortunately no pre-packaged mod_jk to go with it, so that one 
you still have to build.
But once you have installed the above, and with the correct --with-apxs 
link for ./configure, I would bet that mod_jk compiles and runs just fine.

Caveat : by doing this, you may step into the "dependencies maelstrom", 
with each of these packages telling you that you are missing this other 
indispensable package as a pre-requisite.
But as my life conpanion is fond to say, "no risk, no fun", and from 
your latest post, you seem to be able enough to master the process.

(I recommend that you script it though, for posterity and future updates).

HTH


thekat wrote:
> Thx for the response..
> 
> Hardware : SunBlade 100 (Sparc)
> OS:           Solaris 10 U7 (05/09)
> Apache:  # /usr/apache2/bin/httpd -v
>                  Server version: Apache/2.0.63
>                  Server built:   Jan 18 2009 15:51:05
> 
> Good thoughts.. double checked to make sure and I do have the correct SPARC
> binary..
> Here is the complete link.
> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/mod_jk-1.2.28-httpd-2.0.X.so 
> ------------------------
> the 
> /usr/apache2/libexec 
> directory is where I put the binary so it would pick up like all the other
> apache2 modules
> listed in /etc/apache2/httpd.conf
> ( LoadModule rewrite_module libexec/mod_rewrite.so )
> ( LoadModule jk_module  libexec/mod_jk.so )
> 
> # pwd
> /usr/apache2/libexec
> # ls -al mod_jk*
> -rw-r--r--   1 root     root      943144 Mar 21 18:40
> mod_jk-1.2.28-httpd-2.0.X.so
> -rw-r--r--   1 root     bin       943144 Jun 29 13:59 mod_jk.so
> # ldd mod_jk.so
>         libc.so.1 =>     /lib/libc.so.1
>         libm.so.2 =>     /lib/libm.so.2
>         /platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
> 
> binary looks linked
> ---
> and it looks like mod_jk initializes
> -----------------------------------------------
> # pwd
> /var/apache2/logs
> # tail mod_jk.log
> [Tue Jul 07 10:03:08.018 2009] [19704:1] [info] init_jk::mod_jk.c (3183):
> mod_jk/1.2.28 initialized
> [Tue Jul 07 10:03:09.018 2009] [19706:1] [info] init_jk::mod_jk.c (3183):
> mod_jk/1.2.28 initialized
> ---
> So far so good...?
> 
> tk
> 
> awarnier wrote:
>> thekat wrote:
>>> We have a Windows box running IIS with a tomcat connector.. 
>>> I have been tasked to move this to Solaris 10 platform..
>> Is this a Sparc CPU, or X86 ?
>> Maybe try :
>> file /path_to_apache_httpd
>> file /path_to_mod_jk.so
>>
>> Segmentation fault usually happens when trying to use a binary that does 
>> not match the platform.
>>
>>
>>> My attempts
>>> - found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
>>> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
>>> --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63
>>> Using the binary from above give errors when running apache
>>> *****
>>> [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2
>>> mod_jk/1.2.28
>>> configured -- resuming normal operations
>>> [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal
>>> Segmentation
>>> fault (11)
>>> *****
>>> (apache2) (additions)
>>> httpd.conf 
>>> -------------------------------------------
>>> # Load mod_jk module
>>>   # Update this path to match your modules location
>>> LoadModule    jk_module  libexec/mod_jk.so
>>>   # Declare the module for <IfModule directive> (remove this line on
>>> Apache
>>> 2.x)
>>> ###  AddModule     mod_jk.c
>>>   # Where to find workers.properties
>>>   # Update this path to match your conf directory location (put
>>> workers.properties next to httpd.conf)
>>> JkWorkersFile /etc/apache2/workers.properties
>>>   # Where to put jk shared memory
>>>   # Update this path to match your local state directory or logs
>>> directory
>>> JkShmFile     /var/apache2/logs/mod_jk.shm
>>>   # Where to put jk logs
>>>   # Update this path to match your logs directory location (put
>>> mod_jk.log
>>> next to access_log)
>>> JkLogFile    /var/apache2/logs/mod_jk.log
>>>   # Set the jk log level [debug/error/info]
>>> JkLogLevel    info
>>>   # Send everything for context /examples to worker named worker1 (ajp13)
>>> JkMount  /Example/* worker1
>>> -------------------------------------------
>>> **
>>> worker.properties from Windows box
>>> -------------------------------------------
>>> # Begins worker.properties here
>>> # Define path of .properties files and jdk
>>> # workers.tomcat_home=E:\IISSettings
>>> # ps=\
>>> # Define workers using ajp13
>>> worker.list=worker1
>>> # Set properties for worker1 (ajp13)
>>> worker.worker1.type=ajp13
>>> worker.worker1.host=<server name here>
>>> worker.worker1.port=8309
>>> -------------------------------------------
>>>
>>> Tried compiling from source but to no avail..
>>> **** 
>>> running ./configure --with-apxs=/usr/apache2/bin/apxs
>>> Error
>>> - gives error regarding /opt/SUNWspro/bin/cc missing
>>> Symbolic link to /usr/sfw/bin/gcc does not work 
>>>
>>> ******
>>>
>>> thx for any help
>>> ct
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
> 


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


RE: Solaris 10 mod_jk problems...

Posted by Martin Gainty <mg...@hotmail.com>.
it means either gcc is not installed or is not available to your user account try 
$ which gcc
/usr/bin/gcc

as you can see my gcc is located in /usr/bin

where did acquire mod_jk src distro?

*Greets*
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Tue, 7 Jul 2009 10:36:10 -0700
> From: list@kewlcat.com
> To: users@tomcat.apache.org
> Subject: Re: Solaris 10 mod_jk problems...
> 
> 
> Thx for the response..
> 
> Hardware : SunBlade 100 (Sparc)
> OS:           Solaris 10 U7 (05/09)
> Apache:  # /usr/apache2/bin/httpd -v
>                  Server version: Apache/2.0.63
>                  Server built:   Jan 18 2009 15:51:05
> 
> Good thoughts.. double checked to make sure and I do have the correct SPARC
> binary..
> Here is the complete link.
> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/mod_jk-1.2.28-httpd-2.0.X.so 
> ------------------------
> the 
> /usr/apache2/libexec 
> directory is where I put the binary so it would pick up like all the other
> apache2 modules
> listed in /etc/apache2/httpd.conf
> ( LoadModule rewrite_module libexec/mod_rewrite.so )
> ( LoadModule jk_module  libexec/mod_jk.so )
> 
> # pwd
> /usr/apache2/libexec
> # ls -al mod_jk*
> -rw-r--r--   1 root     root      943144 Mar 21 18:40
> mod_jk-1.2.28-httpd-2.0.X.so
> -rw-r--r--   1 root     bin       943144 Jun 29 13:59 mod_jk.so
> # ldd mod_jk.so
>         libc.so.1 =>     /lib/libc.so.1
>         libm.so.2 =>     /lib/libm.so.2
>         /platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
> 
> binary looks linked
> ---
> and it looks like mod_jk initializes
> -----------------------------------------------
> # pwd
> /var/apache2/logs
> # tail mod_jk.log
> [Tue Jul 07 10:03:08.018 2009] [19704:1] [info] init_jk::mod_jk.c (3183):
> mod_jk/1.2.28 initialized
> [Tue Jul 07 10:03:09.018 2009] [19706:1] [info] init_jk::mod_jk.c (3183):
> mod_jk/1.2.28 initialized
> ---
> So far so good...?
> 
> tk
> 
> awarnier wrote:
> > 
> > thekat wrote:
> >> We have a Windows box running IIS with a tomcat connector.. 
> >> I have been tasked to move this to Solaris 10 platform..
> > 
> > Is this a Sparc CPU, or X86 ?
> > Maybe try :
> > file /path_to_apache_httpd
> > file /path_to_mod_jk.so
> > 
> > Segmentation fault usually happens when trying to use a binary that does 
> > not match the platform.
> > 
> > 
> >> 
> >> My attempts
> >> - found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
> >> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
> >> --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63
> >> Using the binary from above give errors when running apache
> >> *****
> >> [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2
> >> mod_jk/1.2.28
> >> configured -- resuming normal operations
> >> [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal
> >> Segmentation
> >> fault (11)
> >> *****
> >> (apache2) (additions)
> >> httpd.conf 
> >> -------------------------------------------
> >> # Load mod_jk module
> >>   # Update this path to match your modules location
> >> LoadModule    jk_module  libexec/mod_jk.so
> >>   # Declare the module for <IfModule directive> (remove this line on
> >> Apache
> >> 2.x)
> >> ###  AddModule     mod_jk.c
> >>   # Where to find workers.properties
> >>   # Update this path to match your conf directory location (put
> >> workers.properties next to httpd.conf)
> >> JkWorkersFile /etc/apache2/workers.properties
> >>   # Where to put jk shared memory
> >>   # Update this path to match your local state directory or logs
> >> directory
> >> JkShmFile     /var/apache2/logs/mod_jk.shm
> >>   # Where to put jk logs
> >>   # Update this path to match your logs directory location (put
> >> mod_jk.log
> >> next to access_log)
> >> JkLogFile    /var/apache2/logs/mod_jk.log
> >>   # Set the jk log level [debug/error/info]
> >> JkLogLevel    info
> >>   # Send everything for context /examples to worker named worker1 (ajp13)
> >> JkMount  /Example/* worker1
> >> -------------------------------------------
> >> **
> >> worker.properties from Windows box
> >> -------------------------------------------
> >> # Begins worker.properties here
> >> # Define path of .properties files and jdk
> >> # workers.tomcat_home=E:\IISSettings
> >> # ps=\
> >> # Define workers using ajp13
> >> worker.list=worker1
> >> # Set properties for worker1 (ajp13)
> >> worker.worker1.type=ajp13
> >> worker.worker1.host=<server name here>
> >> worker.worker1.port=8309
> >> -------------------------------------------
> >> 
> >> Tried compiling from source but to no avail..
> >> **** 
> >> running ./configure --with-apxs=/usr/apache2/bin/apxs
> >> Error
> >> - gives error regarding /opt/SUNWspro/bin/cc missing
> >> Symbolic link to /usr/sfw/bin/gcc does not work 
> >> 
> >> ******
> >> 
> >> thx for any help
> >> ct
> >> 
> >> 
> >> 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/Solaris-10-mod_jk-problems...-tp24375362p24377783.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Re: Solaris 10 mod_jk problems...

Posted by thekat <li...@kewlcat.com>.
Thx for the response..

Hardware : SunBlade 100 (Sparc)
OS:           Solaris 10 U7 (05/09)
Apache:  # /usr/apache2/bin/httpd -v
                 Server version: Apache/2.0.63
                 Server built:   Jan 18 2009 15:51:05

Good thoughts.. double checked to make sure and I do have the correct SPARC
binary..
Here is the complete link.
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/mod_jk-1.2.28-httpd-2.0.X.so 
------------------------
the 
/usr/apache2/libexec 
directory is where I put the binary so it would pick up like all the other
apache2 modules
listed in /etc/apache2/httpd.conf
( LoadModule rewrite_module libexec/mod_rewrite.so )
( LoadModule jk_module  libexec/mod_jk.so )

# pwd
/usr/apache2/libexec
# ls -al mod_jk*
-rw-r--r--   1 root     root      943144 Mar 21 18:40
mod_jk-1.2.28-httpd-2.0.X.so
-rw-r--r--   1 root     bin       943144 Jun 29 13:59 mod_jk.so
# ldd mod_jk.so
        libc.so.1 =>     /lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1

binary looks linked
---
and it looks like mod_jk initializes
-----------------------------------------------
# pwd
/var/apache2/logs
# tail mod_jk.log
[Tue Jul 07 10:03:08.018 2009] [19704:1] [info] init_jk::mod_jk.c (3183):
mod_jk/1.2.28 initialized
[Tue Jul 07 10:03:09.018 2009] [19706:1] [info] init_jk::mod_jk.c (3183):
mod_jk/1.2.28 initialized
---
So far so good...?

tk

awarnier wrote:
> 
> thekat wrote:
>> We have a Windows box running IIS with a tomcat connector.. 
>> I have been tasked to move this to Solaris 10 platform..
> 
> Is this a Sparc CPU, or X86 ?
> Maybe try :
> file /path_to_apache_httpd
> file /path_to_mod_jk.so
> 
> Segmentation fault usually happens when trying to use a binary that does 
> not match the platform.
> 
> 
>> 
>> My attempts
>> - found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
>> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
>> --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63
>> Using the binary from above give errors when running apache
>> *****
>> [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2
>> mod_jk/1.2.28
>> configured -- resuming normal operations
>> [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal
>> Segmentation
>> fault (11)
>> *****
>> (apache2) (additions)
>> httpd.conf 
>> -------------------------------------------
>> # Load mod_jk module
>>   # Update this path to match your modules location
>> LoadModule    jk_module  libexec/mod_jk.so
>>   # Declare the module for <IfModule directive> (remove this line on
>> Apache
>> 2.x)
>> ###  AddModule     mod_jk.c
>>   # Where to find workers.properties
>>   # Update this path to match your conf directory location (put
>> workers.properties next to httpd.conf)
>> JkWorkersFile /etc/apache2/workers.properties
>>   # Where to put jk shared memory
>>   # Update this path to match your local state directory or logs
>> directory
>> JkShmFile     /var/apache2/logs/mod_jk.shm
>>   # Where to put jk logs
>>   # Update this path to match your logs directory location (put
>> mod_jk.log
>> next to access_log)
>> JkLogFile    /var/apache2/logs/mod_jk.log
>>   # Set the jk log level [debug/error/info]
>> JkLogLevel    info
>>   # Send everything for context /examples to worker named worker1 (ajp13)
>> JkMount  /Example/* worker1
>> -------------------------------------------
>> **
>> worker.properties from Windows box
>> -------------------------------------------
>> # Begins worker.properties here
>> # Define path of .properties files and jdk
>> # workers.tomcat_home=E:\IISSettings
>> # ps=\
>> # Define workers using ajp13
>> worker.list=worker1
>> # Set properties for worker1 (ajp13)
>> worker.worker1.type=ajp13
>> worker.worker1.host=<server name here>
>> worker.worker1.port=8309
>> -------------------------------------------
>> 
>> Tried compiling from source but to no avail..
>> **** 
>> running ./configure --with-apxs=/usr/apache2/bin/apxs
>> Error
>> - gives error regarding /opt/SUNWspro/bin/cc missing
>> Symbolic link to /usr/sfw/bin/gcc does not work 
>> 
>> ******
>> 
>> thx for any help
>> ct
>> 
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Solaris-10-mod_jk-problems...-tp24375362p24377783.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Solaris 10 mod_jk problems...

Posted by Rainer Jung <ra...@kippdata.de>.
On 08.07.2009 15:24, thekat wrote:
> Thanks for all the replies.. 
> My build environment seems to be hosed.. so fixing that at the moment..
> 
> It seems that Solaris is the odd Duck out on a lot of stuff I do.. :-)
> 
> I will post back my findings.. 
> and I will probably post a guide on 
> http://www.daemonforums.org/forumdisplay.php?f=31
> once I get this figured out..
> 
> again thank you for all the suggestions.. 
> tk

Nevertheless some remarks: As André already remarked, if the web server
has been compiled with a different compiler or a very different
environment than the module, it can always happen that they are not
binary compatiböle during runtime. E.g. sizes of more complex data types
could be inconsistent and thus offsets in structures imcompatible. This
could lead to a segmentation fault during runtime, even if the
initialization works right (maybe the specific data structure is not
used during init).

So you can go two ways: Finding compatible Apache web server and module
binaries, or trying to analyze (and fix) the original crash problem. The
first way is more reliable.

When looking for compatible binaries, again there are two options:

- stick with your sun provided Apache, get yourself Sun Studio (aka cc),
which is AFAIK free nowadays, and build mod_jk on the target system
yourself. That would mean instaling Sun Studio, setting up the needed
environment variables PATH etc.) and doing the configure and make for
mod_jk (also locating the correct apxs coming wwith the web server and
hoping that sun installs all needed header files that come with the web
server binary and that are needed to build additional modules).

- switch to gcc, find yourself a gcc-build Apache web server for solaris
(sunfreeware et.al.) and use the module you already have. Although even
then there is a chance it could still crash, because this doesn't only
depend on the compiler but also on the build environment, it could work.

Have fun and let us know your findings.

Regards,

Rainer


> mgainty wrote:
>>
>> check if you have a residual mod_jk.so Listener in server.xml e.g. 
>>
>> <Engine ...>
>>     <Listener className="org.apache.jk.config.ApacheConfig"
>> modJk="/path/to/mod_jk.so" />
>> </Engine>
>> also check to see of mod_jk auto-configure in $APACHE_HOME/conf/httpd.conf
>>     #To be added at the end of your httpd.conf
>>     Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto
>> http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
>>
>> Martin 
>> ______________________________________________ 
>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>  
>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
>> dient lediglich dem Austausch von Informationen und entfaltet keine
>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
>> destinataire prévu, nous te demandons avec bonté que pour satisfaire
>> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
>> copie de ceci est interdite. Ce message sert à l'information seulement et
>> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
>> les email peuvent facilement être sujets à la manipulation, nous ne
>> pouvons accepter aucune responsabilité pour le contenu fourni.
>>
>>
>>
>>
>>> Date: Tue, 7 Jul 2009 17:39:55 +0200
>>> From: aw@ice-sa.com
>>> To: users@tomcat.apache.org
>>> Subject: Re: Solaris 10 mod_jk problems...
>>>
>>> thekat wrote:
>>>> We have a Windows box running IIS with a tomcat connector.. 
>>>> I have been tasked to move this to Solaris 10 platform..
>>> Is this a Sparc CPU, or X86 ?
>>> Maybe try :
>>> file /path_to_apache_httpd
>>> file /path_to_mod_jk.so
>>>
>>> Segmentation fault usually happens when trying to use a binary that does 
>>> not match the platform.
>>>
>>>
>>>> My attempts
>>>> - found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
>>>>
>>> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
>>>> --- native apache2 on Solaris U7 (05/09) is Server version:
>>> Apache/2.0.63
>>>> Using the binary from above give errors when running apache
>>>> *****
>>>> [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2
>>> mod_jk/1.2.28
>>>> configured -- resuming normal operations
>>>> [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal
>>> Segmentation
>>>> fault (11)
>>>> *****
>>>> (apache2) (additions)
>>>> httpd.conf 
>>>> -------------------------------------------
>>>> # Load mod_jk module
>>>>   # Update this path to match your modules location
>>>> LoadModule    jk_module  libexec/mod_jk.so
>>>>   # Declare the module for <IfModule directive> (remove this line on
>>> Apache
>>>> 2.x)
>>>> ###  AddModule     mod_jk.c
>>>>   # Where to find workers.properties
>>>>   # Update this path to match your conf directory location (put
>>>> workers.properties next to httpd.conf)
>>>> JkWorkersFile /etc/apache2/workers.properties
>>>>   # Where to put jk shared memory
>>>>   # Update this path to match your local state directory or logs
>>> directory
>>>> JkShmFile     /var/apache2/logs/mod_jk.shm
>>>>   # Where to put jk logs
>>>>   # Update this path to match your logs directory location (put
>>> mod_jk.log
>>>> next to access_log)
>>>> JkLogFile    /var/apache2/logs/mod_jk.log
>>>>   # Set the jk log level [debug/error/info]
>>>> JkLogLevel    info
>>>>   # Send everything for context /examples to worker named worker1
>>> (ajp13)
>>>> JkMount  /Example/* worker1
>>>> -------------------------------------------
>>>> **
>>>> worker.properties from Windows box
>>>> -------------------------------------------
>>>> # Begins worker.properties here
>>>> # Define path of .properties files and jdk
>>>> # workers.tomcat_home=E:\IISSettings
>>>> # ps=\
>>>> # Define workers using ajp13
>>>> worker.list=worker1
>>>> # Set properties for worker1 (ajp13)
>>>> worker.worker1.type=ajp13
>>>> worker.worker1.host=<server name here>
>>>> worker.worker1.port=8309
>>>> -------------------------------------------
>>>>
>>>> Tried compiling from source but to no avail..
>>>> **** 
>>>> running ./configure --with-apxs=/usr/apache2/bin/apxs
>>>> Error
>>>> - gives error regarding /opt/SUNWspro/bin/cc missing
>>>> Symbolic link to /usr/sfw/bin/gcc does not work 
>>>>
>>>> ******
>>>>
>>>> thx for any help
>>>> ct
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>> _________________________________________________________________
>> Lauren found her dream laptop. Find the PC that’s right for you.
>> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

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


RE: Solaris 10 mod_jk problems...

Posted by thekat <li...@kewlcat.com>.
Thanks for all the replies.. 
My build environment seems to be hosed.. so fixing that at the moment..

It seems that Solaris is the odd Duck out on a lot of stuff I do.. :-)

I will post back my findings.. 
and I will probably post a guide on 
http://www.daemonforums.org/forumdisplay.php?f=31
once I get this figured out..

again thank you for all the suggestions.. 
tk


mgainty wrote:
> 
> 
> check if you have a residual mod_jk.so Listener in server.xml e.g. 
> 
> <Engine ...>
>     <Listener className="org.apache.jk.config.ApacheConfig"
> modJk="/path/to/mod_jk.so" />
> </Engine>
> also check to see of mod_jk auto-configure in $APACHE_HOME/conf/httpd.conf
>     #To be added at the end of your httpd.conf
>     Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto
> http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
> 
> Martin 
> ______________________________________________ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie de ceci est interdite. Ce message sert à l'information seulement et
> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
> 
> 
> 
> 
>> Date: Tue, 7 Jul 2009 17:39:55 +0200
>> From: aw@ice-sa.com
>> To: users@tomcat.apache.org
>> Subject: Re: Solaris 10 mod_jk problems...
>> 
>> thekat wrote:
>> > We have a Windows box running IIS with a tomcat connector.. 
>> > I have been tasked to move this to Solaris 10 platform..
>> 
>> Is this a Sparc CPU, or X86 ?
>> Maybe try :
>> file /path_to_apache_httpd
>> file /path_to_mod_jk.so
>> 
>> Segmentation fault usually happens when trying to use a binary that does 
>> not match the platform.
>> 
>> 
>> > 
>> > My attempts
>> > - found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
>> >
>> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
>> > --- native apache2 on Solaris U7 (05/09) is Server version:
>> Apache/2.0.63
>> > Using the binary from above give errors when running apache
>> > *****
>> > [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2
>> mod_jk/1.2.28
>> > configured -- resuming normal operations
>> > [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal
>> Segmentation
>> > fault (11)
>> > *****
>> > (apache2) (additions)
>> > httpd.conf 
>> > -------------------------------------------
>> > # Load mod_jk module
>> >   # Update this path to match your modules location
>> > LoadModule    jk_module  libexec/mod_jk.so
>> >   # Declare the module for <IfModule directive> (remove this line on
>> Apache
>> > 2.x)
>> > ###  AddModule     mod_jk.c
>> >   # Where to find workers.properties
>> >   # Update this path to match your conf directory location (put
>> > workers.properties next to httpd.conf)
>> > JkWorkersFile /etc/apache2/workers.properties
>> >   # Where to put jk shared memory
>> >   # Update this path to match your local state directory or logs
>> directory
>> > JkShmFile     /var/apache2/logs/mod_jk.shm
>> >   # Where to put jk logs
>> >   # Update this path to match your logs directory location (put
>> mod_jk.log
>> > next to access_log)
>> > JkLogFile    /var/apache2/logs/mod_jk.log
>> >   # Set the jk log level [debug/error/info]
>> > JkLogLevel    info
>> >   # Send everything for context /examples to worker named worker1
>> (ajp13)
>> > JkMount  /Example/* worker1
>> > -------------------------------------------
>> > **
>> > worker.properties from Windows box
>> > -------------------------------------------
>> > # Begins worker.properties here
>> > # Define path of .properties files and jdk
>> > # workers.tomcat_home=E:\IISSettings
>> > # ps=\
>> > # Define workers using ajp13
>> > worker.list=worker1
>> > # Set properties for worker1 (ajp13)
>> > worker.worker1.type=ajp13
>> > worker.worker1.host=<server name here>
>> > worker.worker1.port=8309
>> > -------------------------------------------
>> > 
>> > Tried compiling from source but to no avail..
>> > **** 
>> > running ./configure --with-apxs=/usr/apache2/bin/apxs
>> > Error
>> > - gives error regarding /opt/SUNWspro/bin/cc missing
>> > Symbolic link to /usr/sfw/bin/gcc does not work 
>> > 
>> > ******
>> > 
>> > thx for any help
>> > ct
>> > 
>> > 
>> > 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
> 
> _________________________________________________________________
> Lauren found her dream laptop. Find the PC that’s right for you.
> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
> 

-- 
View this message in context: http://www.nabble.com/Solaris-10-mod_jk-problems...-tp24375362p24391505.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Solaris 10 mod_jk problems...

Posted by Martin Gainty <mg...@hotmail.com>.
check if you have a residual mod_jk.so Listener in server.xml e.g. 

<Engine ...>
    <Listener className="org.apache.jk.config.ApacheConfig" modJk="/path/to/mod_jk.so" />
</Engine>
also check to see of mod_jk auto-configure in $APACHE_HOME/conf/httpd.conf
    #To be added at the end of your httpd.conf
    Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Tue, 7 Jul 2009 17:39:55 +0200
> From: aw@ice-sa.com
> To: users@tomcat.apache.org
> Subject: Re: Solaris 10 mod_jk problems...
> 
> thekat wrote:
> > We have a Windows box running IIS with a tomcat connector.. 
> > I have been tasked to move this to Solaris 10 platform..
> 
> Is this a Sparc CPU, or X86 ?
> Maybe try :
> file /path_to_apache_httpd
> file /path_to_mod_jk.so
> 
> Segmentation fault usually happens when trying to use a binary that does 
> not match the platform.
> 
> 
> > 
> > My attempts
> > - found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
> > http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
> > --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63
> > Using the binary from above give errors when running apache
> > *****
> > [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28
> > configured -- resuming normal operations
> > [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation
> > fault (11)
> > *****
> > (apache2) (additions)
> > httpd.conf 
> > -------------------------------------------
> > # Load mod_jk module
> >   # Update this path to match your modules location
> > LoadModule    jk_module  libexec/mod_jk.so
> >   # Declare the module for <IfModule directive> (remove this line on Apache
> > 2.x)
> > ###  AddModule     mod_jk.c
> >   # Where to find workers.properties
> >   # Update this path to match your conf directory location (put
> > workers.properties next to httpd.conf)
> > JkWorkersFile /etc/apache2/workers.properties
> >   # Where to put jk shared memory
> >   # Update this path to match your local state directory or logs directory
> > JkShmFile     /var/apache2/logs/mod_jk.shm
> >   # Where to put jk logs
> >   # Update this path to match your logs directory location (put mod_jk.log
> > next to access_log)
> > JkLogFile    /var/apache2/logs/mod_jk.log
> >   # Set the jk log level [debug/error/info]
> > JkLogLevel    info
> >   # Send everything for context /examples to worker named worker1 (ajp13)
> > JkMount  /Example/* worker1
> > -------------------------------------------
> > **
> > worker.properties from Windows box
> > -------------------------------------------
> > # Begins worker.properties here
> > # Define path of .properties files and jdk
> > # workers.tomcat_home=E:\IISSettings
> > # ps=\
> > # Define workers using ajp13
> > worker.list=worker1
> > # Set properties for worker1 (ajp13)
> > worker.worker1.type=ajp13
> > worker.worker1.host=<server name here>
> > worker.worker1.port=8309
> > -------------------------------------------
> > 
> > Tried compiling from source but to no avail..
> > **** 
> > running ./configure --with-apxs=/usr/apache2/bin/apxs
> > Error
> > - gives error regarding /opt/SUNWspro/bin/cc missing
> > Symbolic link to /usr/sfw/bin/gcc does not work 
> > 
> > ******
> > 
> > thx for any help
> > ct
> > 
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Re: Solaris 10 mod_jk problems...

Posted by André Warnier <aw...@ice-sa.com>.
thekat wrote:
> We have a Windows box running IIS with a tomcat connector.. 
> I have been tasked to move this to Solaris 10 platform..

Is this a Sparc CPU, or X86 ?
Maybe try :
file /path_to_apache_httpd
file /path_to_mod_jk.so

Segmentation fault usually happens when trying to use a binary that does 
not match the platform.


> 
> My attempts
> - found the binaries for mod_jk for Solaris apache2 (version 2.0.61)
> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/
> --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63
> Using the binary from above give errors when running apache
> *****
> [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28
> configured -- resuming normal operations
> [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation
> fault (11)
> *****
> (apache2) (additions)
> httpd.conf 
> -------------------------------------------
> # Load mod_jk module
>   # Update this path to match your modules location
> LoadModule    jk_module  libexec/mod_jk.so
>   # Declare the module for <IfModule directive> (remove this line on Apache
> 2.x)
> ###  AddModule     mod_jk.c
>   # Where to find workers.properties
>   # Update this path to match your conf directory location (put
> workers.properties next to httpd.conf)
> JkWorkersFile /etc/apache2/workers.properties
>   # Where to put jk shared memory
>   # Update this path to match your local state directory or logs directory
> JkShmFile     /var/apache2/logs/mod_jk.shm
>   # Where to put jk logs
>   # Update this path to match your logs directory location (put mod_jk.log
> next to access_log)
> JkLogFile    /var/apache2/logs/mod_jk.log
>   # Set the jk log level [debug/error/info]
> JkLogLevel    info
>   # Send everything for context /examples to worker named worker1 (ajp13)
> JkMount  /Example/* worker1
> -------------------------------------------
> **
> worker.properties from Windows box
> -------------------------------------------
> # Begins worker.properties here
> # Define path of .properties files and jdk
> # workers.tomcat_home=E:\IISSettings
> # ps=\
> # Define workers using ajp13
> worker.list=worker1
> # Set properties for worker1 (ajp13)
> worker.worker1.type=ajp13
> worker.worker1.host=<server name here>
> worker.worker1.port=8309
> -------------------------------------------
> 
> Tried compiling from source but to no avail..
> **** 
> running ./configure --with-apxs=/usr/apache2/bin/apxs
> Error
> - gives error regarding /opt/SUNWspro/bin/cc missing
> Symbolic link to /usr/sfw/bin/gcc does not work 
> 
> ******
> 
> thx for any help
> ct
> 
> 
> 


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