exception logging in tomcat 5.5
Hello, I just installed Tomcat 5.5.7 and ran my first webapp. I was rather disturbed that exception information only appeared on the default error page, but nowhere in the logs! In fact, in the out-of-the-box install, there were no logs written at all! I went through the docs and found a description of a rather complicated configuration process that would supposedly bring back the normal log (it involves copying 2 jar files and creating and copying one property file to the tomcat/common directory). However, since the docs say that stack trace info is written to stdout only, my hopes are not high for success with this - I thought I would rather go ask here. As I said, uncaught exceptions thrown from within my webapp (different places, e.g. a servlet filter) are not written to stdout (if that is what I see on the console). They only appear on the exception page - which is the one place where I dont need them on the long run. Can anyone help? Why has this been done? thanks, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Version 3.1 works and 3.2 doesn't
This may or may not concern your problem: One change that I have noticed and that had me wondering for an hour or two was the fact that 3.2 treats paths and filenames case-sensitive under Windows OSs. With me, a taglib wasn't found because my META-INF directory was in fact named "Meta-inf". Bummer. regards, Chris - Original Message - From: David Cittadini To: [EMAIL PROTECTED] Sent: Monday, December 11, 2000 4:38 AM Subject: Version 3.1 works and 3.2 doesn't I had Tomcat working well under version 3.1 (except for a memory leak). However, when I change to version 3.2 with no modifications to the JSPs, directory locations etc, I get the following error "Bad file argument to include". It seems to generate this error when one JSP calls another JSP and it fails when it reaches a %@include file="afile.jsp" %. If I change this to use jsp:include page="afile.jsp"/ then I get the error message "invalid jsp:include tag". Does anyone have any idea why it would work on one version but not the other? Regards, David.
security-constraint url-pattern not working
Hello, The following url-pattern in a security-constraint in my WEB.XML causes the page WCPAdmin.jsp (which resides in a subdirectory below the context root) to be protceted under Orion and JRun, whereas Tomcat lets me access it without any constraints: url-pattern*/WCFAdmin.jsp/url-pattern If I change the pattern to: url-pattern/jsp/admin/*/url-pattern all servers behave equal, protecting all pages in the given subdirectory. Now, I wonder why Tomcat ignored the first specification. I suppose this is a bug, but on whose side (JRun Orion, Tomcat or mine) regards, Christian
Re: container managed authentication - how?
thanks for the info, will try. However, seems weird to me that I have to go through involved, non-documented (?) procedures to enable J2EE standard behavior - on the J2EE reference implementation?? Is there anything else to read on this besides server.xml? thanks, Christian - Original Message - From: "Joakim Verona" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 11:08 AM Subject: 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 -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
Re: container managed authentication - how?
can you (or anyone) tell me WHAT I need to activate to enable J2EE standard (form-based) authentication, simply using the tomcat-users.xml file? Is there any place I can read up on this? Does this even work? thanks, Christian - Original Message - From: "Joakim Verona" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 11:08 AM Subject: 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/