Timeout or log out for Realm authentication

2004-03-17 Thread Joan Jesús Pujol Espinar
Hello,

Is it possible to set a timeout or manually logout a user that is 
authenticated with a realm?
Because the user is always 'logged' until the navigator is closed.

Cheers,

--
***
Joan Jesús Pujol Espinar
Tècnic de Sistemes
Universitat de Girona
Dpt. Informàtica i Matemàtica Aplicada
Campus Montilivi
17003 - Girona (Spain)
e-mail: [EMAIL PROTECTED]
+34 972 418418 Fax: +34 972 418792
***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Enabling logging for a Realm

2004-03-01 Thread Joan Jesús Pujol Espinar
Hi,

I have authentication problems with the JAAS Realm. I downloaded the 
tomcat 5 sourcecode and in the JASSRealm.java there is some debug 
information  like this:
if( log.isDebugEnabled())
   log.debug(Authenticating  + appName +   +  username);

But I can't see this info in any log. I have set the verbosity of all 
logguers to 4 and I also set debug level to 4 in the Engine and the 
Realm. But I can't see this info.

Cheers,
--
***
Joan Jesús Pujol Espinar
Tècnic de Sistemes
Universitat de Girona
Dpt. Informàtica i Matemàtica Aplicada
Campus Montilivi
17003 - Girona (Spain)
e-mail: [EMAIL PROTECTED]
+34 972 418418 Fax: +34 972 418792
***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Using JAASRealm to authentificate with a NIS

2004-02-19 Thread Joan Jesús Pujol Espinar
Hello,

I need to use BASIC authentification but with a NIS. I try to do it with
the JAASRealm. It's the correct solution?
What I do is:

-1-
Add the Realm in the server.xml
 Realm className=org.apache.catalina.realm.JAASRealm
userClassNames=com.sun.security.auth.UnixPrincipal
roleClassNames=com.sun.security.auth.UnixNumericGroupPrincipal
appName=UsuarisReal debug=99/
-2-
Export the enviorement variable JAVA_OPTS with
-Djava.security.auth.login.config==/usr/local/jakarta-tomcat-4.1.12//conf/UsuarisRealm.conf 



-3-
And the Configuration file UsuarisRealm is:
UsuarisRealm {
   com.sun.security.auth.JndiLoginModule required debug=true
user.provider.url=nis://cosmos.udg.es/ima.udg.es/user
group.provider.url=nis://cosmos.udg.es/ima.udg.es/syste
m/group;
}
-4-
Add a security-constraint in a context of an application:
 security-constraint
   web-resource-collection
   web-resource-name Prova area autentificada
