RE: error-code 401
Are you using IE ?, and have you deselected Show friendly HTTP error messages under Tools-Internet Options-Advanced -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: 7. august 2003 14:39 To: Tomcat Users List Subject: error-code 401 Hi, I'm trying to display custom error pages. My https context is BASIC protected, and now the site is automatically redirecting to the error page before asking for authentification... I put this lines in web.xml error-page error-code401/error-code locationerror/401.jsp/location /error-page I m using tomcat 4.1.27 standalone on linux. I need your help please. -- Georges Roux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-code 401
Are you using IE ?, and have you deselected Show friendly HTTP error messages under Tools-Internet Options-Advanced -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: 7. august 2003 14:39 To: Tomcat Users List Subject: error-code 401 Hi, I'm trying to display custom error pages. My https context is BASIC protected, and now the site is automatically redirecting to the error page before asking for authentification... I put this lines in web.xml error-page error-code401/error-code locationerror/401.jsp/location /error-page I m using tomcat 4.1.27 standalone on linux. I need your help please. -- Georges Roux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Basic Authentication not work for directory
try /document/* as the url-pattern or /document/*.doc if you want the .doc files under /document to be protected ... -Original Message- From: Daniel Zhang [mailto:[EMAIL PROTECTED] Sent: 22. juli 2003 14:48 To: Tomcat Users List Subject: Basic Authentication not work for directory Hi, all - I've configured Tomcat 4.1.18 on RH Linux 8 server. Then I need some authentication for certain directories under webapps. So I configured server.xml, web.xml and tomcat-users.xml creating a role and its username with password. It works only for individual file with an extension name. But never work for a directory. As you see following code, it pops up basic authentication window for all *.doc files, but does not work for files under /document directory. Anyone had the same experience? = web.xml === security-constraint display-nameSecurity Check/display-name web-resource-collection web-resource-nameBasic Authentication/web-resource-name url-pattern*.doc/url-pattern url-pattern/document/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodHEAD/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nametom/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameDoc Authentication/realm-name /login-config security-role role-nametom/role-name /security-role == tomcat-users.xml = tomcat-users role rolename=tom / role rolename=role1 / user name=tomcat password=tomcat roles=tom / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tom,role1 / /tomcat-users - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: trouble precompiling JSPs
i think there should be no space between -d and the path, and no space between the two paths, i think u must use ; to separate the paths ... -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 21. juli 2003 06:09 To: Tomcat Users List Subject: trouble precompiling JSPs Hello, I'm having some difficulty pre-compiling my JSPs. Could anyone give some insight into this? I type: jspc -d d:/psx_apps/WEB_INF d:\Projects\PSX_Gotter_2\CheckStatus.jsp and I get: Exception in thread main java.lang.ArrayIndexOutOfBoundsException: 3 at org.apache.jasper.JspC.locateUriRoot(JspC.java:628) at org.apache.jasper.JspC.execute(JspC.java:759) at org.apache.jasper.JspC.main(JspC.java:823) Any ideas anyone? -- Developer Greenfield Research Inc. atreya(AT)greenfieldresearch(DOT)ca (902)422-9426 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Handling auth failure
Add this to your web.xml and make a page called error.jsp . error-page error-code403/error-code location/error.jsp/location /error-page -Original Message- From: Christian J. Dechery - ACCENTURE [mailto:[EMAIL PROTECTED] Sent: 21. juli 2003 15:37 To: Tomcat Users List (E-mail) Subject: Handling auth failure I have successfully implemented authentication in Tomcat, but I don't want that 403 screen to ever show up. Is that possible? I'd like that, for whatever reason, the login screen would always show indicating an authentication failure and requesting a new login. If that's not possible, how can I change that ugly default 403 screen? thanks ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Invalid direct reference to form login page
Usually you are interested in some secured resource, and you try to get it. Because it's secured you will be redirected to a login-page, and after authenticating yourself you will be redirected to the requested resource. If you go directly to the login-page, where will it redirect you when you are loged in ? This is the cause ... Abid -Original Message- From: Christian J. Dechery - ACCENTURE [mailto:[EMAIL PROTECTED] Sent: 21. juli 2003 16:09 To: Tomcat Users List (E-mail) Subject: Invalid direct reference to form login page Sometimes I get this error message... can someone give me a hint on the probable causes?? ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MemoryRealm and tomcat-users.xml
Hi Don't you have to add the roles in your web.xml under the tag security-constraint. And there has to be matching roles in auth-constraint and security-role if you haven't done this...it could be the problem ... Abid -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: 18. juli 2003 12:52 To: Tomcat Users List Subject: MemoryRealm and tomcat-users.xml Hi! I have created a simple form-based authentication. It works well with the predefined users (tomcat, role1) but it doesn't work at all if I try to add users and roles in the /%tomcat-root%/conf/tomcat-users.xml. My server.xml is not changed from install so it defines a realm in the Engine-element that according to the comments should be used for all webapps in the server. What have I missed? Thanks in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Location of servlets?
Hi Hve you mapped the servlet in a web.xml file ? If you put the servlet directly under webapps without a catalog containing the WEB-INF catalog that doesn't contain the web.xml file ... it will not work. Abid -Original Message- From: Jeff Howard [mailto:[EMAIL PROTECTED] Sent: 17. juli 2003 23:15 To: Tomcat Users List Subject: Location of servlets? Thanks for everyone's help earlier today. Upgrading to JDK 1.4.2 from 1.2.2 allowed me to get Tomcat running. Now I'm trying the sample servlet Hello.java by calling it from a simple webpage with the line: http://localhost:8080/servlet/hello I put the compiled servlet in my tomcat4 directory/webapps. When I click on the link to call this servlet I get an HTTP Status 500 window from Tomcat saying no context configured to provess this request. Makes me think it can't find the servlet. I looked in the log files and there's an entrythat says: MAPPING configuration error for request URI /Hello Any ideas? Thanks very much! Jeff H. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MemoryRealm and tomcat-users.xml
It looks correct to me ... your url-pattern will only trigger on that specific file... but i guess you know that .. Abid -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: 18. juli 2003 13:06 To: Tomcat Users List Subject: Re: MemoryRealm and tomcat-users.xml Heres my tomcat-users.xml tomcat-users role rolename=supervisor / role rolename=tomcat / role rolename=role1 / role rolename=manager / user name=tomcat password=tomcatroles=tomcat,supervisor / user name=role1 password=tomcatroles=role1 / user name=both password=tomcatroles=tomcat,role1 / user name=test password=test roles=supervisor,manager / /tomcat-users and a part of my web.xml security-constraint web-resource-collection web-resource-nameSecurity test/web-resource-name url-pattern/afile.jsp/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint role-namesupervisor/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.html/form-login-page form-error-page/error.html/form-error-page /form-login-config /login-config security-role role-namesupervisor/role-name /security-role Regards Roland - Original Message - From: Abid Ali Teepo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 18, 2003 12:59 PM Subject: RE: MemoryRealm and tomcat-users.xml Hi Don't you have to add the roles in your web.xml under the tag security-constraint. And there has to be matching roles in auth-constraint and security-role if you haven't done this...it could be the problem ... Abid -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: 18. juli 2003 12:52 To: Tomcat Users List Subject: MemoryRealm and tomcat-users.xml Hi! I have created a simple form-based authentication. It works well with the predefined users (tomcat, role1) but it doesn't work at all if I try to add users and roles in the /%tomcat-root%/conf/tomcat-users.xml. My server.xml is not changed from install so it defines a realm in the Engine-element that according to the comments should be used for all webapps in the server. What have I missed? Thanks in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j initialized in each JSP?
It works now :-) Thank you for all the help !! -Original Message- From: Winifred Sanchez [mailto:[EMAIL PROTECTED] Sent: 17. juli 2003 19:20 To: [EMAIL PROTECTED] Subject: Re: Log4j initialized in each JSP? Just a correction: % static Logger logg = Logger.getLogger(jspName); % _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Adherence to DTD issue
Hi All servlet must be before any servlet-mapping Do it like this: web-app servlet servlet-nameHello3/servlet-name servlet-classHello3/servlet-class /servlet servlet servlet-nameSurveyServlet/servlet-name servlet-classSurveyServlet/servlet-class /servlet servlet-mapping servlet-name Hello3 /servlet-name url-pattern /test/Hello3 /url-pattern /servlet-mapping servlet-mapping servlet-name SurveyServlet /servlet-name url-pattern /MedSurvey /url-pattern /servlet-mapping Abid -Original Message- From: Gregory, Carlton [mailto:[EMAIL PROTECTED] Sent: 17. juli 2003 19:43 To: '[EMAIL PROTECTED]' Subject: Adherence to DTD issue I have altered a web.xml file in my \webapps\test\WEB-INF directory. Upon startup I get a parse error about the structure of the file. I opened the file in XML spy and it said it was an servlet tag unexpected child element. I then downloaded the DTD from sun and printed it out. I am adhering to the DTD from what it seems. ?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-name Hello3 /servlet-name servlet-class Hello3 /servlet-class /servlet servlet-mapping servlet-name Hello3 /servlet-name url-pattern /test/Hello3 /url-pattern /servlet-mapping servlet --- IT GIVES THE ERROR AT THIS LINE servlet-name SurveyServlet /servlet-name servlet-class SurveyServlet /servlet-class /servlet servlet-mapping servlet-name SurveyServlet /servlet-name url-pattern /MedSurvey /url-pattern /servlet-mapping Any ideas? Need more info? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4j initalized in each JSP ??
Hi I've set up some logging for my main servlet, and it appears to be working good. Now i need to set up logging for the JSP's in my application, and i'm a little bit confused because i don't think i should be initializing and defining my logger for each jsp-page ?? That sunds a bit overkill anyone have suggestions as to how i can organize it and what code should go in each jsp ? Maybe some pointers ? Regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j initalized in each JSP ??
Thanks for the reply I've read that article but it doesn't solve my problem. I want to have a different logger for each webapplication. And i think that initservlet is suppose to log for all webapplications. My other problem with that init servlet is why it doesn't contain the code i'm currently using in my servlet e.g : private static Logger logg = Logger.getLogger(BidServletProxy.class); URL configFileResource = BidServerProxy.class.getResource(/log.xml); DOMConfigurator.configure(configFileResource.getFile()); This how it's set up now in my servlet and it works fine. My question is, how can i use the same logger for my jsp residing in the same webapp ? Abid -Original Message- From: Winifred Sanchez [mailto:[EMAIL PROTECTED] Sent: 17. juli 2003 16:18 To: [EMAIL PROTECTED] Subject: Re: Log4j initalized in each JSP ?? Hi There's a sample initialization servlet in http://jakarta.apache.org/log4j/docs/manual.html. It runs when tomcat is started and there is no need to initialize log4j for every servlet. I guess it should also work for jsps. Regards, Winz From: Abid Ali Teepo [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Log4j initalized in each JSP ?? Date: Thu, 17 Jul 2003 14:33:06 +0200 Hi I've set up some logging for my main servlet, and it appears to be working good. Now i need to set up logging for the JSP's in my application, and i'm a little bit confused because i don't think i should be initializing and defining my logger for each jsp-page ?? That sunds a bit overkill anyone have suggestions as to how i can organize it and what code should go in each jsp ? Maybe some pointers ? Regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Prevent Tomcat from displaying directory listing.
Go to the conf/web.xml and set listings=false for the default servlet Abid -Original Message- From: Philip Baruc [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 00:28 To: [EMAIL PROTECTED] Subject: Prevent Tomcat from displaying directory listing. I'm using tomcat 4.1 with the CoyoteConnector as the http server. How do i configure tomcat so that tomcat does NOT display the contents of a directory when that directory is missing a welcome page. i.e. (index.html, index.jsp)? Are there settings in the web.xml or server.xml that i can set? Thank You, PHilip Baruc = --- Philip G. Baruc [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem finding resource for logger
Hi there I've got a problem finding the log.xml file that specifies the behavior for my log4j. I have tried to put it almost everywhere in my war file, but i keep getting the nullpointerexcpetion. Anyone have advise on where to put it, or how to load it ?? I use this code : //Initialise logger String resource = \\WEB-INF\\log.xml; URL configFileResource = BidServerProxy.class.getResource(resource); DOMConfigurator.configure(configFileResource.getFile()); Any pointers or suggestions ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat with log4j output
Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat with log4j output
Hi As far as i know, i only have one logger and i have not put log4j jar in the common/lib i had it in my jdk/jre/ext I tried to move it to common/lib now, but i still get the same output. So i'm getting tomcat debug info even though i never asked for it Is there any way i can override it ? Abid -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:25 To: Tomcat Users List Subject: Re: Tomcat with log4j output Abid Ali Teepo wrote: Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Are You sure that the logger You set to info is also the logger You write to? If You use a control servlet in a different web application to change log levels, there is a chance that You have two different instances of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat with log4j output
How come it has to be both in common/libs and in the WEB-INF ? What will i be missing if i only put it in WEB-INF ? Abid -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:57 To: Tomcat Users List Subject: RE: Tomcat with log4j output Never put Log4j in jdk/jre/ext. You can put it in common/lib, but then also put it in the WEB-INF/lib of your webapp unless you are using a custom repository selector. Otherwise, Log4j uses a single logger repository (the default one) and every app that performs configuration will override the configuration of previously configured apps. Putting it in WEB-INF/lib will make it so you have a distinct logging environment and only that app will be configured in the default logger repository. Jake Quoting Abid Ali Teepo [EMAIL PROTECTED]: Hi As far as i know, i only have one logger and i have not put log4j jar in the common/lib i had it in my jdk/jre/ext I tried to move it to common/lib now, but i still get the same output. So i'm getting tomcat debug info even though i never asked for it Is there any way i can override it ? Abid -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:25 To: Tomcat Users List Subject: Re: Tomcat with log4j output Abid Ali Teepo wrote: Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Are You sure that the logger You set to info is also the logger You write to? If You use a control servlet in a different web application to change log levels, there is a chance that You have two different instances of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1
If this is similiar to version 4 i think you miss a password to your keystore. The default in version 4 is changeit. You must add keypass=changeit, or your password, to your server.xml. Put it right after keystore. And i think it's clientAuth, not authclient as in your server.xml and XML is case-sensitive ... Abid -Original Message- From: sankara [mailto:[EMAIL PROTECTED] Sent: 15. juli 2003 14:41 To: Tomcat Users Subject: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1 Hi all, I have problems in setting up SSL in Tomcat 3.3.1 and the JDK used is 1.3.1. Steps followed: --- I have downloaded the JSSE jar files and placed them in the %JAVA_HOME%/jre/lib/ext My server.xml's SSL config. part is as follows: Http10Connector port=8443 secure=true keystore=d:/keystore/keystore authclient=false / When I restarted the server, the port 8080 is working properly, but when I try to communicate with port 8443 under HTTPS, the following exception is thrown in the Tomcat's console. PoolTcpEndpoint: Handshake failed java.net.SocketException: Socket closed at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at java.io.OutputStream.write(OutputStream.java:56) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at java.lang.Thread.run(Thread.java:479) PoolTcpEndpoint: Handshake failed javax.net.ssl.SSLException: javax.net.ssl.SSLProtocolException: handshake alert: no_certificate at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) Please help me out of this problem. Thanks, Sankaran. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL and mod_jk not working
Have you uncommented the SSL Connector in tomcat's server.xml file ? I can't see any ssl connector starting up at all... If you go to your tomcat's homepage, look up the SSL-HowTO -Original Message- From: Leander Jedamus [mailto:[EMAIL PROTECTED] Sent: 15. juli 2003 16:09 To: Tomcat Users List Subject: SSL and mod_jk not working Hi! I installed mod_jk and it is working for http, but not for https. In catalina.out I have: ... Starting service Tomcat-Standalone Apache Tomcat/4.1.24 15.07.2003 15:52:51 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 15.07.2003 15:52:52 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 15.07.2003 15:52:52 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/171 config=/usr/local/tomcat/conf/jk2.properties in /usr/local/tomcat/conf/auto/mod_jk.conf I changed JkLogLevel to info and restarted apache and fetched http://localhost/examples/ but there is nothing in /usr/local/tomcat/logs/mod_jk.log Why is that? What am I missing? Thanks in advance Leander -- Leander Jedamus Presse- und Öffentlichkeitsarbeit FH Worms Erenburger Str. 19 67549 Worms +49 6241 509-172 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deploying with ant
I'm not sure how you have set up your environment. But i would start inspecting my build.xml file. In there all your targets are defined. If you have one called deploy i would try it out. Otherwise i would add a target called deploy and the command needed to copy the file to your deployment catalog. If you just want to see if it works without ant, all you need is to copy your war file to the webapps catalog of your tomcat installation. Here is my deploy target frommy build.xml file : target name=deploy depends=war !--exec executable=${env.CATALINA_HOME}/bin/shutdown.bat output=shutdown.log/-- delete dir=${env.CATALINA_HOME}/webapps/${baseName}/ copy file=${baseName}.war todir=${env.CATALINA_HOME}/webapps/ overwrite=Yes/ echoPlease start the web server/echo /target Good luck! Abid -Original Message- From: Astrid Wagner [mailto:[EMAIL PROTECTED] Sent: 14. juli 2003 13:03 To: [EMAIL PROTECTED] Subject: deploying with ant Hi, I am trying to install my web application into a tomcat web installation. I thought ant install is the right thing to do and it successfully performed but I can not see any of my web part within the tomcat installation and neither can I call one of my servlets. I thought I would see my application under the webapps directory but I did not. Do I have to make a ant deploy? The documentation does not say so but how do I get the web application to the tomcat installation? Thanks. Astrid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't display jsp compile errors when using error-page.
I don't really understand your question apart from the problem that all exceptions shows your error page. This is because you have set up Throwable in your web.xml file. The Throwable class is the superclass of all errors and exceptions in the Java language. is a snippet from the documentation. I suggest you make more mappings, one for each exception you want to show a specific errorpage for. I think it would be a good idea to maybe make your own exceptions that trigger the error page. Abid -Original Message- From: Ronald Klop [mailto:[EMAIL PROTECTED] Sent: 14. juli 2003 15:02 To: [EMAIL PROTECTED] Subject: can't display jsp compile errors when using error-page. Hello, If I use error-page in web.xml, jsp compile and runtime errors are going to the error handler. If you use errorPage='error.jsp' only runtime errors are handled by my error page. I put this in my web.xml: error-page exception-typejava.lang.Throwable/exception-type location/progs/error.jsp/location /error-page Now all exceptions are redirected to my error page. If Jasper throws an JasperException, because of a JSP compile error it is also handled by this page, but there is no exception in the error.jsp page. Because it is probably handled as a '500 Interal Server Error'. How can I get the error/exception of this in my error.jsp? If I put errorPage='/progs/error.jsp' in the jsp page, compile errors are displayed by tomcat and runtime error are redirected to my errorpage. I hope my question is clear. Greetings, Ronald. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Exception:getOutputStream() has already been called for this response
Yes, i'm using 4.1.24 how come ??? Abid -Opprinnelig melding- Fra: Tim Funk [mailto:[EMAIL PROTECTED] Sendt: fr 11.07.2003 18:06 Til: Tomcat Users List Kopi: Emne: Re: Exception:getOutputStream() has already been called for this response Doh! I don't see anything obvious from my point of view. My last chance question (then I'm out of ideas for now): Are you using 4.1.24? -Tim Abid Ali Teepo wrote: Hi Tim No, the rd.include doesn't write anything. I'm pasting the root cause stack trace that refers to line number 69 in my jasper produced file that i'm attaching ... sure hope you can have a look at it ... Abid java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.coyote.tomcat4.CoyoteResponse.getWriter(CoyoteResponse.java:614) at org.apache.coyote.tomcat4.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:173) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:166) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193) at org.apache.jsp.netbid_done_jsp._jspService(netbid_done_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 11. juli 2003 17:49 To: Tomcat Users List Subject: Re: Exception:getOutputStream() has already been called for this response Does rd.include(request, response); do anything? What will really help is to look at the stacktraces produced - then go back to the jasper generated files to get a better idea of narrowing down when the excpetion gets thrown. -Tim Abid Ali Teepo wrote: I don't understand Tim As far as i can see, i make no call to getOutputStream() And how come the exact same jsp-page will forward to my menu.jsp but not to safe.html. When i request the latter i get this exception. Here is my JSP : %@ page import=Bid.BidSession% % BidSession bidSession = BidSession.readParameters(request, AUTHCLIENT); RequestDispatcher rd = request.getRequestDispatcher(BidProxy); rd.include(request, response); session.setAttribute(bid.authenticated,new String(true)); String pageWanted = (String)session.getAttribute(bid.pageWanted); if(pageWanted!=null !.equals(pageWanted)) { System.out.println(PageWanted in netbid_done: +pageWanted); rd = request.getRequestDispatcher(pageWanted); rd.forward(request, response); } else { rd = request.getRequestDispatcher(/secure/menu.jsp); rd.forward(request, response); } % Could you please pinpoint my error ? Abid -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 11. juli 2003 17:13 To: Tomcat Users List Subject: Re: Exception:getOutputStream() has already been called for this response You have code which is getting the response's output stream, then NOT using it. Then your JSP is trying to gett the writer. You can get one or the other, not both. -Tim Abid Ali Teepo wrote: Hi Anyone recognize this exception : org.apache.jasper.JasperException: getOutputStream() has already been called for this response I get this exception when using requestDispatcher to forward to a html file. The exact same code works when i forward to a jsp file ?? Here is some code : pageWanted is /secure/safe.html if(pageWanted!=null !.equals(pageWanted)) { rd = request.getRequestDispatcher(pageWanted); rd.forward(request, response); } else { rd = request.getRequestDispatcher(/secure/menu.jsp); rd.forward
Check for file existence
Hi I use a filter to intercept all requests. The filter redirects all requests that don't have a session to a login page. My problem is that the filter does so even if the requested file does not exist, so my question is how can i check whether the file exist ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RequestDispatcher
Hi When i use the RequestDispatcher within a first.jsp and forward to someother.jsp that produces the output, why doesn't the url-address in the browser show someother.jsp instead of first.jsp ? Any suggestions to how i can make it show the actual jsp-file in the url-address field of the browser ?? Regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception:getOutputStream() has already been called for this response
Hi Anyone recognize this exception : org.apache.jasper.JasperException: getOutputStream() has already been called for this response I get this exception when using requestDispatcher to forward to a html file. The exact same code works when i forward to a jsp file ?? Here is some code : pageWanted is /secure/safe.html if(pageWanted!=null !.equals(pageWanted)) { rd = request.getRequestDispatcher(pageWanted); rd.forward(request, response); } else { rd = request.getRequestDispatcher(/secure/menu.jsp); rd.forward(request, response); } Any suggestions ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml error-page tag problem
I think this is a Internet Explorer issue, it's a setting you need to unset. goto tools- internet options- advanced uncheck show friendly HTTP error message Abid -Original Message- From: Lance Smith [mailto:[EMAIL PROTECTED] Sent: 11. juli 2003 17:14 To: Tomcat Users List (E-mail) Subject: web.xml error-page tag problem I have the following defined in me web.xml file. The problem is that no mater what Exception is thrown ExceptionHandler.jsp is used. If I comment out the error-code500 error-page it act like nothing is defined. Please HELP!!! I really need to catch the RouterNotUpException and give a special page. Thanks in advance. error-page exception-typeRouterApi.RouterNotUpException/exception-type location/RouterNotUp.jsp/location /error-page error-page exception-typejava.lang.Throwable/exception-type location/ExceptionHandler2.jsp/location /error-page error-page error-code500/error-code location/ExceptionHandler.jsp/location /error-page Lance Smith 972-359-6600 [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] ICQ#: 162503576 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml error-page tag problem
ooops didn't read properly ... you need to change the exception-type to something more specific. maybe a exception you made yourself or something more specific. I think your setting is something that is common for ALL exceptions .. Abid -Original Message- From: Lance Smith [mailto:[EMAIL PROTECTED] Sent: 11. juli 2003 17:14 To: Tomcat Users List (E-mail) Subject: web.xml error-page tag problem I have the following defined in me web.xml file. The problem is that no mater what Exception is thrown ExceptionHandler.jsp is used. If I comment out the error-code500 error-page it act like nothing is defined. Please HELP!!! I really need to catch the RouterNotUpException and give a special page. Thanks in advance. error-page exception-typeRouterApi.RouterNotUpException/exception-type location/RouterNotUp.jsp/location /error-page error-page exception-typejava.lang.Throwable/exception-type location/ExceptionHandler2.jsp/location /error-page error-page error-code500/error-code location/ExceptionHandler.jsp/location /error-page Lance Smith 972-359-6600 [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] ICQ#: 162503576 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception:getOutputStream() has already been called for this response
I don't understand Tim As far as i can see, i make no call to getOutputStream() And how come the exact same jsp-page will forward to my menu.jsp but not to safe.html. When i request the latter i get this exception. Here is my JSP : %@ page import=Bid.BidSession% % BidSession bidSession = BidSession.readParameters(request, AUTHCLIENT); RequestDispatcher rd = request.getRequestDispatcher(BidProxy); rd.include(request, response); session.setAttribute(bid.authenticated,new String(true)); String pageWanted = (String)session.getAttribute(bid.pageWanted); if(pageWanted!=null !.equals(pageWanted)) { System.out.println(PageWanted in netbid_done: +pageWanted); rd = request.getRequestDispatcher(pageWanted); rd.forward(request, response); } else { rd = request.getRequestDispatcher(/secure/menu.jsp); rd.forward(request, response); } % Could you please pinpoint my error ? Abid -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 11. juli 2003 17:13 To: Tomcat Users List Subject: Re: Exception:getOutputStream() has already been called for this response You have code which is getting the response's output stream, then NOT using it. Then your JSP is trying to gett the writer. You can get one or the other, not both. -Tim Abid Ali Teepo wrote: Hi Anyone recognize this exception : org.apache.jasper.JasperException: getOutputStream() has already been called for this response I get this exception when using requestDispatcher to forward to a html file. The exact same code works when i forward to a jsp file ?? Here is some code : pageWanted is /secure/safe.html if(pageWanted!=null !.equals(pageWanted)) { rd = request.getRequestDispatcher(pageWanted); rd.forward(request, response); } else { rd = request.getRequestDispatcher(/secure/menu.jsp); rd.forward(request, response); } Any suggestions ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception:getOutputStream() has already been called for this response
help is to look at the stacktraces produced - then go back to the jasper generated files to get a better idea of narrowing down when the excpetion gets thrown. -Tim Abid Ali Teepo wrote: I don't understand Tim As far as i can see, i make no call to getOutputStream() And how come the exact same jsp-page will forward to my menu.jsp but not to safe.html. When i request the latter i get this exception. Here is my JSP : %@ page import=Bid.BidSession% % BidSession bidSession = BidSession.readParameters(request, AUTHCLIENT); RequestDispatcher rd = request.getRequestDispatcher(BidProxy); rd.include(request, response); session.setAttribute(bid.authenticated,new String(true)); String pageWanted = (String)session.getAttribute(bid.pageWanted); if(pageWanted!=null !.equals(pageWanted)) { System.out.println(PageWanted in netbid_done: +pageWanted); rd = request.getRequestDispatcher(pageWanted); rd.forward(request, response); } else { rd = request.getRequestDispatcher(/secure/menu.jsp); rd.forward(request, response); } % Could you please pinpoint my error ? Abid -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 11. juli 2003 17:13 To: Tomcat Users List Subject: Re: Exception:getOutputStream() has already been called for this response You have code which is getting the response's output stream, then NOT using it. Then your JSP is trying to gett the writer. You can get one or the other, not both. -Tim Abid Ali Teepo wrote: Hi Anyone recognize this exception : org.apache.jasper.JasperException: getOutputStream() has already been called for this response I get this exception when using requestDispatcher to forward to a html file. The exact same code works when i forward to a jsp file ?? Here is some code : pageWanted is /secure/safe.html if(pageWanted!=null !.equals(pageWanted)) { rd = request.getRequestDispatcher(pageWanted); rd.forward(request, response); } else { rd = request.getRequestDispatcher(/secure/menu.jsp); rd.forward(request, response); } Any suggestions ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML DOCTYPE problem
I think the reference to a doctype has to be on the format www.somesite.com/dtd/data.dtd or similar Besides i don't thinkt it will actually validate against that DTD anyway -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: 10. juli 2003 07:21 To: Tomcat Users List Subject: XML DOCTYPE problem Hi everyone, I have created a JSP page that use the jstl xml tag library, specifically using xpath. Everything works perfectly fine as long as I don't have a doctype declaration like the following in my XML instance: !DOCTYPE datasheet PUBLIC -//Innovtech//DTD datasheet//EN c:/dtds/innovtech/datasheet.dtd If I remove it, everything works great, but if I don't, I get a java error like this: org.apache.jasper.JasperException: Could not resolve entity reference: ///c:/dtds/innovtech/datasheet.dtd I have to have the doctype in the xml. Does anyone know how I can fix this?? I did post this to the taglib email list, but it doesn't seem to get near the traffic as this group. Thanks! -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML DOCTYPE problem
And i think it even has to have a http:// in front -Original Message- From: Abid Ali Teepo Sent: 10. juli 2003 09:38 To: Tomcat Users List Subject: RE: XML DOCTYPE problem I think the reference to a doctype has to be on the format www.somesite.com/dtd/data.dtd or similar Besides i don't thinkt it will actually validate against that DTD anyway -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: 10. juli 2003 07:21 To: Tomcat Users List Subject: XML DOCTYPE problem Hi everyone, I have created a JSP page that use the jstl xml tag library, specifically using xpath. Everything works perfectly fine as long as I don't have a doctype declaration like the following in my XML instance: !DOCTYPE datasheet PUBLIC -//Innovtech//DTD datasheet//EN c:/dtds/innovtech/datasheet.dtd If I remove it, everything works great, but if I don't, I get a java error like this: org.apache.jasper.JasperException: Could not resolve entity reference: ///c:/dtds/innovtech/datasheet.dtd I have to have the doctype in the xml. Does anyone know how I can fix this?? I did post this to the taglib email list, but it doesn't seem to get near the traffic as this group. Thanks! -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirect vs RequestDispatcher
Hi I need some input on pro con with using redirect instead of requestdispatcher. I heard someone mention something about firewall issues or other security concerns The reason i'm asking is that i have a problem making my requestdipatcher work, while the redirection works just fine. I use a filter that checks for a valid session before giving access to a restricted area. If there is no valid session i use the requestdispatcher to forward it to the login page. But when it does that it looks for the login page files in the wrong place. Let me give an example: My app area is on https://localhost/sec/ My secure area is on https://localhost/sec/secure/ Whenever i request something in the secure area, without a valid session, i want the request to be forwarded back to my app area. So far it works, but the references to html and jsp within that index.jsp gets an extra /secure/ added to the when requesting the files. This makes it look for https://localhost/sec/secure/someloginpage.jsp instead of https://localhost/sec/someloginpage.jsp . This is the problem, hence it does not find the files. The extra /secure is the url-pattern that triggers my filter. Yes, i know i could use form based authentication, but i have a proprietary loginfunctionality that can't be done with j_security_check I will be happy for any comment or suggestion. regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A question about filters
Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about filters
Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Anonymous posting
You will have to write the filter yourself, it's very much like a servlet. I guess you could set some sessionattribute with your form, and check for the same when the form is posted. If it's not there the sender has probably used his own form ... here are two introductory tutorials: http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html http://javaboutique.internet.com/tutorials/Servlet_Filters/index.html Regards Abid -Original Message- From: harsh [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:40 To: Tomcat Users List Subject: Re: Anonymous posting Sounds like you are after some sort of filter. donno i m new to tomcat configurationsIf that's possible may i get some more details or some urls to study from or some google keywords. many thanks.. harsh harsh wrote: Can i restrict domains of the forms posting to my form handling scripts.i.e only all the html or jsps inside http://www.mysite.com/ can post to my jsps,and noone writes his own HTML forms and post to my site .. i hope i m clear in what i m asking. regards harsh -- harsh http://www.cse.iitb.ac.in/~harsh -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about filters
Yes, i think i will try that when you say filter map such as * you mean url-pattern as * right ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 13:05 To: Tomcat Users List Subject: RE: A question about filters Abid, The server web.xml is processed before the application web.xml, so it should work. You'll need to ensure the filter class is available to all webapps, so /common/lib (for a jar) or /common/classes(for a .class) is where I'd recommend. You'll need to use a filter map such as *. Why not give it a try and let us know what happens. All the best, Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 11:10 To: Tomcat Users List Subject: RE: A question about filters Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about filters
Hi again Yep :-) it works for the whole application if you put the definition in the application web.xml. Thank you for your help. Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 13:05 To: Tomcat Users List Subject: RE: A question about filters Abid, The server web.xml is processed before the application web.xml, so it should work. You'll need to ensure the filter class is available to all webapps, so /common/lib (for a jar) or /common/classes(for a .class) is where I'd recommend. You'll need to use a filter map such as *. Why not give it a try and let us know what happens. All the best, Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 11:10 To: Tomcat Users List Subject: RE: A question about filters Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cookie based session sharing among web apps
I guess you could use a filter, and program all the session handling yourself -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 15:33 To: Tomcat Users List Subject: RE: cookie based session sharing among web apps Not as far as I can tell from digging through the session manager code. It looks like each context has their own session manager which stores a list of active sessions in a hashmap. I think you are going to have to get rather creative with this one. I.E. create a patch that allows all tomcat contexts to share the same cookie. --Angus -Original Message- From: Harris Cotton [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:07 PM To: [EMAIL PROTECTED] Subject: cookie based session sharing among web apps I am keen on having two web applications be able to share sessions. Currently, tomcat creates and maintains a session for each web application for a client. Moving the session id to the url is an option, but one I hope to avoid because of the refactoring it would generate in my applications jsps. In essence, I want tomcat to use / as the url path in the JSESSIONID cookie, and use this session id in all web applications the tomcat server hosts. Can this be accomplished solely with configuration? Thank You _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: url-pattern in filters
Yes i did, thank you but i can't get the filter to take action on all requests with (/*), so i need to figure out how the url-pattern works -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: 1. juli 2003 18:55 To: 'Tomcat Users List' Subject: RE: url-pattern in filters did you see my reply to your previous post? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:30 PM To: Tomcat Users List Subject: RE: url-pattern in filters Howdy, A filter mapped to /* will get called for all requests. The description of the url-pattern element and its uses is in the Servlet Specification. If you post your specific filter's code, we can help find bugs in it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:26 PM To: [EMAIL PROTECTED] Subject: url-pattern in filters Hi Can someone direct me to information as to how i can use the url-pattern in the web.xml file for a filter. I want the filter to be used for all requests, and have put in a url-pattern /* /url-pattern. Somehow the filter is still not called for any request. Anyone got a clue ? Regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem in starting tomcat
I'm not sure what caused that error. But if you are just starting to learn jsp, you don't really need apache configured or installed. And it will very well complicate configuration issues. I suggest you go with a clean installation of JDK first, and then install tomcat. I've never had problems starting up with this setup. Be sure to set the JAVA_HOME after installing the jdk and then set CATALINA_HOME environment variable after installing tomcat. Good luck Regards Abid -Original Message- From: Jenty C [mailto:[EMAIL PROTECTED] Sent: 2. juli 2003 07:28 To: [EMAIL PROTECTED] Subject: Problem in starting tomcat Hi, I just starting to learn JSP. I have installed the Apache 2.0, J2SDK1.4, and finally the TOMCAT4.1 The apache server is running, I have also set the environment variable and the path for JAVA_HOME and CATALINA_HOME, but when I tried to startup from DOS prompt, I got an error message, telling that: The JAVA_HOME environment variable is not define correctly The system cannot find the file -Djava.endorsed.dirs= I don't know whether the error came from java or tomcat, can you give me any solution for this problem. Looking forward to hear from you soon. Thanks Regards, Jenty _ Send a fun phone greeting to your friend! http://www.msn.com.sg/mobile/fungreetings/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem in starting tomcat
You need to set the JAVA_HOME to the directory where you installed the JDK. If you don't know how or where to find the environment variables, follow this guide : 1. Right click My Computer on your desktop 2. Select properties. 3. Go to the advanced Pane 4. Click on environment variables 5. Click new on the System Variables 6. Add a variable called JAVA_HOME to point to you JDK installation e.g C:\Jdk1.4.1\ Regards Abid -Original Message- From: Jenty C [mailto:[EMAIL PROTECTED] Sent: 2. juli 2003 07:28 To: [EMAIL PROTECTED] Subject: Problem in starting tomcat Hi, I just starting to learn JSP. I have installed the Apache 2.0, J2SDK1.4, and finally the TOMCAT4.1 The apache server is running, I have also set the environment variable and the path for JAVA_HOME and CATALINA_HOME, but when I tried to startup from DOS prompt, I got an error message, telling that: The JAVA_HOME environment variable is not define correctly The system cannot find the file -Djava.endorsed.dirs= I don't know whether the error came from java or tomcat, can you give me any solution for this problem. Looking forward to hear from you soon. Thanks Regards, Jenty _ Send a fun phone greeting to your friend! http://www.msn.com.sg/mobile/fungreetings/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem redirecting call to HTTPS
Hello Somehow tomcat will not redirect requests to pages under a security constraint to https. Instead i get an HTTP 500 Internal Server Error In my server.xml the two connectors look like this : !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / /Connector And my security constraint looks like this in the web.xml file : security-constraint web-resource-collection web-resource-nameSecure Zone/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeINTEGRAL/transport-guarantee /user-data-constraint /security-constraint And even though i get the HTTP 500 error the server will not redirect to my error page that i have define like this : error-page error-code500/error-code location/action_error.jsp/location /error-page Please help regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A simple filter question ..
Hi I am trying to make a filter that will redirect all request that don't have a autheticated attribute set, to be redirected to the login page. Somehow my filter does not work properly even though it still is a very basic implementation that does nothing besides a few system out prints. The only confirmation i get that this filter is in fact loaded into tomcat, is that during startup my constructor is called. I know that since the system out call writes to the console. The filter is supposed to take all request to the site since the url-pattern is set to /* Here is the code for the filter : public class BidFilter implements Filter { private FilterConfig filterConfig; public BidFilter() {System.out.println(Filter Constructor);} public void init(FilterConfig f) {} public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain) { try { System.out.print (Within Bid Filter ... ); System.out.println (Filtering the Request ...); chain.doFilter (request, response); System.out.print (Within Bid Filter ... ); System.out.println (Filtering the Response ...); } catch (IOException io) { System.out.println (IOException raised in BidFilter); } catch (ServletException se) { System.out.println (ServletException raised in BidFilter); } } public FilterConfig getFilterConfig() { return this.filterConfig; } public void setFilterConfig (FilterConfig filterConfig) { this.filterConfig = filterConfig; } public void destroy() { } } And here is the web.xml file for the filter : ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameFilter Request/display-name descriptionThe Secure Server/description filter filter-nameBidFilter/filter-name filter-classBid.BidFilter/filter-class /filter filter-mapping filter-nameBidFilter/filter-name url-pattern/*/url-pattern /filter-mapping session-config session-timeout1/session-timeout /session-config welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app Any help would be very appreciated regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url-pattern in filters
Hi Can someone direct me to information as to how i can use the url-pattern in the web.xml file for a filter. I want the filter to be used for all requests, and have put in a url-pattern /* /url-pattern. Somehow the filter is still not called for any request. Anyone got a clue ? Regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connector will not redirect to HTTPS
Hello Somehow tomcat will not redirect requests to pages under a security constraint to https. Instead i get an HTTP 500 Internal Server Error In my server.xml the two connectors look like this : !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / /Connector And my security constraint looks like this in the web.xml file : security-constraint web-resource-collection web-resource-nameSecure Zone/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeINTEGRAL/transport-guarantee /user-data-constraint /security-constraint And even though i get the HTTP 500 error the server will not redirect to my error page that i have define like this : error-page error-code500/error-code location/action_error.jsp/location /error-page Please help regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A filter for authentication
Hi I am trying to make a filter that will redirect all request that don't have a autheticated attribute set, to be redirected to the login page. Somehow my filter does not work properly even though it still is a very basic implementation that does nothing besides a few system out prints. The only confirmation i get that this filter is in fact loaded into tocat, is that during startup my constructor is called. I know that since the system out call writes to the console. The filter is supposed to take all request to the site since the url-pattern is set to /* Here is the code for the filter : public class BidFilter implements Filter { private FilterConfig filterConfig; public BidFilter() {System.out.println(Filter Constructor);} public void init(FilterConfig f) {} public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain) { try { System.out.print (Within Bid Filter ... ); System.out.println (Filtering the Request ...); chain.doFilter (request, response); System.out.print (Within Bid Filter ... ); System.out.println (Filtering the Response ...); } catch (IOException io) { System.out.println (IOException raised in BidFilter); } catch (ServletException se) { System.out.println (ServletException raised in BidFilter); } } public FilterConfig getFilterConfig() { return this.filterConfig; } public void setFilterConfig (FilterConfig filterConfig) { this.filterConfig = filterConfig; } public void destroy() { } } And here is the web.xml file for the filter : ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameFilter Request/display-name descriptionThe Secure Server/description filter filter-nameBidFilter/filter-name filter-classBid.BidFilter/filter-class /filter filter-mapping filter-nameBidFilter/filter-name url-pattern/*/url-pattern /filter-mapping session-config session-timeout1/session-timeout /session-config welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app Any help would be very appreciated regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I get an exception when i stop tomcat ?
Hi I get a java.net.BindException : Cannot assign requested address when i stop tomcat. I have only installed it yet and done nothing else then a start and a stop. The version is 4.1.24. I use the start and stop scripts that are included in the installation. Everything works, i can see the tomcat page on localhost port 8080, and i even changed the port to 9090, and it still works, so i don't think this is a port number issue. When i doubleclick the stop script i get this message in the window that started tomcat : F:\acsE:\Java\jdk1.3.1\bin\java.exe -jar -Duser.dir=E:\Program Files\Apache Gr oup\Tomcat 4.1 E:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar start [INFO] Registry - -Loading registry information [INFO] Registry - -Creating new Registry instance [INFO] Registry - -Creating MBeanServer [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 9090 Starting service Tomcat Standalone Apache Tomcat/4.1.24 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 9090 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=10/130 config=E:\Program Files\Apache Gro up\Tomcat 4.1\conf\jk2.properties Stopping service Tomcat-Standalone java.net.BindException: Cannot assign requested address: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:127) at org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384) at org.apache.jk.server.JkMain.stop(JkMain.java:308) at org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:179) at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1166) at org.apache.catalina.core.StandardService.stop(StandardService.java:546) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225) at org.apache.catalina.startup.Catalina.start(Catalina.java:543) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I get an exception when i stop tomcat ?
Hi again Yes, i'm sure that tomcat starts up properly and i can see the start page as well as other pages linked fom there. I have been using tomcat for a while, i just reinstalled it today and got this error when i stopped. But i have never seen all the attribute info you have written ?? I'm using version 4.1.24 ?? Regards, Abid -Original Message- From: Thomas, Kevin [mailto:[EMAIL PROTECTED] Sent: 16. juni 2003 13:09 To: 'Tomcat Users List' Subject: RE: I get an exception when i stop tomcat ? Hi there. It looks by the output that Tomcat isn't even managing to start properly but you say you managed to see the start page? The log doesn't show any indication of tomcat actually being started completely. You would expect (I think) something like: [INFO] Registry - -Loading registry information [INFO] Registry - -Creating new Registry instance [INFO] Registry - -Creating MBeanServer [INFO] Http11Protocol - -Attribute port: 8080 [INFO] Http11Protocol - -Attribute maxThreads: 75 [INFO] Http11Protocol - -Attribute backlog: 10 [INFO] Http11Protocol - -Attribute tcpNoDelay: true [INFO] Http11Protocol - -Attribute soTimeout: 2 [INFO] Http11Protocol - -Attribute timeout: 2 [INFO] Http11Protocol - -Attribute secure: false [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 protocol handler on port 8080 snip [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol handler on port 8080 Starting service Tomcat-Apache Apache Tomcat/4.1 Cheers, Kev. -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 12:05 To: [EMAIL PROTECTED] Subject: I get an exception when i stop tomcat ? Hi I get a java.net.BindException : Cannot assign requested address when i stop tomcat. I have only installed it yet and done nothing else then a start and a stop. The version is 4.1.24. I use the start and stop scripts that are included in the installation. Everything works, i can see the tomcat page on localhost port 8080, and i even changed the port to 9090, and it still works, so i don't think this is a port number issue. When i doubleclick the stop script i get this message in the window that started tomcat : F:\acsE:\Java\jdk1.3.1\bin\java.exe -jar -Duser.dir=E:\Program Files\Apache Gr oup\Tomcat 4.1 E:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar start [INFO] Registry - -Loading registry information [INFO] Registry - -Creating new Registry instance [INFO] Registry - -Creating MBeanServer [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 9090 Starting service Tomcat Standalone Apache Tomcat/4.1.24 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 9090 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=10/130 config=E:\Program Files\Apache Gro up\Tomcat 4.1\conf\jk2.properties Stopping service Tomcat-Standalone java.net.BindException: Cannot assign requested address: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:127) at org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384) at org.apache.jk.server.JkMain.stop(JkMain.java:308) at org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:179) at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1166) at org.apache.catalina.core.StandardService.stop(StandardService.java:546) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225) at org.apache.catalina.startup.Catalina.start(Catalina.java:543) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Activate SSL in Tomcat 4.1.24
Hello I have a problem activating SSL in tomcat 4.1.24 on win2k. The problem is that despite following all the instructions and using the keytool to import the certificate into the keystore, and uncommenting as well as updating the fields in the xml with filename and password. Nothing seem to happen. I get a regular internet explorer error that says The page cannot be displayed Is there any way i can actually debug this to se what happens ? The keytool import worked just fine on weblogic regards, Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 3.2.2 and SSL
I guess the https protocol is running on port 8443, and not on 8080, as you are trying. Try https://localhost:8443 and se if it works Regards, Abid -Original Message- From: Rajarathinam PARTHASARTHY [mailto:[EMAIL PROTECTED] Sent: 31. mai 2003 13:46 To: Tomcat Users List Subject: Tomcat 3.2.2 and SSL Hi , We are using tomcat 3.2.2. Now we want to setup SSL for tomcat3.2.2 I have created the keys and set the following in the server.xml Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=d:\tomcat3.2.2\conf\keystore\.keystore / Parameter name=keypass value=gemplus13/ /Connector = Now I can start the webserver and servers are listening in 8080 and 8443 ports. But when I give https://localhost:8080, I don't get anything. The status bar in the Internet Explorer browser shows as opening page at https://localhost:8080 Please help me to setup the SSL. Thanks, Parthasarthy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Activate SSL in Tomcat 4.1.24
Thanks for answering. This is the URL i use when i get the error The page cannot be displayed Do you have any suggestions as to how i can debug this ? I mean are there any settings in the tomcat that i can use to see what happens ? Regards Abid -Original Message- From: Adi Katz [mailto:[EMAIL PROTECTED] Sent: 5. juni 2003 14:15 To: 'Tomcat Users List' Subject: RE: Activate SSL in Tomcat 4.1.24 First shot with this kind of error: check the port number that you are using 443 or 8443 IE wil default https to 443 but if in server.xml 8443 is defined then you should try something like this: https://localhost:8443/ Hope it will help Adi -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 12:17 To: Tomcat Users List Subject: Activate SSL in Tomcat 4.1.24 Hello I have a problem activating SSL in tomcat 4.1.24 on win2k. The problem is that despite following all the instructions and using the keytool to import the certificate into the keystore, and uncommenting as well as updating the fields in the xml with filename and password. Nothing seem to happen. I get a regular internet explorer error that says The page cannot be displayed Is there any way i can actually debug this to se what happens ? The keytool import worked just fine on weblogic regards, Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]