You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Diman <di...@dreaming.org> on 2001/03/05 19:36:36 UTC
loading problem mod_j.so ->apache 1.3.19
Hello people,
I'm banging my head against this weirdness :
in jakarta-tomcat-3.2.1-src/src/native/apache1.3
I successfully ran
----
/usr/local/sbin/apxs -o mod_kj.o -I/usr/local/jdk1.2.2/include /
-I/usr/local/jdk1.2.2/include/freebsd -DFREEBSD -I../jk -c mod_jk.c
../jk/*c
----
and then
gcc -shared -o mod_jk.so *.o
of course in mod_jk.conf there is
----
LoadModule jk_module libexec/apache/mod_jk.so
----
and in /usr/local/apache/conf/httpd.conf
----
AddModule mod_jk.c
include /home/diman/work/mod_jk.conf
----
but when trying to start apache i get
Cannot load /usr/local/libexec/apache/mod_kj.so into server:
Shared object "mod_kj.o" not found
I'm using Tomcat 3.2.1, apache 1.3.19 on FreeBSD 4.2, any hints are
welcome to diman@dreaming.org!
-d-
Form based auth - saving login credentials?
Posted by Kevin McDonald <kt...@io.com>.
> Craig McClanahan wrote:
> A couple of things to remember:
> * Due to a bug in Tomcat 3.2.1, the <form-login-page> and
> <form-error-page> pages must *not* be within an area protected
> by a security constraint.
Yup - I protected /servlets instead of /jsp and the form worked fine.
My next task - I want to store user ID's in the users table.
When the authentication happens I want to get the user ID
and the user_roles and save them in the session object.
I can hack JDBCRealm source file but is there a better way to do this?
Thanx,
Kevin McDonald
Austin TX
Form based authentication - infinite loop.
Posted by Kevin McDonald <kt...@io.com>.
I set the security-constraint in the
webapps/examples/WEB-INF/web.xml
file to protect all of /jsp/*
The BASIC authentication works fine but the FORM checks the
database for a null user name and then goes into an infinite loop.
I can see the browser trying to open the login page on the status
bar once for each user null error (flashes url).
2001-03-05 08:11:59 - ContextManager: JDBCRealm: JDBCRealm.authenticate:
SELECT user_pass FROM users WHERE user_name = ?
2001-03-05 08:11:59 - ContextManager: JDBCRealm: Authentication unsuccessful
for user null
2001-03-05 08:12:04 - ContextManager: JDBCRealm: Authentication unsuccessful
for user null
2001-03-05 08:12:04 - ContextManager: JDBCRealm: Authentication unsuccessful
for user null
2001-03-05 08:12:04 - ContextManager: JDBCRealm: Authentication unsuccessful
for user null
2001-03-05 08:12:04 - ContextManager: JDBCRealm: Authentication unsuccessful
for user null
Which loops until I close the browser
My config is:
Tomcat 3.2.1 Win2000 IE5.0 SQL2000 com.inet.tds driver
The FORM based page worked ok when I brought it up from the jsp examples
screen.
Has anybody seen this?
Any ideas?
Thanx,
Kevin McDonald
Austin TX
Re: loading problem mod_j.so ->apache 1.3.19
Posted by "Brett W. McCoy" <bm...@chapelperilous.net>.
On Mon, 5 Mar 2001, Diman wrote:
> in jakarta-tomcat-3.2.1-src/src/native/apache1.3
> I successfully ran
> ----
> /usr/local/sbin/apxs -o mod_kj.o -I/usr/local/jdk1.2.2/include /
> -I/usr/local/jdk1.2.2/include/freebsd -DFREEBSD -I../jk -c mod_jk.c
> ../jk/*c
mod_kj.o? That should be mod_jk.o
-- Brett
http://www.chapelperilous.net/~bmccoy/
------------------------------------------------------------------------
"BTW, does Jesus know you flame?"
-- Diane Holt, dianeh@binky.UUCP, to Ed Carp
RE: loading problem mod_j.so ->apache 1.3.19
Posted by Filip Hanik <ma...@filip.net>.
you have a typo somewhere
>Cannot load /usr/local/libexec/apache/mod_kj.so into server:
>Shared object "mod_kj.o" not found
it is supposed to load mod_jk not mod_kj
Filip
> -----Original Message-----
> From: Diman [mailto:diman@dreaming.org]
> Sent: Monday, March 05, 2001 10:37 AM
> To: tomcat-user@jakarta.apache.org
> Subject: loading problem mod_j.so ->apache 1.3.19
>
>
> Hello people,
>
> I'm banging my head against this weirdness :
>
> in jakarta-tomcat-3.2.1-src/src/native/apache1.3
> I successfully ran
> ----
> /usr/local/sbin/apxs -o mod_kj.o -I/usr/local/jdk1.2.2/include /
> -I/usr/local/jdk1.2.2/include/freebsd -DFREEBSD -I../jk -c mod_jk.c
> ../jk/*c
> ----
> and then
>
> gcc -shared -o mod_jk.so *.o
>
> of course in mod_jk.conf there is
> ----
> LoadModule jk_module libexec/apache/mod_jk.so
> ----
>
> and in /usr/local/apache/conf/httpd.conf
> ----
> AddModule mod_jk.c
> include /home/diman/work/mod_jk.conf
> ----
>
> but when trying to start apache i get
>
> Cannot load /usr/local/libexec/apache/mod_kj.so into server:
> Shared object "mod_kj.o" not found
>
> I'm using Tomcat 3.2.1, apache 1.3.19 on FreeBSD 4.2, any hints are
> welcome to diman@dreaming.org!
>
> -d-
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>
>