/web-resource-name
   url-pattern/*/url-pattern
   http-method DELETE /http-method
   http-method GET /http-method
   http-method PUT /http-method
   http-method POST /http-method
   /web-resource-collection
   auth-constraint
   role-name208/role-name
   /auth-constraint
   login-config
   auth-method BASIC /auth-method
   realm-nameAutentificacio usuaris /realm-name
   /login-config
   security-role
   role-name208/role-name
   /security-role
 /security-constraint
But this doesn't work.  The error that I recive is  Error 500: Config
Error: It isn't possible to do control acces with an authentificated
principal (translated from spanish)
What I do wrong?

And  it's possible that in the log there isn't any information about
Realm with a debug=99?
Cheers,

PD: Excusme for my english level



--
***
Joan Jesús Pujol Espinar
Tècnic de Sistemes
Universitat de Girona
Dpt. Informàtica i Matemàtica Aplicada
Campus Montilivi
17003 - Girona (Spain)
e-mail: [EMAIL PROTECTED]
+34 972 418418 Fax: +34 972 418792
***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Load on Tomcat 4.1.12

2002-11-27 Thread JOAN INTERD4U
Hi,

I found a similar problem using connections poolling. When I executed a
close() method, the connection wasn't returned to the pool. When i reached
the maximum limit, I cannot do more connections.
I tried the following and it worked:

(..)
Connection conn = null;
conn = ds.getConnection();
conn.setAutoCommit(false);

(...)

conn.close();
conn = null; // Add this line after closing



-Mensaje original-
De: Deepa Raja [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 27 de noviembre de 2002 12:26
Para: Tomcat Users List
Asunto: RE: Load on Tomcat 4.1.12


Hi Sasi

Closing connections in a pool (within tomcat) doesn't return the connection
back to the pool. I have not solved this problem yet. But restarting tomcat
closes all the connections. I did test my connection pool with other
applications that do not use tomcat. I did not have any problem at all. only
when i try to close the connection within tomcat it is not returning the
connection back to the pool. Does anyone have encountered similar problem?
Please throw some light on this. (I'm not using tomcat's connection pooling)

Deepa

-Original Message-
From: P Sasidhar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 11:17 AM
To: Tomcat Users List
Subject: RE: Load on Tomcat 4.1.12


Hi Deepa,

Thanks for your suggestion.But infact i am closing all the
connections.But still it is throwing exception saying that Increase the
mex threads in pool.even I did that.but the problem is still there..

Thanks
sasi

-Original Message-
From: Deepa Raja [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 4:29 PM
To: Tomcat Users List
Subject: RE: Load on Tomcat 4.1.12

Hi,

 If you are connecting to the database make sure it closes the
connection. I
had a similar problem before when the database pooling failed to work
leaving behind several abandon connections. As time goes the number of
open
connections increased and applications becomes very slow.

Hope this helps
Deepa

-Original Message-
From: P Sasidhar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 10:54 AM
To: Tomcat Users List
Subject: Load on Tomcat 4.1.12


Hi All,

I need urgent help!
I have installed my small webapp on Tomcat 4.1.12 on Windows NT machine
but after few requests it is getting hung. Is there any load factor to
be configured? What is the maximum no of users it can take?

I had downloaded this Tomcat form Jakarta.apache.org site. Where I may
be going wrong?

Please help,

Thanks,
Sasi

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




USING WRONG JSP COMPILER

2002-11-26 Thread JOAN INTERD4U
Hi,

I'm working in a Linux platform. While I was using Tomcat 4.1.12 (with
jdk1.4) to serve html and jsp, everything was OK. But when I linked Tomcat
4.1.12 with Apache 1.3 through mod_jk, I got the following error serving jsp
pages (html is OK).

oracle.jsp.parse.JspParseException: Line # 2,
Error: Unable to find class for bean: serv defined by tag with class:
intranet.web.serveis.java.vhServeis
at oracle.jsp.parse.OpenJspTagHandler.defineBeans(OpenJspTagHandler.java)
at
oracle.jsp.parse.OpenJspTagHandler.validateTagAttributes(OpenJspTagHandler.j
ava)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java)
at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java)
at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java)
at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java)
at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java)
at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java)
at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java)
at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
at oracle.jsp.JspServlet.internalService(JspServlet.java)
at oracle.jsp.JspServlet.service(JspServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)

I don´t know why, but now my environment is using the oracle jsp compiler
instead the jasper compiler.
The question is that I'm executing Apache with oracle user, and Tomcat
with tomcat user. I think that I've have a problem with classpath
environment variable.

For user Oracle, I've the following environment:
(...)
CLASSPATH=:/home/oracle/product/oracle/JRE:/home/oracle/product/oracle/jlib:
/home/oracle/product/oracle/rdbms/jlib:/home/oracle/product/oracle/network/j
lib
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/usr/game
s/bin:/usr/games:/opt/gnome/bin:/opt/kde2/bin:.:/home/oracle/product/oracle/
bin
(...)

For user Tomcat, I've the foollowing environment (related with Tomcat):
(...)
CATALINA_HOME=/usr/java/jakarta-tomcat-4.1.12
JAVA_HOME=/usr/java/jdk1.4
PATH=/usr/java/jdk1.4/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/l
ib/java/bin:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde2/bin:.
(...)

I've tried to modify the file /usr/java/jakarta-tomcat-4.1.12/conf/web.xml
as follows (in order to use jasper compiler), but it doesn't work (in fact,
I'm not sure what I'm doing)
(...)
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
 param-namecompiler/param-name
 param-value/usr/java/jdk1.4/bin/javac/param-value
/init-param
init-param
 param-nameclasspath/param-name
 param-value/usr/java/jakarta-tomcat-4.1.12/param-value
/init-param
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
load-on-startup3/load-on-startup
/servlet
(...)

Could anybody tell what to do in order to use again jasper compiler? Thank a
lot.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: access denied for non-localhost ssl

2002-10-03 Thread Joan Friedman

Here's the solution to my problem, to get it into the archives for the 
next person: In server.xml, inside the 'host' element, I added an alias
element with the domain name of the computer.
aliaswww.host.domain.com/alias


Joan

Joan Friedman wrote:
 hi all,
 
 Thank you to anyone who helps me with this - I could use some new 
 approaches.
 
 Access to my servlet through ssl is blocked unless I'm accessing through
 'localhost', with an error page displayed saying 'access denied by access
 control list'.
 
 Here is what I've done so far: I've read tomcat's docs about ssl and 
 security,
 searched google and the tomcat-user mailing list archives, and of course
 tomcat's logs. I added a security debug value to
 CATALINA_OPTS (-D.java.security.debug=all). I commented out the memory 
 realm
 in tomcat's server.xml, and commented out the apache connector and service.
 None of that solved the problem.
 
 I'm using tomcat 4.0.4, standalone, with windows 2000 service pack 2.
 I configured ssl to work on port 1234 and non-ssl to run on port 80.
 As long as all my access is through localhost
 (http://localhost/servletname/whatever), both ssl and non-ssl work
 just fine. Access through the host's domain name or ipaddress works ok for
 non-ssl, both locally and from another machine. When I try to access the 
 ssl
 pages using the host's domain name or ipaddress (rather than 
 'localhost'), I get
 this message in mozilla 1.1
 Forbidden
 You were denied access because:
 Access denied by access control list.
 
 thanks for any help,
 
 Joan Friedman
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




access denied for non-localhost ssl

2002-10-02 Thread Joan Friedman

hi all,

Thank you to anyone who helps me with this - I could use some new 
approaches.

Access to my servlet through ssl is blocked unless I'm accessing through
'localhost', with an error page displayed saying 'access denied by access
control list'.

Here is what I've done so far: I've read tomcat's docs about ssl and 
security,
searched google and the tomcat-user mailing list archives, and of course
tomcat's logs. I added a security debug value to
CATALINA_OPTS (-D.java.security.debug=all). I commented out the memory 
realm
in tomcat's server.xml, and commented out the apache connector and service.
None of that solved the problem.

I'm using tomcat 4.0.4, standalone, with windows 2000 service pack 2.
I configured ssl to work on port 1234 and non-ssl to run on port 80.
As long as all my access is through localhost
(http://localhost/servletname/whatever), both ssl and non-ssl work
just fine. Access through the host's domain name or ipaddress works ok for
non-ssl, both locally and from another machine. When I try to access the 
ssl
pages using the host's domain name or ipaddress (rather than 
'localhost'), I get
this message in mozilla 1.1
Forbidden
You were denied access because:
Access denied by access control list.

thanks for any help,

Joan Friedman


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




openbsd and mod_jk.so build problem

2001-05-26 Thread joan

hey,
I tried to build mod_jk.so on openbsd but I failed...
My environment is as follows:
  * OpenBSD 2.8 Current/ i386
  * JDK 1.1.8 (built from ports)
  * Tomcat 3.2.1

I used from 
/usr/local/jakarta/jakarta-tomcat-3.2.1-src/src/native/apache1.3

root@localhost#/usr/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/lib/apache/include 
-I../jk mod_jk.c ../jk/*.c

and the output was:
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c mod_jk.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_ajp12_worker.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_ajp13.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_ajp13_worker.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_connect.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_jni_worker.c
../jk/jk_jni_worker.c:764: warning:
#warning ---
../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR
JAVA 2 FEATURES DISABLED
../jk/jk_jni_worker.c:766: warning:
#warning ---
../jk/jk_jni_worker.c: In function `load_jvm_dll':
../jk/jk_jni_worker.c:724: `RTLD_NOW' undeclared (first use in this
function)
../jk/jk_jni_worker.c:724: (Each undeclared identifier is reported only once
../jk/jk_jni_worker.c:724: for each function it appears in.)
../jk/jk_jni_worker.c:724: `RTLD_GLOBAL' undeclared (first use in this
function)
apxs:Break: Command failed with rc=65536
root@localhost#

I searched all the mailing list but I did not found the solution...
Tue, 06 Feb 2001,Tobias Oberstein wrote a similar message but no good 
response was replied...

On Freebsd 4.3 Released I've successfully built a working mod_jk.so.
The shell script with tomcat-3.2.1 is buggy on freebsd but works well on 
linux.
So I used the apxs command that fails for openbsd and that is described at 
the beginning of the message

So, is there anyone who succesfully built mod_jk.so on openbsd?
Please help me...

Thanks




Re: openbsd and mod_jk.so build problem

2001-05-26 Thread Joan

Well, I made a symlink of these files to /usr/include and tried to build 
again as described in the previous mail but the result was the same...
Thank you Jack but it isn't the solution with my environment.

Do you think I can do this with JDK 1.3.1rc2?
what is the command you used with apxs?
Is you mod_jk.so working on a openbsd platform?

Or is anyone another idea?

Le Samedi 26 Mai 2001 18:17, vous avez écrit :
 I had the same problem with JDK1.3.1rc2... It's looking for jni.h and
 jni_md.h.  I put them in /usr/include and the problem went away.

 Hope it helps,

 Jack

 joan wrote:
  hey,
  I tried to build mod_jk.so on openbsd but I failed...
  My environment is as follows:
* OpenBSD 2.8 Current/ i386
* JDK 1.1.8 (built from ports)
* Tomcat 3.2.1
 
  I used from
  /usr/local/jakarta/jakarta-tomcat-3.2.1-src/src/native/apache1.3
 
  root@localhost#/usr/sbin/apxs -c -I/usr/local/jdk1.1.8/include
  -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/lib/apache/include
  -I../jk mod_jk.c ../jk/*.c
 
  and the output was:
  cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
  -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
  -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
  -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c mod_jk.c
  cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
  -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
  -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
  -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_ajp12_worker.c
  cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
  -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
  -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
  -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_ajp13.c
  cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
  -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
  -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
  -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_ajp13_worker.c
  cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
  -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
  -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
  -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_connect.c
  cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
  -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
  -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
  -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_jni_worker.c
  ../jk/jk_jni_worker.c:764: warning:
  #warning ---
  ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT
  FOR JAVA 2 FEATURES DISABLED
  ../jk/jk_jni_worker.c:766: warning:
  #warning ---
  ../jk/jk_jni_worker.c: In function `load_jvm_dll':
  ../jk/jk_jni_worker.c:724: `RTLD_NOW' undeclared (first use in this
  function)
  ../jk/jk_jni_worker.c:724: (Each undeclared identifier is reported only
  once ../jk/jk_jni_worker.c:724: for each function it appears in.)
  ../jk/jk_jni_worker.c:724: `RTLD_GLOBAL' undeclared (first use in this
  function)
  apxs:Break: Command failed with rc=65536
  root@localhost#
 
  I searched all the mailing list but I did not found the solution...
  Tue, 06 Feb 2001,Tobias Oberstein wrote a similar message but no good
  response was replied...
 
  On Freebsd 4.3 Released I've successfully built a working mod_jk.so.
  The shell script with tomcat-3.2.1 is buggy on freebsd but works well on
  linux.
  So I used the apxs command that fails for openbsd and that is described
  at the beginning of the message
 
  So, is there anyone who succesfully built mod_jk.so on openbsd?
  Please help me...
 
  Thanks



Re: openbsd and mod_jk.so build problem

2001-05-26 Thread Joan
 */





