JNI loadLibrary

2004-01-12 Thread Maxime Colas des Francs
Hi Tomcat 5.0.16 release-note says : ... the application must also ensure that the library is not loaded more than once. If the above code were placed in a class inside the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the application were reloaded, the loadLibrary() call

JNI call Tomcat 5.0.16

2004-01-09 Thread Maxime Colas des Francs
Hi I use Tomcat 5.0.16 and attempt to call natives methods from one of my DLL by JNI (works fine outside tomcat). I follow these steps : 1) I put -Djava.library.path=/path/to/dll in CATALINA_OPTS environement variable. I use System.loadLibrary(mylib) in a static context of a

tomcat 5.0.16 win svc CATALINA_BASE

2004-01-08 Thread Maxime Colas des Francs
Hi, How to fix CATALINA_BASE when i use Tomcat 5.0.16 as windows service ? I attempt to configure service with procrun options (like with %CATALINA_HOME%\bin\tomcatw //ES//Tomcat5') and put my path for catalina_base in WorkingPath but doesn't work. What is WorkingPath ? thks for help

JK exception every first request - Tomcat 5.0.16

2003-12-18 Thread Maxime Colas des Francs
Hello, I use Tomcat 5.0.16 with apache and mod_jk (1.2.5) since a few days. (i used before 4.1.29). Every night my Linux reboot, and stuff restart according to my rc files. Every morning, the first response of my web app is a http code 500 with exception below After that, another request

admin tool - tomcat 5.0.16

2003-12-16 Thread Maxime Colas des Francs
Hello, I attempt to use the admin tool in tomcat 5.0.16. It was working for a while, but now every access to a Service node throw this exception in the right frame javax.servlet.ServletException: Define tag cannot set a null value

jsvc and security

2003-12-12 Thread Maxime Colas des Francs
Hello, I attempt to use jsvc from commons-daemon project to launch my tomcat instance. How can I specify the '-security' option (used with catalina.sh)? If I write some system properties (like in catalina.sh): $CATALINA_HOME/bin/jsvc [...] -Djava.security.manager \

Re: jsvc and security - solved

2003-12-12 Thread Maxime Colas des Francs
think i've solved the problem I add a '=' sign after the property -Djava.security.manager= \ for bypass jsvc command line verification After for Tomcat 4.1.29, i had to add permissions for commons-daemon in my catalina.policy (take in tomcat 5 policy file) // These permissions apply to the

fmt setLocale

2003-12-09 Thread Maxime Colas des Francs
Hi all, I have a strange pb with my tomcat 4.1.29 and jstl this jsp works : %@ taglib prefix=fmt uri=http://java.sun.com/jstl/fmt; % fmt:setLocale value=en scope=session/ this one not : %@ taglib prefix=fmt uri=/tags/jstl-fmt % fmt:setLocale value=en scope=session/ (+ in web.xml taglib

RE: fmt setLocale

2003-12-09 Thread Maxime Colas des Francs
? -- De: Maxime Colas des Francs[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 9 de dezembro de 2003 13:14 Para: [EMAIL PROTECTED] Assunto: fmt setLocale Hi all, I have a strange pb with my tomcat 4.1.29 and jstl this jsp works

RE: fmt setLocale

2003-12-09 Thread Maxime Colas des Francs
in your TLD. What do you have inside /WEB-INF/tld/fmt.tld? -- De: Maxime Colas des Francs[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 9 de dezembro de 2003 15:38 Para: Tomcat Users List Assunto: RE: fmt setLocale What do you get from

CATALINA_BASE and libs

2003-12-05 Thread Maxime Colas des Francs
Hi all For keep my files (configuration, log, lib) clearly separate from the Tomcat distribution files, i attempt to use $CATALINA_BASE variable. But i can't move some of my jar files from $CATALINA_HOME/common/lib (JDBC driver, JCE provider, DBCP Pool jar ...) Is there a way to put this stuff

CATALINA_BASE/lib ?

2003-09-16 Thread Maxime Colas des Francs
Hi, For keep my files (configuration, lib) clearly separate from the Tomcat distribution files i attempt to use CATALINA_BASE I use JDBC Reaml with mysql driver, cryptographic external provider ... where can i put my jar file under CATALINA_BASE ? i test $CATALINA_BASE/common/lib

RE: CATALINA_BASE/lib ?

2003-09-16 Thread Maxime Colas des Francs
Hi, I think i have a good raison I use an authentification with a JDBC Realm and Mysql defined in my server.xml, where can i put driver jar ? Tks At 11:03 2003-09-16, you wrote: Howdy, For keep my files (configuration, lib) clearly separate from the Tomcat distribution files i attempt to use

FileLogger and virtual host

2003-09-15 Thread Maxime Colas des Francs
Hi, In my tomcat i have two virtual host defined like this in my server.xml : Host name=host.domaine1.com debug=0 appBase=/path/webapps/host.domaine1.com workDir=/path/webapps/host.domaine1.com/tmp unpackWARs=false autoDeploy=false

login failed attempt

2003-09-08 Thread Maxime Colas des Francs
Hi, In my web application i use a FORM-based authentification. After an athentification failure, request is forward to the jsp file form-error-page defines in my web.xml. Is it possible to get the user ID of the failed attempt ? get back j_security_check params ? Thks

form-auth

2003-09-08 Thread Maxime Colas des Francs
Hi, In my web application i use a FORM-based authentification. After an athentification failure, request is forward to the jsp file form-error-page defines in my web.xml. Is it possible to get the user ID of the failed attempt ? get back j_security_check params ? Thks

Re: forward error

2003-09-05 Thread Maxime Colas des Francs
can read the JavaDoc for HttpServletResponse#sendRedirect and RequestDispatcher#forward. Yoav Shapira Millennium ChemInformatics -Original Message- From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:37 PM To: [EMAIL PROTECTED] Subject: forward error

Re: forward error

2003-09-05 Thread Maxime Colas des Francs
/. Before that is a c:forEach items=${ctcRow.rows} var=row loop. You are probably filling up the buffer with whitespace, then the repsonse gets committed when the buffer is full. -Tim Maxime Colas des Francs wrote: Hi thks for your response, but here is my code, i don't understand where

forward error

2003-09-04 Thread Maxime Colas des Francs
Hi, - If at the end of on of a jsp file, i put a jsp:forward, i have this : java.lang.IllegalStateException: Error: Attempt to clear a buffer that's already been flushed at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:415) at

RE: crypto problem

2003-08-26 Thread Maxime Colas des Francs
:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 11:23 PM To: [EMAIL PROTECTED] Subject: Re:crypto problem Maxime Colas des Francs wrote: I attempt to use openpgp in my web application For that i use an external provider. I put jar files in WEB-INF/lib and in a 'load-on-startup

crypto problem

2003-08-25 Thread Maxime Colas des Francs
hello, I attempt to use openpgp in my web application For that i use an external provider. I put jar files in WEB-INF/lib and in a 'load-on-startup' servlet, i call Security.addProvider() and i read a public key from a file for futur encryptions. I start tomcat manually (with startup.sh) and

Digest

2003-08-14 Thread Maxime Colas des Francs
Hi In a jsp application i want to calculate digested passowrds dynamically According to the Realm How To ... i write this code in a jsp : % String digest = org.apache.catalina.realm.RealmBase.Digest(request.getParameter(password), MD5); % Here is the result :

session timeout

2003-08-14 Thread Maxime Colas des Francs
Hello How can we specifie to a user that his session terminate by timeout (accroding to session-timeout in web.xml) ? thks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tomcat and external provider

2003-08-14 Thread Maxime Colas des Francs
I resolve that with copying criptyx jar in $CATALINA_HOME/shared/lib Smbdy can explain this ? At 13:46 2003-08-07 -0400, you wrote: Hi I detect a stange comportement of my tomcat when using an external security provider I want to use openpgp in my web application with cryptix provider In a

tomcat and external provider

2003-08-10 Thread Maxime Colas des Francs
Hi I detect a stange comportement of my tomcat when using an external security provider I want to use openpgp in my web application with cryptix provider In a 'load-on-startup' servlet i add security provider like this : java.security.Security.addProvider(new

Re: Digest

2003-08-10 Thread Maxime Colas des Francs
Thks for your response ! But I have now another pb . javadoc for org.apache.catalina.realm.RealmBase.Digest() says : ... Digest password using the algorithm especificied and convert the result to a corresponding hex string ... So how to convert my base64(MD5()) digest to the correct hex

costumize manager

2003-06-17 Thread Maxime Colas des Francs
Hello I use tomcat with multiple virtual host. I want to open access to Tomcat Manager for all virtual host independently only for list/start/stop their web applications from an html page. My first idea was to extends the org.apache.catalina.servlets.ManagerServlet and insert it in manager

tomcat security

2003-06-10 Thread Maxime Colas des Francs
Hi, Is there a typical security configuration for a web application in catalina.policy ? I have a lot of java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers) and i don't understand where it comes from tks

RE: tomcat security

2003-06-10 Thread Maxime Colas des Francs
of course yes i start tomat with -security and -Djava.security.debug=access,failure for trace else no security exception At 15:16 2003-06-10 -0400, you wrote: Did you start tomcat with start security? If not, some else messed up. -Original Message- From: Maxime Colas des Francs [mailto

bypass form login page

2003-01-29 Thread Maxime Colas des Francs
Hi, I build an application with a private zone (protected by a FORM-LOGIN page). Is there a method to redirect automaticly a user in the private zone (after his inscription for exemple), without display the form-login-page ? (like a POST to j_security_check ...) Thks

jscp error

2002-12-18 Thread Maxime Colas des Francs
Hi I attempt to use jspc (in tomcat 4.1.12) #jspc -webapp $CATALINA_HOME/webapps/myapp 2002-12-18 04:24:04 - ERROR-the file '/test.jsp' generated the following general exception: java.lang.NullPointerException error:null I use some jstl tags in my jsp code thks for help _ M -- To

VirtualHost workDir

2002-12-04 Thread Maxime Colas des Francs
Hi, I attempt to use Virtual Host with tomcat 4.1.12 in server.xml, each host and context are defined like this : [...] Host name=www.foo.com debug=0 appBase=/var/webapps/www.foo.com workDir=/var/webapps/www.foo.com/work ... / Context path= docBase=webapp ... / [...]

multiple execution of a 'load-on-startup'

2002-11-29 Thread Maxime Colas des Francs
Hello , A strange thing about 'load-on-startup' servlet. I use tomcat 4.1.12 with multi-host, and log4j 1.2.7 in my web.xml i wrote these lines : servlet servlet-nameSetup/servlet-name servlet-classinit.SetupServlet/servlet-class load-on-startup/ /servlet and i put an

char encodings

2002-11-28 Thread Maxime Colas des Francs
Hi, I use tomcat 4.1.12 with taglibs and i try to Internationalize my application. But i have some problems with special chars like accent char. in a test jsp page, i write : c:if test=${empty param.test} jsp:forward page=/test.jsp jsp:param name=test value=éèêàç/ /jsp:forward /c:if 1:

mod_jk2 and tomcat 4.1.12

2002-10-24 Thread Maxime Colas des Francs
Hi I upgrade from tomcat 4.1.10 to tomcat 4.1.12 i recompile connector-4.1.12 for mod_jk2 and .. i need help ... now during tomcat start : Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 8 [main] ERROR server.JkMain - Can't create apr java.lang.NoClassDefFoundError:

jsp compil

2002-10-15 Thread Maxime Colas des Francs
after installing my webapp in $CATALINA_HOME/webapps, how can i pre-compile compile all my jsp in one shot ? thxs

log4j tomcat

2002-10-02 Thread Maxime Colas des Francs
Hi, I want to use log4j in a tomcat 4.1.10 web application. and I think I don't understand relation between tomcat and log4j. I have a log4j-1.2.6.jar If i don't put it anywhere i have a : java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator in my 'onload' servlet (so i

log4j

2002-10-01 Thread Maxime Colas des Francs
How to use log4j with a tomcat application ? I put the log4j.properties in WEB-INF/classes No error but no file created (certainly rights ?) Can i put some log in a directory of the webapp ? Tks.

Re: log4j

2002-10-01 Thread Maxime Colas des Francs
-on-startup1/load-on-startup /servlet ... /web-app - Dan - Original Message - From: Maxime Colas des Francs [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 9:08 AM How to use log4j with a tomcat application ? I put the log4j.properties in WEB-INF/classes No error but no file

Re: log4j

2002-10-01 Thread Maxime Colas des Francs
but I'm still trying to digest it, and how I can use it in Tomcat, myself. -Original Message- From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 12:57 PM To: Tomcat Users List Subject: Re: log4j tks i'm sorry but where can i find

Extra bytes at the end of the class file

2002-10-01 Thread Maxime Colas des Francs
Hi I try to load a servlet during webapp first loading and : == /usr/local/tomcat/logs/catalina.out == Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

mod_jk2 log

2002-09-30 Thread Maxime Colas des Francs
Hello I use Tomcat 4.1.10 and mod_jk2 Can we change log level in jk2.properties ? I have too much ( info ) [jk_jni_aprImpl.c (470)] jkInvoke() invoke in my catalina.out tks

web.xml taglib

2002-09-23 Thread Maxime Colas des Francs
Hi I use tomcat 4.1.10 (with Apache 2 and mod_jk2) In a very simple application i attempt to use JSTL librairie, so i put some taglib section in my web.xml ... After that everything was wrong and tomcat see strange XML Error .. In a very simple web.xml, i make some tests and the result is :

Logs

2002-09-19 Thread Maxime Colas des Francs
Hi I use Tomcat 4.1.10, Apache 2 and mod_jk2 Can we stop these logs in catalina.out ? [...] [Thu Sep 19 11:12:06 2002] ( info ) [jk_jni_aprImpl.c (470)] jkInvoke() invoke 4cffedec [Thu Sep 19 11:12:06 2002] ( info ) [jk_jni_aprImpl.c (470)] jkInvoke() invoke 4cffedec [Thu Sep 19 11:12:15

HTTP 404 on j_security_check

2002-09-11 Thread Maxime Colas des Francs
Hi I use a Form based authentification in web.xml : [...] login-config auth-methodFORM/auth-method realm-nameAuthentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_failed.jsp/form-error-page /form-login-config /login-config [...]