You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bryan Lipscy <x4...@monroe.net> on 2001/09/22 05:35:49 UTC

Compiling mod_jk

I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
box.  I received the error detailed below.  Apache was installed with
Solaris and loads mod_so.

What does the "language optional software package not installed" mean?  Is
it significant? How do I fix it?

Why did apxs fail?
What does the rc=65536 mean?
How can it be solved?
Does someone have a compiled mod_jk compiled on Solaris 8?

Thanks,
Bryan

Error:
root >build-solaris.sh
Building mod_jk
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536
Error with apxs


Environment:
Solaris 8 Kernel 108528-06
Sun 420R (4 * 450Mhz) 4GB Memory
gcc: gcc-2.95.2
perl, version 5.005_03 built for sun4-solaris
JDK 1.3.1.01
Apache v1.3 (Installed with Solaris 8)


Execute line:
/usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
mod_jk.c


Re: HttpSession object returned from request.getSession

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 26 Sep 2001, Rebekah Lepro wrote:

> Date: Wed, 26 Sep 2001 14:28:10 -0400
> From: Rebekah Lepro <rs...@psu.edu>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: HttpSession object returned from request.getSession
>
> Hello all -
>
> A question regarding sessions:
> Assume that sessions are tracked in a web application, ie.
> request.getSession(true) is used to grab sessions.  Now, a client makes 2
> or concurrent requests to a servlet after a session has been established,
> say by hitting a submit button twice on a form.  Within the doPost method
> which of the following is true:
>
> 1)  Both calls to request.getSession(true) return the exact same object
> 2)  Both calls to request.getSession(true) return two different session
> objects that contain the same information.
>
> I need to be able to synchronized actions at a client level, so that if two
> requests come from the same client they execute serially, but two requests
> come from two different clients, they can interact concurrently.  The only
> way I could think to do this was with a synchronized block on
> HttpSession.  This won't work, however, if each request creates a new
> HttpSession per request.   The api doesn't specify behavior that I could
> see.....
>

The safest way to approach this would be to synchronize on some session
attribute that you've added.  That way, your locking would work correctly
no matter which of the two interpretations were actually the case.

> Thanks for the insight.
> Rebekah
> Rebekah Lepro - rsl102@psu.edu
> Applied Research Laboratory
> The Pennsylvania State University
> P.O. Box 30, State College PA 16804
> Phone: +1-814-863-8122 Fax: +1-814-863-1183
>
>

Craig McClanahan



HttpSession object returned from request.getSession

Posted by Rebekah Lepro <rs...@psu.edu>.
Hello all -

A question regarding sessions:
Assume that sessions are tracked in a web application, ie. 
request.getSession(true) is used to grab sessions.  Now, a client makes 2 
or concurrent requests to a servlet after a session has been established, 
say by hitting a submit button twice on a form.  Within the doPost method 
which of the following is true:

1)  Both calls to request.getSession(true) return the exact same object
2)  Both calls to request.getSession(true) return two different session 
objects that contain the same information.

I need to be able to synchronized actions at a client level, so that if two 
requests come from the same client they execute serially, but two requests 
come from two different clients, they can interact concurrently.  The only 
way I could think to do this was with a synchronized block on 
HttpSession.  This won't work, however, if each request creates a new 
HttpSession per request.   The api doesn't specify behavior that I could 
see.....

Thanks for the insight.
Rebekah
Rebekah Lepro - rsl102@psu.edu
Applied Research Laboratory
The Pennsylvania State University
P.O. Box 30, State College PA 16804
Phone: +1-814-863-8122 Fax: +1-814-863-1183


RE: Compiling mod_jk

Posted by Bryan Lipscy <x4...@monroe.net>.
I built Apache 1.3.20 according to the readme file and set LANG to C and
exported it.  Still get the same error.

Where is this readme file at in the build?



-----Original Message-----
From: jfclere@vtxrm2.bcn.fsc.net [mailto:jfclere@vtxrm2.bcn.fsc.net]On
Behalf Of jean-frederic clere
Sent: Tuesday, September 25, 2001 1:42 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Compiling mod_jk



Your C compiler does not work... That is the problem (try LANG=C; export
LANG
before before using build-solaris.sh).

mod_jk also allow to use configure - Check
jakarta-tomcat-connectors/jk/native/README.configure -

>
> Environment:
> Solaris 8 Kernel 108528-06
> Sun 420R (4 * 450Mhz) 4GB Memory
> gcc: gcc-2.95.2
> perl, version 5.005_03 built for sun4-solaris
> JDK 1.3.1.01
> Apache v1.3 (Installed with Solaris 8)
>
> Execute line:
> /usr/apache/bin/apxs -S
CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
>
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
> x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
> ../common/jk_ajp13_worker.c ../common/jk_connect.c
../common/jk_jni_worker.c
> ../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
> ../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
> ../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
> mod_jk.c


Re: Compiling mod_jk

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Bryan Lipscy wrote:
> 
> I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
> box.  I received the error detailed below.  Apache was installed with
> Solaris and loads mod_so.
> 
> What does the "language optional software package not installed" mean?  Is
> it significant? How do I fix it?
> 
> Why did apxs fail?
> What does the rc=65536 mean?
> How can it be solved?
> Does someone have a compiled mod_jk compiled on Solaris 8?
> 
> Thanks,
> Bryan
> 
> Error:
> root >build-solaris.sh
> Building mod_jk
> /usr/ucb/cc:  language optional software package not installed
> apxs:Break: Command failed with rc=65536
> Error with apxs

Your C compiler does not work... That is the problem (try LANG=C; export LANG
before before using build-solaris.sh).

mod_jk also allow to use configure - Check
jakarta-tomcat-connectors/jk/native/README.configure -

> 
> Environment:
> Solaris 8 Kernel 108528-06
> Sun 420R (4 * 450Mhz) 4GB Memory
> gcc: gcc-2.95.2
> perl, version 5.005_03 built for sun4-solaris
> JDK 1.3.1.01
> Apache v1.3 (Installed with Solaris 8)
> 
> Execute line:
> /usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
> mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
> x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
> ../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
> ../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
> ../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
> ../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
> mod_jk.c

Compiling mod_jk

Posted by Bryan Lipscy <x4...@monroe.net>.
I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
box.  I received the error detailed below.  Apache was installed with
Solaris and loads mod_so.

What does the "language optional software package not installed" mean?  Is
it significant? How do I fix it?

Why did apxs fail?
What does the rc=65536 mean?
How can it be solved?
Does someone have a compiled mod_jk compiled on Solaris 8?

Thanks,
Bryan

Error:
root >build-solaris.sh
Building mod_jk
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536
Error with apxs


Environment:
Solaris 8 Kernel 108528-06
Sun 420R (4 * 450Mhz) 4GB Memory
gcc: gcc-2.95.2
perl, version 5.005_03 built for sun4-solaris
JDK 1.3.1.01
Apache v1.3 (Installed with Solaris 8)


Execute line:
/usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
mod_jk.c