and here my dlfcn.h located to /usr/include:




/*  $OpenBSD: dlfcn.h,v 1.3 1999/12/09 18:10:23 espie Exp $ */
/*  $NetBSD: dlfcn.h,v 1.2 1995/06/05 19:38:00 pk Exp $ */

/*
 * Copyright (c) 1995 Paul Kranenburg
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in the
 *documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *must display the following acknowledgement:
 *  This product includes software developed by Paul Kranenburg.
 * 4. The name of the author may not be used to endorse or promote products
 *derived from this software withough specific prior written permission
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef _DLFCN_H_
#define _DLFCN_H_

#include sys/cdefs.h

/*
 * User interface to the run-time linker.
 */
__BEGIN_DECLS
extern void *dlopen __P((const char *, int));
extern int  dlclose __P((void *));
extern void *dlsym __P((void *, const char *));
extern int  dlctl __P((void *, int, void *));
extern char *dlerror __P((void));
__END_DECLS

/* Values for dlopen `mode'. */
#define DL_LAZY 1
#define RTLD_LAZY   DL_LAZY /* SunOS Compat */

/*
 * dlctl() commands
 */
#define DL_GETERRNO 1
#define DL_SETSRCHPATH  x
#define DL_GETLIST  x
#define DL_GETREFCNTx
#define DL_GETLOADADDR  x

