problems migrating from tc 3.2 to tc 4.01
hello, i have a webapp im trying to port from tc 3.2 to tc 4.01. the app is aparently ill-behaved and shows some problems when porting: 1) the app relies on trying to catch FileNotFoundExceptions from jsp:include statements. if the jsp it is trying to include isnt there, it silently ignores it. this works in tc 3.2, but tc 4.01 refuses to catch te exception in the jsp. the exception apears to get caugt before hitting the jsp servlet, and bails out. which behaviour is correct? tc 4.01? in that case, is there some other way of doing it? 2) i use PoolMan, and got a nullpioniter exception when it couldnt find its config file. tat is expected, but the entire tomcat instance died with tc 4.01. that didnt happen with tc 3.2 is this a bug, or have i configured someting wrongly? any hints apreciated. env: tc 4.01, ibm jdk 1.3, linux /joakim -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Time does not match
hej, du måste formattera tiden med Calendar klassen om du skall få till det. den har alla möliga finesser /joakim Magnus Jansson wrote: I live in Sweden and I have a giant trouble with time. The jsp pages always shows the GMT time but we have GMT+1 and then we have summer and winter time so right now the time shows 2 hours after. My server platform is NetWare 5.1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 -- Joakim Verona www.verona.se [EMAIL PROTECTED]
getting a jsp file to always be executed on form-based authentification
hello, i would like a certain jsp file to always be executed when form based auth succeeds, regardless of which resource we are trying to get at, something like an event-handler for the auth event. i cant really find a provission for such a function, other than having some session variable to check against, and including the same piece of code in every page. This is doable, but is there any more elegant solution? I will need to make my own security interceptor at some stage. Should I take care of this need in the interceptor? -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
Q:forcing reload of a changed bean
hello, is there a way to force reload of a recompiled bean? ok, this is supposed to be automatic but it doesnt always work, so is there a way to force tomcat to unload a class so that it will be forced to reload the same class next time?? -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
using form-bnased authentication with links
hello, have anybody got form-based authentification to work with links? it works in netscape, explorer, mozilla, etc, but not links. does anybody know anything about this??? -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
Re: container managed authentication - how?
hello, try reading the server.xml file. you must activate an interceptor. you can choose from several. Christian Sell wrote: hello, I just installed Tomcat 3.2 and deployed my web application, which is running sucessfully nuder Orion and JRun, using form-based authentication. However, Tomcat completely ignores the security-constraint settings. How can I get Tomcat to enforce this? Does Tomcat support container-managed security? thanks in advance.. Christian BTW, Heres my web.xml, in case somebody wants to take a look: ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app servlet servlet-namewcfsystem/servlet-name display-namewcfsystem/display-name servlet-classcom.itsit.wcf.adaptor.WCFSystem/servlet-class init-param param-namewcf.properties/param-name param-value/wcf.properties/param-value /init-param load-on-startup1/load-on-startup /servlet session-config session-timeout10/session-timeout /session-config welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list security-constraint web-resource-collection web-resource-nameWCF Administration/web-resource-name descriptionWebComponents Administration/description url-pattern*/WCFAdmin.jsp/url-pattern url-pattern*/wcfsystem/url-pattern /web-resource-collection auth-constraint descriptionAdministrators only/description role-nameadmins/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/content/login.html/form-login-page form-error-page/content/loginerr.html/form-error-page /form-login-config /login-config security-role descriptionWCF Users/description role-nameusers/role-name /security-role security-role descriptionWCF Administrators/description role-nameadmins/role-name /security-role /web-app -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
Re: is it possible to dynamically create and interpret JSP?
Ok, this seems possible. My initial impression is that this would be cumbersome, especially the first time you view a page with the tags, but on the other hand, if the pages are long-lived, like in my case, it wouldnt be bad at all. hmm. it is growing on me. Thanks! CPC Livelink Admin wrote: Sure it's possible - depending on your JVM's security manager. If you have access to write to your document root directory, then you can write a file to that directory and then redirect/forward to it. It will then be compiled and executed. You will probably want to create a directory in the webapp for the session to keep from stomping on other sessions files. You would also want to listen for the session ending event(s) to clean up the files after the session is over. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joakim Verona Sent: Monday, December 04, 2000 07:34 PM To: [EMAIL PROTECTED] Subject: is it possible to dynamically create and interpret JSP? hello, is it possible to dynamically generate and interpret jsp? the purpose is to reuse custom tag libraries. the jsp code would mainly be retreived from a database. is it at all possible, or should i rather look at some other template mechanism? -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/ -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
is it possible to dynamically create and interpret JSP?
hello, is it possible to dynamically generate and interpret jsp? the purpose is to reuse custom tag libraries. the jsp code would mainly be retreived from a database. is it at all possible, or should i rather look at some other template mechanism? -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
how do i recreate the user session after session timeout or server restart?
hello, i have an web-app which uses form login. This works well except when the session times out or the server is restarted(due to a software update) the problem occurs when the user reloads a page from a no longer valid session. tomcat then redirects the user properly to the form-login page. only problem, then, is that the user then is redirected to the original page, which relies on a valid session. i could of course have the session initialization code in every page, but this is error prone. is there some more elegant way, perhaps using some form of event handler? (interceptor?) i think the basic problem is that i cant make the form-login system actually do anything other than setting the username in the underlying session object. -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
using postgres jdbc driver in tomcat
hello, im using the postgress jdbc driver in tomcat, with the poolman connection pooling package. it works well, but there is a strange limit on the lengths of texts that are possible to insert, i can only insert about 8k long texts using the setString function. does anybody have any experience with this problem? i tried the setCharacter steram functions, but they were unimplemented. (i realise this is sligthly off topic) -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
Re: APJ12: connection failed
hello, apache and tomcat talk to each other using the ajp protocoll on a port, normally 8007. apache needs to have a plugin properly configured and running for this to work. there appears to be both mod_jserv and mod_jk you can use for this, where mod_jk is never. i use mod_jserv. read the installation instuctions, and find which plugin to use and where to put it (depending on your os config) and then change the apache startup file to include a file called tomcat.conf or something like that tomcat creates for apache when starting. hope this helps somewhat, even if i wasnt very specific. Natalie D Rassmann wrote: Hi, I have been trying to get Apache to start Tomcat and after many long days I have finally got Apache to start Tomcat. However, when I try to go to the examples page and have Apache serve the JSP or Servlet examples I get the following error: ajp12: can not connect to host 127.0.0.1:8007 ajp12: connection fail an error returned handling request via protocol "ajpv12" What does this mean? I see when I type netstats -a that both ports 8007 and 8080 are not listening. I tried changing the default port to 8009 and this did not work. Can anyone help me -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/