#endif /* _DLFCN_H_ */



--
Do you see something wrong?
thank you for your help Jeff...

Or is anyone another idea?
---




Le Samedi 26 Mai 2001 20:14, vous avez écrit :
 These constants are defined in /usr/include/dlfcn.h (or something included
 from there).
 They are also defined in $APACHE_HOME/include/os.h

 You definitely need them to build a shared library.

 -Jeff

 - Original Message -
 From: Joan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, May 26, 2001 7:34 PM
 Subject: Re: openbsd and mod_jk.so build problem

  Well, I made a symlink of these files to /usr/include and tried to build
  again as described in the previous mail but the result was the same...
  Thank you Jack but it isn't the solution with my environment.
 
  Do you think I can do this with JDK 1.3.1rc2?
  what is the command you used with apxs?
  Is you mod_jk.so working on a openbsd platform?
 
  Or is anyone another idea?
 
  Le Samedi 26 Mai 2001 18:17, vous avez écrit :
   I had the same problem with JDK1.3.1rc2... It's looking for jni.h and
   jni_md.h.  I put them in /usr/include and the problem went away.
  
   Hope it helps,
  
   Jack
  
   joan wrote:
hey,
I tried to build mod_jk.so on openbsd but I failed...
My environment is as follows:
  * OpenBSD 2.8 Current/ i386
  * JDK 1.1.8 (built from ports)
  * Tomcat 3.2.1
   
I used from
/usr/local/jakarta/jakarta-tomcat-3.2.1-src/src/native/apache1.3
   
root@localhost#/usr/sbin/apxs -c -I/usr/local/jdk1.1.8/include
 
  -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/lib/apache/include
 
-I../jk mod_jk.c ../jk/*.c
   
and the output was:
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
-I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
-I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
-I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c mod_jk.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
-I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
-I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
-I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c

 ../jk/jk_ajp12_worker.c

cc

precompile jsp

2000-12-13 Thread Joan Xiao

Hi all,

I've been trying to use jspc to precompile the jsp pages into java classes.
Below is the steps
I've taken:

1. run jspc and generate the java code and web.xml
2. insert the web.xml generated in step1 into my web.xml.
3. compile the java files into class files.
   Now I have problem with where to put the class files. Should they be
under the web-inf\classes
   or the work\ directory? I put them under web-inf\classes. And I have the
classes preserve
   the package/directory structure.
4. restart Tomcat.

Result: the jsp pages under the first level directory are not re-compiled by
Tomcat, but those
under the 2nd level directory are re-compiled. For example, suppose I have
the following directory structure:
webapps
+ registration
+ enroll
+ web-inf
+ classes

The jsps under registration/ are not recompiled, but those under
registration/enroll are re-compiled by Tomcat, as I can see the java/class
files in the work/ directory.

How can I make it work? Do I have to put the classes files under work/ and
name them the same
way Tomcat names them?

Thanks for any help.

Joan 




How to precompile jsp

2000-12-12 Thread Joan Xiao

Hi all,

I've been trying to use jspc to precompile the jsp pages into java classes.
Below is the steps
I've taken:

1. run jspc and generate the java code and web.xml
2. insert the web.xml generated in step1 into my web.xml.
3. compile the java files into class files.
   Now I have problem with where to put the class files. Should they be
under the web-inf\classes
   or the work\ directory? I put them under web-inf\classes. And I have the
classes preserve
   the package/directory structure.
4. restart Tomcat.

Result: the jsp pages under the first level directory are not re-compiled by
Tomcat, but those
under the 2nd level directory are re-compiled. For example, suppose I have
the following directory structure:
webapps
+ registration
+ enroll
+ web-inf
+ classes

The jsps under registration/ are not recompiled, but those under
registration/enroll are re-compiled by Tomcat, as I can see the java/class
files in the work/ directory.

How can I make it work? Do I have to put the classes files under work/ and
name them the same
way Tomcat names them?

Thanks for any help.

Joan