RE: Where Set Tomcat_home and Catalina_home ??
JAVA_HOME=C:\j2sdk1.4.1_01 CATALINA_HOME=tomcatdir -Original Message- From: fred [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:21 PM To: Tomcat Users List Subject: Re: Where Set Tomcat_home and Catalina_home ?? Ok thak you, and sorry for the system... I'm on Xp, it is at the same that for the java: Path: C:\j2sdk1.4.1_01\bin; ? I put C:\Program FilesApache Group.\Tomcat 4.1\bin; ? Thank you... - Original Message - From: Galbayar Dorjgotov [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:16 AM Subject: RE: Where Set Tomcat_home and Catalina_home ?? in autoexec.bat on win98 on win nt or win2k control Panle-System-Advanced-Environment variables -Original Message- From: fred [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:08 PM To: Tomcat Users List Subject: Where Set Tomcat_home and Catalina_home ?? Helo, canyou tell me where set the system environnment variables for: TOMCAT_HOME= C:\Tomcat CATALINA_HOME=C:\Tomcat Thank you. Fred - 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: Context problem, urgent!
Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it looks like what you are seeing. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP Compilation Error
That sounds as if there is a servlet.jar found, that is not up to date. (or another jar like j2ee.jar, that contains the class PageContext) Older versions of pageContext.handlePageException() accepted only objects of class Exception as argument, newer version allow objects of class Throwable. -Original Message- From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:05 PM To: Tomcat Users List Subject: JSP Compilation Error /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho st/_/index_jsp .java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOLVED: Re: MySQL Hell (OT)
AFAIK it's the other way round. The mysql driver started as an independent project as org.gjt.mm.mysql.Driver. As this project became part of the mysql project it got repacked to com.mysql.jdbc.Driver. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:14 PM To: Tomcat Users List Subject: SOLVED: Re: MySQL Hell (OT) The package from the ebuild has apparently been repackaged into the org.gjt.mm.mysql package. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: [OT] jspMyAdmin
o.k., I jared the classes dir, where exactly did you put the file and what was it's name? unimportant, all jars in the spezific dir are loaded/used.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/apache link
I'm an Oracle DBA and we are using tomcat/apache for development of an intranet project. While it all seems pretty straightforward, this is really not my cup of tea and I believe there is something important I'm missing, perhaps with the apache configuration. I've had problems enabling the jk connector to apache, and am wondering if anyone has suggestions... thanks in advance. Precisely, the paths /intranet nor /examples will not appear in apache although tomcat is generating the mod_jk.conf correctly. Useful information: HP 9000 with HP-UX 11 Tomcat 4.1.18 HP Apache 2.0 Here are some configuration files: (See attached file: httpd.conf)(See attached file: workers.properties)(See attached file: mod_jk.conf)(See attached file: server.xml) Laurence Sigler Administrador BBDD Randstad ETT oficina (+34) 91 563 9966 fax (+34) 91 566 21322 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot load JDBC driver class 'null'
hello I have run into that problem too, I defined a datasource and put driver and common/lib and defined resource-ref in web.xml of my web. app. but if throws exception when I try to get a connection from datasource I have found. I tried to do it at home with different database with the same result, so I dont think I have mistyped something. I know this problem has been adressed before but I havent found any solution from maillist archives. BTW I have found one related thing: If you open Tomcat admin tool, choose host - context - context name - Data sources it will throw an exception: org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName' so... I there any known solution ? Maris Orbidans www.datapro.lv - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot load JDBC driver class 'null'
yes it will shutdown tomcat and edit the server.xml file by hand. (add the ResourceParams entry under your context) add the necessary entries, start tomcat and the admin console should work. (at least that's what happens with my tomcat 4.1.18) hope this helps, cristi -Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:03 AM To: Tomcat Users List Subject: Cannot load JDBC driver class 'null' hello I have run into that problem too, I defined a datasource and put driver and common/lib and defined resource-ref in web.xml of my web. app. but if throws exception when I try to get a connection from datasource I have found. I tried to do it at home with different database with the same result, so I dont think I have mistyped something. I know this problem has been adressed before but I havent found any solution from maillist archives. BTW I have found one related thing: If you open Tomcat admin tool, choose host - context - context name - Data sources it will throw an exception: org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName' so... I there any known solution ? Maris Orbidans www.datapro.lv - 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]
Sorry
Hi, By mistake yesterday I have posted a query to this user list instead of turbine . Sorry for the inconvenience. regards, Keshava Murthy. S
Re: Context problem, urgent!
Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it looks like what you are seeing. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie - 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: Cannot load JDBC driver class 'null'
yeah, as I thought however it's boring , let's hope it will be changed in future releases. Maris -Original Message- From: Cristian Draghici [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:07 AM To: Tomcat Users List Subject: RE: Cannot load JDBC driver class 'null' yes it will shutdown tomcat and edit the server.xml file by hand. (add the ResourceParams entry under your context) add the necessary entries, start tomcat and the admin console should work. (at least that's what happens with my tomcat 4.1.18) hope this helps, cristi -Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:03 AM To: Tomcat Users List Subject: Cannot load JDBC driver class 'null' hello I have run into that problem too, I defined a datasource and put driver and common/lib and defined resource-ref in web.xml of my web. app. but if throws exception when I try to get a connection from datasource I have found. I tried to do it at home with different database with the same result, so I dont think I have mistyped something. I know this problem has been adressed before but I havent found any solution from maillist archives. BTW I have found one related thing: If you open Tomcat admin tool, choose host - context - context name - Data sources it will throw an exception: org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName' so... I there any known solution ? Maris Orbidans www.datapro.lv - 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: Tomcat 4.1.18/19 - How to activate gzip support?
in 4.1.19 coyote connector tag i tried the compressione parameter but seen no results haw can i check if my page is being compressed (client-side)? thanx - Original Message - From: mech [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, January 25, 2003 12:33 AM Subject: Tomcat 4.1.18/19 - How to activate gzip support? Hi, I'm currently using Tomcat 4.1.18 for my webapp quite successfully. Unfortunately one db output page is almost 60KB large (1/3 of it is only spaces and tabs) so I was thinking about trying Tomcat 4.1.19's new HTTP 1.1 gzip support. I installed 4.1.19 and my webapp is running again, but how to enable gzip support? My Mozilla supports gzip according to header infos. But how do I find out if my pages really got compressed? Mozilla's page info still says encoding=ISO... (although I'm not sure if this is because of the page content). Sorry, but I didn't see/feel any difference yet ;-) Did I forget something? Anyhow I wonder how to activate gzip for the connector? Shouldn't there be some kind of attribute in server.xml to set for Connector className=org.apache.coyote.tomcat4.CoyoteConnector... ? But I saw nothing in the documentation like enableGZIP=true. I also read that there was (is?) a filter servlet available somewhere to be used for on-the-fly gzip compression. Where can I get some more info how to obtain it and set it up, if I wouldn't use the http connector support? Any ideas about this. Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
I configure ApacheSSL + Tomcat 4.12 with mod_jk and all works. If I call a HTTPS page the conexion is secure. If I call to the tomcat example aplication with https://mihost/examples/ I can see the servlets and JSP folder, but when I select servlets, the IE6 says that the conexion will be not secure and appears the url http://mihost:443/examples/servlets/index.html The port 443 is the SSL port. How can avoid this?. I want the https protocol all the time. Thanks. Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Context problem, urgent!
Hi Bill, Thanks a lot for the instruction. But where shall I put Ant? When I run 5) step in your instruction, it always complain build.xml doesn't existed! BR, Annie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 11:23 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it looks like what you are seeing. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie - 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 4.1.18/19 - How to activate gzip support?
What parameter did you set? Nobody seems to know how to activate gzip support for 4.1.19... (Hope you didn't try enableGZIP=true *g*) Actually that's the question... How to activate this gzip feature? The release-notes say that the coyote connector would support gzip now, but nowhere i found how to enable it. Obviously nobody (except hopefully the developer) know how to use it. Or is it still that alpha quality that it's a secret. Anyhow, could we get a hint from development side how to activate this compression feature? Or maybe it intended as a chrismas gift? ;-) Michael -Original Message- From: Marco Baiguera [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Januar 2003 11:38 To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat 4.1.18/19 - How to activate gzip support? in 4.1.19 coyote connector tag i tried the compressione parameter but seen no results haw can i check if my page is being compressed (client-side)? thanx - Original Message - From: mech [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, January 25, 2003 12:33 AM Subject: Tomcat 4.1.18/19 - How to activate gzip support? Hi, I'm currently using Tomcat 4.1.18 for my webapp quite successfully. Unfortunately one db output page is almost 60KB large (1/3 of it is only spaces and tabs) so I was thinking about trying Tomcat 4.1.19's new HTTP 1.1 gzip support. I installed 4.1.19 and my webapp is running again, but how to enable gzip support? My Mozilla supports gzip according to header infos. But how do I find out if my pages really got compressed? Mozilla's page info still says encoding=ISO... (although I'm not sure if this is because of the page content). Sorry, but I didn't see/feel any difference yet ;-) Did I forget something? Anyhow I wonder how to activate gzip for the connector? Shouldn't there be some kind of attribute in server.xml to set for Connector className=org.apache.coyote.tomcat4.CoyoteConnector... ? But I saw nothing in the documentation like enableGZIP=true. I also read that there was (is?) a filter servlet available somewhere to be used for on-the-fly gzip compression. Where can I get some more info how to obtain it and set it up, if I wouldn't use the http connector support? Any ideas about this. Michael -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: about singletons (ot)
snip/ Basically yes. Much less code than you normally would think needs to be declared synchronized. Maybe someone can post a link to a good guide to thread synchronization - personally I only can recommend the O'Reilly Java Thread book but that's personal taste(!) snip/ How about Concurrent Programming in Java, Doug Lea, Addison-Wesley? I've only begun to work through it but already I'm finding it better than other similar texts that I've encountered. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Context problem, urgent!
It sounds like you're running ant from the wrong directory... Try running Ant from the directory where the Tomcat build.xml is. Hamish -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:59 AM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi Bill, Thanks a lot for the instruction. But where shall I put Ant? When I run 5) step in your instruction, it always complain build.xml doesn't existed! BR, Annie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 11:23 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it looks like what you are seeing. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie - 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: Context problem, urgent!
OK Now when I run ant in tomcat src dir it doesn't complain. But it was failed with the following message: [echo] download http://jakarta.apache.org/builds/jakarta-commons/release/commons-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz testexist: [echo] Testing for /usr/local/commons-beanutils-1.4.1/commons-beanutils.jar downloadgz: [get] Getting: http://jakarta.apache.org/builds/jakarta-commons/release/commons-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz [get] Error getting http://jakarta.apache.org/builds/jakarta-commons/release/commons-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz to \usr\local\file.tar.gz BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/build.xml:564: java.io.FileNotFoundException: http://jakarta.apache.org/builds/jakarta-commons/release/commons-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz Total time: 2 seconds I am using W2k, why it tried to download tar.gz? -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:13 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It sounds like you're running ant from the wrong directory... Try running Ant from the directory where the Tomcat build.xml is. Hamish -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:59 AM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi Bill, Thanks a lot for the instruction. But where shall I put Ant? When I run 5) step in your instruction, it always complain build.xml doesn't existed! BR, Annie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 11:23 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it looks like what you are seeing. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie - 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]
custmize http error - page not found
hi all! is it possible to set a customized http 404 error page? it would be nice to have one in the same look and feel of my application. thanx, joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what is catalina?..
Hi, I am a newbie to tomcat and catalina?..what is catalina?..what is the use of it?.. thanks, Ramkumar
RE: Context problem, urgent!
It doesn't really matter if it downloads the zipped tar or the zip, they're both pretty much the same and should work on either platform... My guess is your firewall is getting in the way of ant's efforts to download the beanutils. Check in the build script or the instructions where it expects to find the bean utils package, download it yourself and put it there. -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:26 PM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! OK Now when I run ant in tomcat src dir it doesn't complain. But it was failed with the following message: [echo] download http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz testexist: [echo] Testing for /usr/local/commons-beanutils-1.4.1/commons-beanutils.jar downloadgz: [get] Getting: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz [get] Error getting http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz to \usr\local\file.tar.gz BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/build.xml:564: java.io.FileNotFoundException: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz Total time: 2 seconds I am using W2k, why it tried to download tar.gz? -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:13 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It sounds like you're running ant from the wrong directory... Try running Ant from the directory where the Tomcat build.xml is. Hamish -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:59 AM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi Bill, Thanks a lot for the instruction. But where shall I put Ant? When I run 5) step in your instruction, it always complain build.xml doesn't existed! BR, Annie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 11:23 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it looks like what you are seeing. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp
Re: Filter and RequestDispatcher.forward()
I have noticed that, too, while preparing a WebLogic web application to run on Tomcat. The code of ApplicationDispatcher says: strongIMPLEMENTATION NOTE/strong: This implementation assumes that no filters are applied to a forwarded or included resource, because they were already done for the original request. For authorization that might even be better, check it once as it comes from outside and if you pass you can go everywhere the current security police allows. I can imagine cases where it wouldn't work though - think about pre-/post-processing each request for whatever reason (your own proprietary security? to decorate each request? decompress in case not all resource has been compressed and you have to decide request by request?), regardless if included or forwarded. In my case I was able to change my code but it was not trivial :-( I think it should be at least controlled by parameters, nothing in the Servlet API v.2 spec leads to believe that it should work that way. Tomasz --- Tim Funk [EMAIL PROTECTED] schrieb: Filters are only run once for the incoming request. See the archives for more information. -Tim Karl Kraft wrote: I've written a Filter to get applied to all page requests so that I can perform some access control and logging. However, when a servlet redirects using the forward() method of RequestDispatcher, it doesn't seem to go through the filter. If needed, I can call the Filter manually before I do the forward(), but I'm wondering if there is a more preferred way to do this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Gesendet von Yahoo! Mail - http://mail.yahoo.de Bis zu 100 MB Speicher bei http://premiummail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invalid TLD resource path
Ah... Lights go on, the jar files work if they're copied, not symlinked. So, that begs the question: is there a Option FollowSymLinks? Thanks! On Mon, 2003-01-27 at 23:18, Mike Johnson wrote: Hello all, I'm currently trying to upgrade from working Tomcat 4.0.x installs to the latest 4.1, but I've been getting the following exception on all of my jar files for the whole 4.1 release branch during the server startup: - Root Cause - java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/lib/reports.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:898) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) - (exception stops the loading of the context, but will be thrown for all the jars in WEB-INF/lib/*) This is on a freshly untar'ed binary, running on Debian unstable. Currently I'm on PPC and Blackdown sdk 1.3.1, but I've been getting the same exception on x86 and Sun's 1.4.x sdk. But I'm guessing by the source that there's something wrong with my config, the relevant part is here: -- ContextConfig.java:894 try { URL url = context.getServletContext().getResource(resourcePath); if (url == null) { throw new IllegalArgumentException (sm.getString(contextConfig.tldResourcePath, resourcePath)); } -- The only configuration changes I made was to add a definition in server.xml (from the new Tomcat tarball, not the old release): Context path=/dealernet docBase=dealernet debug=0 reloadable=true / The same exception happens even with this commented out... I've also attached my web.xml for the dealernet app. I appreciate any help! ?xml version=1.0 encoding=ISO-8859-1? !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 !-- General description of your web application -- display-nameDealernet/display-name description It's great. /description context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value description The EMAIL address of the administrator to whom questions and comments about this application should be addressed. /description /context-param listener listener-classcom.trinitycapital.DB.PoolContextListener/listener-class /listener listener listener-classcom.trinitycapital.dn.Container.DnSessionListener/listener-class /listener servlet servlet-namePostgreSql/servlet-name servlet-classcom.trinitycapital.dn.Container.PostgreSql/servlet-class load-on-startup5/load-on-startup /servlet servlet servlet-namewebdav/servlet-name servlet-classcom.trinitycapital.dn.beans.documents.WebdavServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param !-- Uncomment this to enable read and write access -- init-param param-namereadonly/param-name param-valuefalse/param-value /init-param load-on-startup6/load-on-startup /servlet !-- The mapping for the webdav servlet -- servlet-mapping servlet-namewebdav/servlet-name url-pattern/docs/*/url-pattern /servlet-mapping session-config session-timeout60/session-timeout /session-config /web-app -- Mike Johnson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web.xml servlet and resources
Hello all, This is a fairly simple problem but I haven't been able to find an answer anywhere (I've been looking for the past day or two). I'm hoping this is a common situation and is possible, but from what I've seen I can't see how. What I want is for the resources (images, css files, etc.) to be in a path relative to the servlet. So, if I have an images directory and the servlet URL is http://www.domain.com/some-servlet, the images should be accessible from this URL, http://www.domain.com/some-servlet/images. So, I want to set the URL pattern for some-servlet to be /. If I do that then every URL beginning with that will be grabbed by the servlet, including http://www.domain.com/some-servlet/images/logo.gif (as an example). Suggestions? Thanks. -- Richard Wallace AIM, Inc. (www.a--i--m.com) Information Systems Consultants Providing New Technology, the Old-Fashioned Way - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml servlet and resources
Richard, Usually the servlet are in the WEB_INF directory, and this is forbidden for the users. If you put an image inside web-inf/servlet/images.. you will not be able to retry it. You cannot use the url .../web-inf/images/... Usually you create a image folder at the same level that WEB_INF folder, and you put your image like img src=images/mygif.gif... Remember that the images are retry by new request to the server by the navigator (http://mihost/images/mygif.gif) for each img html token. Antonio, - Original Message - From: Richard Wallace [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 1:17 AM Subject: web.xml servlet and resources Hello all, This is a fairly simple problem but I haven't been able to find an answer anywhere (I've been looking for the past day or two). I'm hoping this is a common situation and is possible, but from what I've seen I can't see how. What I want is for the resources (images, css files, etc.) to be in a path relative to the servlet. So, if I have an images directory and the servlet URL is http://www.domain.com/some-servlet, the images should be accessible from this URL, http://www.domain.com/some-servlet/images. So, I want to set the URL pattern for some-servlet to be /. If I do that then every URL beginning with that will be grabbed by the servlet, including http://www.domain.com/some-servlet/images/logo.gif (as an example). Suggestions? Thanks. -- Richard Wallace AIM, Inc. (www.a--i--m.com) Information Systems Consultants Providing New Technology, the Old-Fashioned Way - 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: web.xml servlet and resources
Hi Richard, if i didn't understand wrong If you want put a image using relative path, the source of your image must be src=/yourApp/images/logo.gif, for example. Good luck! - Original Message - From: Richard Wallace [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 22:17 Subject: web.xml servlet and resources Hello all, This is a fairly simple problem but I haven't been able to find an answer anywhere (I've been looking for the past day or two). I'm hoping this is a common situation and is possible, but from what I've seen I can't see how. What I want is for the resources (images, css files, etc.) to be in a path relative to the servlet. So, if I have an images directory and the servlet URL is http://www.domain.com/some-servlet, the images should be accessible from this URL, http://www.domain.com/some-servlet/images. So, I want to set the URL pattern for some-servlet to be /. If I do that then every URL beginning with that will be grabbed by the servlet, including http://www.domain.com/some-servlet/images/logo.gif (as an example). Suggestions? Thanks. -- Richard Wallace AIM, Inc. (www.a--i--m.com) Information Systems Consultants Providing New Technology, the Old-Fashioned Way - 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: web.xml servlet and resources
Richard, You could use HttpServletRequest.getPathInfo() to read the extra path information after servlet name, read the corresponding object from disk, set an appropriate MIME type, and then send the object back in the response. But it's a lot of new code for something that doesn't seem like a good thing to do. Why not just, - use a standard webapp structure, - map the servlet to '/someservlet' as you describe, - make an images subdirectory, and - link to the images using img src=images/foo.gif from within your servlet? Then, Tomcat does all the work for you. Use the ROOT webapp if you don't want the name of the webapp in the URL. If you want all requests to run through the servlet for security reasons, or something, then you should possibly consider using a Servlet 2.3 Filter instead - this is exactly what they're designed for. Dan. -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 00:17 To: [EMAIL PROTECTED] Subject: web.xml servlet and resources Hello all, This is a fairly simple problem but I haven't been able to find an answer anywhere (I've been looking for the past day or two). I'm hoping this is a common situation and is possible, but from what I've seen I can't see how. What I want is for the resources (images, css files, etc.) to be in a path relative to the servlet. So, if I have an images directory and the servlet URL is http://www.domain.com/some-servlet, the images should be accessible from this URL, http://www.domain.com/some-servlet/images. So, I want to set the URL pattern for some-servlet to be /. If I do that then every URL beginning with that will be grabbed by the servlet, including http://www.domain.com/some-servlet/images/logo.gif (as an example). Suggestions? Thanks. -- Richard Wallace AIM, Inc. (www.a--i--m.com) Information Systems Consultants Providing New Technology, the Old-Fashioned Way - 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: Specifying SMTP port in server.xml
Which docs? John -Original Message- From: Troy J. Kelley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:39 PM To: [EMAIL PROTECTED] Subject: Specifying SMTP port in server.xml Hello, I've googled and searched the archives... The docs for tomcat 4.1 state: WARNING - The default configuration assumes that there is an SMTP server listing on port 25 on localhost. If this is not the case, edit the $CATALINA_HOME/conf/server.xml file, and modify the parameter value for the mail.smtp.host parameter to be the host name of an SMTP server on your network. Now, I've got more SSH tunnels for stuff than you can shake a stick at, and it just so happens that the SMTP server I want to use is localhost listening on port X. I tried the format of: hostname:port for the mail.smtp.host param I also tried to see if there was a mail.smtp.port param Neither of these seemed to work. Any help is greatly appreciated... I can always dig into the code :-) Thanks, -Troy - 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/apache link
No files were attached. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:56 AM To: [EMAIL PROTECTED] Subject: tomcat/apache link I'm an Oracle DBA and we are using tomcat/apache for development of an intranet project. While it all seems pretty straightforward, this is really not my cup of tea and I believe there is something important I'm missing, perhaps with the apache configuration. I've had problems enabling the jk connector to apache, and am wondering if anyone has suggestions... thanks in advance. Precisely, the paths /intranet nor /examples will not appear in apache although tomcat is generating the mod_jk.conf correctly. Useful information: HP 9000 with HP-UX 11 Tomcat 4.1.18 HP Apache 2.0 Here are some configuration files: (See attached file: httpd.conf)(See attached file: workers.properties)(See attached file: mod_jk.conf)(See attached file: server.xml) Laurence Sigler Administrador BBDD Randstad ETT oficina (+34) 91 563 9966 fax (+34) 91 566 21322 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
Hi Antonio, Which is your platform ? Thanks Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 7:57 AM Subject: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I configure ApacheSSL + Tomcat 4.12 with mod_jk and all works. If I call a HTTPS page the conexion is secure. If I call to the tomcat example aplication with https://mihost/examples/ I can see the servlets and JSP folder, but when I select servlets, the IE6 says that the conexion will be not secure and appears the url http://mihost:443/examples/servlets/index.html The port 443 is the SSL port. How can avoid this?. I want the https protocol all the time. Thanks. Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.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: Context problem, urgent!
Hi, I am still struggling with ant. After puting the library files manually, I got this error message: BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/webapps/tomcat-docs/build.xml:82: javax.xml.tr ansform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.T ransformerFactory cannot be found Which lib file is missing? Thanks in advance. -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:53 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It doesn't really matter if it downloads the zipped tar or the zip, they're both pretty much the same and should work on either platform... My guess is your firewall is getting in the way of ant's efforts to download the beanutils. Check in the build script or the instructions where it expects to find the bean utils package, download it yourself and put it there. -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:26 PM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! OK Now when I run ant in tomcat src dir it doesn't complain. But it was failed with the following message: [echo] download http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz testexist: [echo] Testing for /usr/local/commons-beanutils-1.4.1/commons-beanutils.jar downloadgz: [get] Getting: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz [get] Error getting http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz to \usr\local\file.tar.gz BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/build.xml:564: java.io.FileNotFoundException: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz Total time: 2 seconds I am using W2k, why it tried to download tar.gz? -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:13 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It sounds like you're running ant from the wrong directory... Try running Ant from the directory where the Tomcat build.xml is. Hamish -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:59 AM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi Bill, Thanks a lot for the instruction. But where shall I put Ant? When I run 5) step in your instruction, it always complain build.xml doesn't existed! BR, Annie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 11:23 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it looks like what you are seeing. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For
Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
Windows NT - Original Message - From: Ing. Gustavo Edelstein [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:27 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Hi Antonio, Which is your platform ? Thanks Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 7:57 AM Subject: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I configure ApacheSSL + Tomcat 4.12 with mod_jk and all works. If I call a HTTPS page the conexion is secure. If I call to the tomcat example aplication with https://mihost/examples/ I can see the servlets and JSP folder, but when I select servlets, the IE6 says that the conexion will be not secure and appears the url http://mihost:443/examples/servlets/index.html The port 443 is the SSL port. How can avoid this?. I want the https protocol all the time. Thanks. Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.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]
DBCP Factory
Hi, i am using 4.18 and i am wondering if its true that DBCP is the default factory for javax.sql.DataSource resource definitions. I read it in the JNDI DataSource tomcat docs. I defined the resource in the server.xml Resource name=jdbc/db2dbcp auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/db2dbcp parameternamemaxActive/namevalue5/value/parameter [..] but on lookup it seems tomcat cant find the DBCP object factory. I searched for the DBCP libs and couldnt find it either. Now i am confused. 1. Is DBCP bundlded with 4.18 ? 2. is it true that i dont need to declare the factory inside parameter? thx for any hints, i am mainly puzzled since i heard that tyrex is not default anymore, but tyrex is the only pooling library i can find in the tomcat distro. Thanks for clearifying. --- greetings from Marc Logemann http://www.logemann.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk and auto mode
Yep that was the solution. thank you, -m On Wednesday, January 29, 2003, at 09:43 PM, Filip Hanik wrote: I think it is in your httpd.conf file. look for the ServerName directive, and then there is a UseCanonicalName directive too Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Context problem, urgent!
Hi, The missing jar is xml-apis.jar which is an Ant distribution jar. Have you set the ANT_HOME environment variable? -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Jänner 2003 14:18 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi, I am still struggling with ant. After puting the library files manually, I got this error message: BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/webapps/tomcat-docs/build.xml:82: javax.xml.tr ansform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.T ransformerFactory cannot be found Which lib file is missing? Thanks in advance. -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:53 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It doesn't really matter if it downloads the zipped tar or the zip, they're both pretty much the same and should work on either platform... My guess is your firewall is getting in the way of ant's efforts to download the beanutils. Check in the build script or the instructions where it expects to find the bean utils package, download it yourself and put it there. -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:26 PM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! OK Now when I run ant in tomcat src dir it doesn't complain. But it was failed with the following message: [echo] download http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz testexist: [echo] Testing for /usr/local/commons-beanutils-1.4.1/commons-beanutils.jar downloadgz: [get] Getting: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz [get] Error getting http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz to \usr\local\file.tar.gz BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/build.xml:564: java.io.FileNotFoundException: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz Total time: 2 seconds I am using W2k, why it tried to download tar.gz? -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:13 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It sounds like you're running ant from the wrong directory... Try running Ant from the directory where the Tomcat build.xml is. Hamish -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:59 AM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi Bill, Thanks a lot for the instruction. But where shall I put Ant? When I run 5) step in your instruction, it always complain build.xml doesn't existed! BR, Annie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 11:23 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source code and modify it and recompile it? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 9:18 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Look at
RE: Always with my configuration apache ssl + tomcat on redhat 7. 2
Hello, Ok John, I've make a break, then take a step back and verify all my configuration files methodically. And I'm on a new situation : I have always my page 404 but my mod_jk.conf file are different now. I think it's now good because it's look like the example find in your url : http://www.johnturner.com/howto/mod_jk_conf.html Please find again my configuration files : My server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/local/apache/libexec/mod_jk.so / Service name=Tomcat-Standalone 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 / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Engine name=Standalone defaultHost=crip-lxagal.ujf-grenoble.fr debug=0 !-- Define the default virtual host -- Host name=crip-lxagal.ujf-grenoble.fr debug=0 appBase=/local/apache/www/webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/local/apache/libexec/mod_jk.so/ My workers.properties : # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=crip-lxagal.ujf-grenoble.fr worker.ajp13.type=ajp13 # END workers.properties The mod_jk.conf auto generated : ## Auto generated on Thu Jan 30 10:16:03 CET 2003## IfModule !mod_jk.c LoadModule jk_module /local/apache/libexec/mod_jk.so /IfModule JkWorkersFile /local/src/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /local/src/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel emerg VirtualHost crip-lxagal.ujf-grenoble.fr ServerName crip-lxagal.ujf-grenoble.fr crip-lxagal.ujf-grenoble.fr:/admin # Static files Alias /admin /local/apache/www/webapps/../server/webapps/admin Directory /local/apache/www/webapps/../server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None deny from all /Location Location /admin/META-INF/* AllowOverride None deny from all /Location JkMount /admin/j_security_check ajp13 JkMount /admin/*.do ajp13 JkMount /admin/*.jsp ajp13 crip-lxagal.ujf-grenoble.fr:/webdav # Static files Alias /webdav /usr/local/src/jakarta-tomcat-4.1.18/webapps/webdav Directory /usr/local/src/jakarta-tomcat-4.1.18/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location JkMount /webdav/*.jsp ajp13 crip-lxagal.ujf-grenoble.fr:/examples # Static files Alias /examples /local/apache/www/webapps/examples Directory /local/apache/www/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/servlet/HelloWorldExample ajp13 JkMount /examples/snoop ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13 /VirtualHost My httpsd.conf : I have no more virtual host in because they are generated in the mod_jk.conf. Port 443 Listen 443 DocumentRoot /local/apache/www SSLRequireSSL SSLEnable Include /local/tomcat/conf/auto/mod_jk.conf With this configuration I have this below in catalina.out : Jan 29, 2003 5:03:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.18 Jan 29, 2003 5:03:29 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 There is no running ajp13 listening and Jk ...
RE: DBCP Factory
DBCP is bundled with tomcat, but AFAIK is not the default factory for javax.sql.DataSource. According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.htm you have to explicitly set the factory: namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value (Havn't tried it, as we use our own pool, which is no DataSource) -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 2:48 PM To: [EMAIL PROTECTED] Subject: DBCP Factory i am using 4.18 and i am wondering if its true that DBCP is the default factory for javax.sql.DataSource resource definitions. I read it in the JNDI DataSource tomcat docs. 1. Is DBCP bundlded with 4.18 ? 2. is it true that i dont need to declare the factory inside parameter? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP Factory
Hi, i tried also the factory paramter, w/o success, can somebody tell me where the DBCP lib should be? i checked common/lib, but didnt see something. DBCP is bundled with tomcat, but AFAIK is not the default factory for javax.sql.DataSource. According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h owto.htm you have to explicitly set the factory: namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value --- greetings from Marc Logemann http://www.logemann.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Always with my configuration apache ssl + tomcat on redhat 7. 2
What URL generates a 404? - I don't see a Context in server.xml for your webapp...do you have one, or are you using ROOT? - if Apache and Tomcat are on the same machine, I would change .host in workers.properties to localhost instead of the domain name. Not sure why, but sometimes that makes a difference to mod_jk. The auto-config option doesn't generate SSL directives. If you want SSL to work, you will have to stick in a VirtualHost some.ip.address:443 block in httpd.conf, and put the JkMount statements, etc in there. HTH John -Original Message- From: Helene Figueiredo [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 8:55 AM To: [EMAIL PROTECTED] Subject: RE: Always with my configuration apache ssl + tomcat on redhat 7. 2 Hello, Ok John, I've make a break, then take a step back and verify all my configuration files methodically. And I'm on a new situation : I have always my page 404 but my mod_jk.conf file are different now. I think it's now good because it's look like the example find in your url : http://www.johnturner.com/howto/mod_jk_conf.html Please find again my configuration files : My server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/local/apache/libexec/mod_jk.so / Service name=Tomcat-Standalone 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 / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Engine name=Standalone defaultHost=crip-lxagal.ujf-grenoble.fr debug=0 !-- Define the default virtual host -- Host name=crip-lxagal.ujf-grenoble.fr debug=0 appBase=/local/apache/www/webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/local/apache/libexec/mod_jk.so/ My workers.properties : # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=crip-lxagal.ujf-grenoble.fr worker.ajp13.type=ajp13 # END workers.properties The mod_jk.conf auto generated : ## Auto generated on Thu Jan 30 10:16:03 CET 2003## IfModule !mod_jk.c LoadModule jk_module /local/apache/libexec/mod_jk.so /IfModule JkWorkersFile /local/src/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /local/src/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel emerg VirtualHost crip-lxagal.ujf-grenoble.fr ServerName crip-lxagal.ujf-grenoble.fr crip-lxagal.ujf-grenoble.fr:/admin # Static files Alias /admin /local/apache/www/webapps/../server/webapps/admin Directory /local/apache/www/webapps/../server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None deny from all /Location Location /admin/META-INF/* AllowOverride None deny from all /Location JkMount /admin/j_security_check ajp13 JkMount /admin/*.do ajp13 JkMount /admin/*.jsp ajp13 crip-lxagal.ujf-grenoble.fr:/webdav # Static files Alias /webdav /usr/local/src/jakarta-tomcat-4.1.18/webapps/webdav Directory /usr/local/src/jakarta-tomcat-4.1.18/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location JkMount /webdav/*.jsp ajp13 crip-lxagal.ujf-grenoble.fr:/examples # Static files Alias /examples /local/apache/www/webapps/examples Directory /local/apache/www/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location
RE: DBCP Factory
Hi, common/lib should contain commons-dbcp.jar - that is where the BasicDataSourceFactory is. -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Jänner 2003 15:08 To: [EMAIL PROTECTED] Subject: RE: DBCP Factory Hi, i tried also the factory paramter, w/o success, can somebody tell me where the DBCP lib should be? i checked common/lib, but didnt see something. DBCP is bundled with tomcat, but AFAIK is not the default factory for javax.sql.DataSource. According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h owto.htm you have to explicitly set the factory: namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value --- greetings from Marc Logemann http://www.logemann.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]
Buffer overflow
Dear all, I've written a little servlet that gets some binairy data from my database and shows it to the user. Basicly an image servlet. Here's some code: // Set the response mime type response.setContentType(uiElement.getType()); // Get outputstream ServletOutputStream output = response.getOutputStream(); // Write the byte array byte[] data = output.write(uiElement.getByteValue()); output.flush(); output.close(); Now I see the following errors in my application.log: Jan 30, 2003 2:06:35 PM org.apache.jk.common.MsgAjp cpBytes SEVERE: Buffer overflow: buffer.len=8192 pos=29 data=30988 And this in my catalina.log: 00 00 00 00 04 00 c8 00 | ..?. | Do I have to increase that buffer size (how?) or should I place .flush() every 8k? Thanks in advance, Rico Tijsen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Context problem, urgent!
Yes I set ANT_HOME. Could you tell me where I can find this xml-apis.jar and where I should put it? -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 15:54 To: Tomcat Users List Subject: RE: Context problem, urgent! Hi, The missing jar is xml-apis.jar which is an Ant distribution jar. Have you set the ANT_HOME environment variable? -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Jänner 2003 14:18 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi, I am still struggling with ant. After puting the library files manually, I got this error message: BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/webapps/tomcat-docs/build.xml:82: javax.xml.tr ansform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.T ransformerFactory cannot be found Which lib file is missing? Thanks in advance. -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:53 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It doesn't really matter if it downloads the zipped tar or the zip, they're both pretty much the same and should work on either platform... My guess is your firewall is getting in the way of ant's efforts to download the beanutils. Check in the build script or the instructions where it expects to find the bean utils package, download it yourself and put it there. -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:26 PM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! OK Now when I run ant in tomcat src dir it doesn't complain. But it was failed with the following message: [echo] download http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz testexist: [echo] Testing for /usr/local/commons-beanutils-1.4.1/commons-beanutils.jar downloadgz: [get] Getting: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz [get] Error getting http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz to \usr\local\file.tar.gz BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/build.xml:564: java.io.FileNotFoundException: http://jakarta.apache.org/builds/jakarta-commons/release/commo ns-beanutils/v 1.4.1/commons-beanutils-1.4.1.tar.gz Total time: 2 seconds I am using W2k, why it tried to download tar.gz? -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:13 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It sounds like you're running ant from the wrong directory... Try running Ant from the directory where the Tomcat build.xml is. Hamish -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:59 AM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi Bill, Thanks a lot for the instruction. But where shall I put Ant? When I run 5) step in your instruction, it always complain build.xml doesn't existed! BR, Annie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 11:23 To: [EMAIL PROTECTED] Subject: Re: Context problem, urgent! Since 13040 is still marked NEW, I'm afraid so. It's really not as scary as it sounds. The steps are (assuming that jakarta-ant-1.5.x is already installed, and in your PATH): 1) download and un-pack the Tomcat source distribution. 2) download and un-pack the Connector source distribution 3) cd to the directory where you unpacked the Tomcat source (by default .../jakarta-tomcat-4.1.x-src), and copy the 'build.properties.sample' file to 'build.properties' 4) edit the 'build.properties' file to set the 'jtc.home' property to the location of the Connector source dowload. Last time that I did this, you also need to set the 'jasper.home=jasper' property. If you are behind a firewall, then you also have to set the 'proxy.host' and 'proxy.port' to your proxy server's values. These (as well as the 'proxy.use') are commented out by default: uncomment them if this applies. 5) run the command 'ant download' to install the additional libraries. 6) apply the patch to the source code. 7) run the command 'ant dist' to create a new Tomcat distribution in .../jakarta-tomcat-4.1.x-src/dist. Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed that there is fixing solution to the source code. Does it mean that I have to download the source
RE: DBCP Factory
Which file did you download ? tomcat-4.1.18.tar.gz contains jakarta-tomcat-4.1.18/common/lib/commons-dbcp.jar and the other jar files that belong to it. -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:08 PM To: [EMAIL PROTECTED] Subject: RE: DBCP Factory i tried also the factory paramter, w/o success, can somebody tell me where the DBCP lib should be? i checked common/lib, but didnt see something. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Context problem, urgent!
This is the full error message I got during building: build-main: [style] DEPRECATED - xslp processor is deprecated. Use trax or xalan instead . [style] java.lang.NoClassDefFoundError: com/kvisco/xsl/XSLProcessor [style] at org.apache.tools.ant.taskdefs.optional.XslpLiaison.init(Xsl pLiaison.java:80) [style] at java.lang.Class.newInstance0(Native Method) [style] at java.lang.Class.newInstance(Class.java:237) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS LTProcess.java:376) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProc ess.java:557) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess .java:195) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.Project.executeTargets(Project.java:1250 ) [style] at org.apache.tools.ant.Main.runBuild(Main.java:610) [style] at org.apache.tools.ant.Main.start(Main.java:196) [style] at org.apache.tools.ant.Main.main(Main.java:235) [style] java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorF actory [style] at org.apache.tools.ant.taskdefs.optional.XalanLiaison.init(Xa lanLiaison.java:84) [style] at java.lang.Class.newInstance0(Native Method) [style] at java.lang.Class.newInstance(Class.java:237) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS LTProcess.java:379) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProc ess.java:554) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess .java:195) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.Project.executeTargets(Project.java:1250 ) [style] at org.apache.tools.ant.Main.runBuild(Main.java:610) [style] at org.apache.tools.ant.Main.start(Main.java:196) [style] at org.apache.tools.ant.Main.main(Main.java:235) BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/webapps/tomcat-docs/build.xml:82: javax.xml.tr ansform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.T ransformerFactory cannot be found -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 15:54 To: Tomcat Users List Subject: RE: Context problem, urgent! Hi, The missing jar is xml-apis.jar which is an Ant distribution jar. Have you set the ANT_HOME environment variable? -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Jänner 2003 14:18 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! Hi, I am still struggling with ant. After puting the library files manually, I got this error message: BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/webapps/tomcat-docs/build.xml:82: javax.xml.tr ansform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.T ransformerFactory cannot be found
RE: Context problem, urgent!
Have you got another XML processor in your class path that's maybe overriding the one that comes shipped with Ant? -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:18 PM To: 'Tomcat Users List' Subject: RE: Context problem, urgent! This is the full error message I got during building: build-main: [style] DEPRECATED - xslp processor is deprecated. Use trax or xalan instead . [style] java.lang.NoClassDefFoundError: com/kvisco/xsl/XSLProcessor [style] at org.apache.tools.ant.taskdefs.optional.XslpLiaison.init(Xsl pLiaison.java:80) [style] at java.lang.Class.newInstance0(Native Method) [style] at java.lang.Class.newInstance(Class.java:237) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS LTProcess.java:376) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProc ess.java:557) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess .java:195) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.Project.executeTargets(Project.java:1250 ) [style] at org.apache.tools.ant.Main.runBuild(Main.java:610) [style] at org.apache.tools.ant.Main.start(Main.java:196) [style] at org.apache.tools.ant.Main.main(Main.java:235) [style] java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorF actory [style] at org.apache.tools.ant.taskdefs.optional.XalanLiaison.init(Xa lanLiaison.java:84) [style] at java.lang.Class.newInstance0(Native Method) [style] at java.lang.Class.newInstance(Class.java:237) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS LTProcess.java:379) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProc ess.java:554) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess .java:195) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) [style] at org.apache.tools.ant.Task.perform(Task.java:319) [style] at org.apache.tools.ant.Target.execute(Target.java:309) [style] at org.apache.tools.ant.Target.performTasks(Target.java:336) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [style] at org.apache.tools.ant.Project.executeTargets(Project.java:1250 ) [style] at org.apache.tools.ant.Main.runBuild(Main.java:610) [style] at org.apache.tools.ant.Main.start(Main.java:196) [style] at org.apache.tools.ant.Main.main(Main.java:235) BUILD FAILED file:C:/jakarta-tomcat-4.1.18-src/webapps/tomcat-docs/build.xml:82: javax.xml.tr ansform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.T ransformerFactory cannot be found -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 15:54 To: Tomcat Users List Subject: RE: Context problem, urgent! Hi, The missing jar is xml-apis.jar which is an Ant distribution jar. Have you set the ANT_HOME environment variable? -Original Message- From:
RE: Resources for a Context
I've implemented my own DirContext, which extends FileDirContext, and allows one to specify any number of directories on the webapp's classpath. The solution works wonderfully, once I hacked around what I think are bugs in Tomcat. It seems that when you specify your own Resources entry for a Context, Tomcat does things in slightly the wrong order during initialization. I have the following structure in my server.xml: Host ... Context ... Resources className=com.my.dirContext ... / /Context /Host During the parsing of the server.xml file, setResources() is called on the StandardContext object, passing in an instance of my custom DirContext object. At this point, Tomcat creates a ProxyDirContext, wrapping my custom DirContext. During the initialization of the ProxyDirContext, the host is not properly determined and set in the environment. As far as I can tell, this is because at this point in the initialization, the Context entry has not had its parent set yet. This causes all kinds of problems later, since the ProxyDirContext will improperly determine the path to resources if it doesn't have a valid entry for host in its environment. I'm using TC 4.0.6, and have gotten around this by hacking StandardContext.getBasePath() and ContainerBase.setParent(). Has anyone else seen this problem? Is it fixed in a later version? Dave -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 5:30 PM To: Tomcat Users List Subject: RE: Resources for a Context On Wed, 22 Jan 2003, David Keyes wrote: Date: Wed, 22 Jan 2003 17:09:44 -0500 From: David Keyes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Resources for a Context I would be happy to make any modifications that would be required. I've spent a bit of time looking around at the source already, but I'm not sure what the best approach would be. It would be nice if it could be done in a plugin kind of way, but after looking around a bit, it seems that the concept of a single physical directory as a docbase is pretty ingrained (comments?). So far, I've looked at the following: 1. Writing a new catalina Context implementation 2. Writing a new jndi DirContext implementation, that would be configurable to take multiple directories Of those two, I think #2 makes the most sense, but I have doubts as to whether it would solve the problem. What I'm afraid of is that the changes required are peppered throughout the Tomcat codebase. Any pointers that you could give me to get me started in the right direction initially would be hugely appreciated. #2 makes sense to me. Basing your class on the existing code in FileDirContext (in particular, you'll probably want to subclass BaseContext), but allowing it to be configured with multiple directories, should keep you very insulated from the rest of the Tomcat internals. The rest of Tomcat just works through DirContext. You'll have to decide what to do when there's more than one of the directories that have a file or subdirectory of the same name -- perhaps in the order that the directories are configured. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_jk2 config
Hello, Is it possible to set the configuration of urls to be mapped down to tomcat programmatically, when application startsup or something similar to that ? I am also wondering if it's possible to map urls that should not be directed into tomcat. For example I would like all urls that map onto the pattern /* to be delivered with tomcat, but all that have endings such as *.jpg, *.gif, *.pdf, etc. to be deliverd with apache. Thanx, -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.18/19 - How to activate gzip support?
from 4.1.19 LE (windows) default server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=100 bufferSize=2048 compression=off connectionTimeout=2 debug=0 disableUploadTimeout=true enableLookups=true maxKeepAliveRequests=100 maxProcessors=75 minProcessors=5 port=8080 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol proxyPort=0 redirectPort=8443 scheme=http secure=false tcpNoDelay=true useURIValidationHack=false i guess the compression parameter could enable gzip compression. setting to on has no effect. later i'll try compression=gzip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_jk2 config
Hi Reynir - Regarding your second question, I put the location of all my images, css, js files, etc as /images/*.gif, /scripts/*.js, /style/*.css. I create and populate those directories under Apache's DocumentRoot. Only the JSP/servlet URLs are directed to Tomcat. That way, when a JSP or servlet displays a page, all the paths to images, stylsheets and scripts files will resolve to the server root which is happily handled by Apache. Hope that helps. Lajos Reynir Hübner wrote: Hello, Is it possible to set the configuration of urls to be mapped down to tomcat programmatically, when application startsup or something similar to that ? I am also wondering if it's possible to map urls that should not be directed into tomcat. For example I would like all urls that map onto the pattern /* to be delivered with tomcat, but all that have endings such as *.jpg, *.gif, *.pdf, etc. to be deliverd with apache. Thanx, -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP Factory
Hi, ohhh i DLed the LE version, of course i thought that LE only means that libs like xml parser are missing, cause they are bundled in jdk1.4. But DBCP is missing too. Which file did you download ? tomcat-4.1.18.tar.gz contains jakarta-tomcat-4.1.18/common/lib/commons-dbcp.jar and the other jar files that belong to it. -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:08 PM To: [EMAIL PROTECTED] Subject: RE: DBCP Factory i tried also the factory paramter, w/o success, can somebody tell me where the DBCP lib should be? i checked common/lib, but didnt see something. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- greetings from Marc Logemann http://www.logemann.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j_security_check problem
We are running Tomcat 4.1... and are trying to get xreporter to run. We have installed everything and when we go to test the login it gives us this error (which is a http 400 error).. type: Status report message: Invalid direct reference to form login page description: The request sent by the client was syntactically incorrect (Invalid direct reference to form login page). I have looked around and people are suggesting that it is a tomcat config problem. The form submits to j_security_check. Has anyone ran into this problem and does anyone know how to fix the problem. Any help would be great. Thanks Ahead of time, Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18/19 - How to activate gzip support?
I just downloaded the connectors source... (i never thought i would do that...) After having a glimpse at the code I can tell the following: you can set an attribute compression to either on, off or force I don't know what the class FakeOutputStream in the GZipOutputFilter.java might be by now... Anyway... Let's try brute force... Maybe something happens. ;-) Although somewhere in the code it says that force was just for testing purposes... and seems to be not 100% anyway yet... Guess that's why it's alpha. Michael -Original Message- From: Marco Baiguera [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Januar 2003 15:57 To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat 4.1.18/19 - How to activate gzip support? from 4.1.19 LE (windows) default server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=100 bufferSize=2048 compression=off connectionTimeout=2 debug=0 disableUploadTimeout=true enableLookups=true maxKeepAliveRequests=100 maxProcessors=75 minProcessors=5 port=8080 protocolHandlerClassName=org.apache.coyote.http11.Http11Proto col proxyPort=0 redirectPort=8443 scheme=http secure=false tcpNoDelay=true useURIValidationHack=false i guess the compression parameter could enable gzip compression. setting to on has no effect. later i'll try compression=gzip - 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: custmize http error - page not found
Add the following to your web.xml error-page error-code404/error-code location/path/to/error404.jsp/location error-code500/error-code location/path/to/error500.jsp/location /error-page HTH Jan-Michael - Original Message - From: joe [EMAIL PROTECTED] Date: Thursday, January 30, 2003 3:43 am Subject: custmize http error - page not found hi all! is it possible to set a customized http 404 error page? it would be nice to have one in the same look and feel of my application. thanx, joe --- -- 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: j_security_check problem
The problem is that your initial request is to the same page as your form-login-page. The initial request should be do a protected resource, then the user will be prompted for the login page, and then upon successful authentication - they will be routed to the initial request. I usually have an index.jsp that routes the user to a secured resource, and then I use the following in web.xml to ensure that they don't get the error below: error-page error-code400/error-code location/index.jsp/location /error-page The problem is that typically folks will see login.jsp as the first page in the app, and will bookmark it. I wish tomcat didn't display login.jsp, but rather the initial requested URL - then users wouldn't get the wrong bookmark. To get around this, I see two options: 1. Use index.jsp as a true welcome page, with a link to the secured resource. 2. Put a message on the login screen that says do not bookmark this page. I've opted for Number 2, and since all my users are IE, I have a link that adds a bookmark for them using Javascript. HTH, Matt -Original Message- From: Your Name [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 7:32 AM To: [EMAIL PROTECTED] Subject: j_security_check problem We are running Tomcat 4.1... and are trying to get xreporter to run. We have installed everything and when we go to test the login it gives us this error (which is a http 400 error).. type: Status report message: Invalid direct reference to form login page description: The request sent by the client was syntactically incorrect (Invalid direct reference to form login page). I have looked around and people are suggesting that it is a tomcat config problem. The form submits to j_security_check. Has anyone ran into this problem and does anyone know how to fix the problem. Any help would be great. Thanks Ahead of time, Fred - 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: DBCP Factory
I don't have commons-dbcp.jar in my system's Tomcat -- is that new in 4.1? My server runs Tomcat 4.0.6, does that mean I have to put DBCP JAR in my webapp's WEB-INF/lib ? Erik Roberts, Eric wrote: Hi, common/lib should contain commons-dbcp.jar - that is where the BasicDataSourceFactory is. -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Jänner 2003 15:08 To: [EMAIL PROTECTED] Subject: RE: DBCP Factory Hi, i tried also the factory paramter, w/o success, can somebody tell me where the DBCP lib should be? i checked common/lib, but didnt see something. DBCP is bundled with tomcat, but AFAIK is not the default factory for javax.sql.DataSource. According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h owto.htm you have to explicitly set the factory: namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value --- greetings from Marc Logemann http://www.logemann.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
The same that i got when used http: if you type http://mihost/examples/servlet/ the system show the index.html page. The same with jsp: http://mihost/examples/jsp/ must be the same to type http://mihost/examples/jsp/index.html When I change to https, only works the second one (https://mihost/examples/jsp/index.html). Antonio - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:11 PM Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 https://mihost/examples/servlet/ just calls the Invoker servlet (on 4.1.18, at least). What behavior are you expecting, exactly? John -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 10:52 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I test this: https://mihost/examples/servlet/index.html WORKS!! (all the examples run in HTTPS) https://mihost/examples/servlet/DOESN'T WORK!! -- Redirect to --- http://mihost:443/servlet/index.html Any idea? Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Ing. Gustavo Edelstein [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:50 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Windows NT - Original Message - From: Ing. Gustavo Edelstein [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:27 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Hi Antonio, Which is your platform ? Thanks Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 7:57 AM Subject: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I configure ApacheSSL + Tomcat 4.12 with mod_jk and all works. If I call a HTTPS page the conexion is secure. If I call to the tomcat example aplication with https://mihost/examples/ I can see the servlets and JSP folder, but when I select servlets, the IE6 says that the conexion will be not secure and appears the url http://mihost:443/examples/servlets/index.html The port 443 is the SSL port. How can avoid this?. I want the https protocol all the time. Thanks. Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.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] - 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: Redirect and Tomcat
This was news to me too. But, from the horse's mouth: RFC 2616HTTP/1.1 June 1999 If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued. Note: RFC 1945 and RFC 2068 specify that the client is not allowed to change the method on the redirected request. However, most existing user agent implementations treat 302 as if it were a 303 response, performing a GET on the Location field-value regardless of the original request method. The status codes 303 and 307 have been added for servers that wish to make unambiguously clear which kind of reaction is expected of the client. So, in theory, you should generate a 303 response if the request method was POST, and the web page you're redirecting to should be retrieved with a GET. But in practice, the web browser will do just what you expect it to do if a 302 response is received. Dan. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 16:01 To: Tomcat Users List Subject: Re: Redirect and Tomcat Paul Yunusov wrote: Roman, The HTTP1.1 spec says the client should follow the redirect only if the method is GET or HEAD, so check that. Pardon for butting in, but does this mean that my login servlet which accepts and processes a POST request, then uses response.sendRedirect() to send the user to a different resource (another servlet), is invalid? Erik - 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: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
Ralph, This is the problem (i saw it in log files) ... but this happen with the examples aplication of Tomcat 4.1.12 Antonio, - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:22 PM Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I guess https://mihost/examples/servlet/ should go to https://mihost:443/servlet/index.html or https://mihost:/servlet/index.html instead of http://mihost:443/servlet/index.html Which won't work at all, as the browser now tries to talk plain http on port 443. It looks like the welcome file feature is doing something wrong in case of https in his environment. (As I'm not using tomcat with ssl I can't say much more) -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 5:11 PM To: 'Tomcat Users List' Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 https://mihost/examples/servlet/ just calls the Invoker servlet (on 4.1.18, at least). What behavior are you expecting, exactly? -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 10:52 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 https://mihost/examples/servlet/index.html WORKS!! (all the examples run in HTTPS) https://mihost/examples/servlet/DOESN'T WORK!! -- Redirect to --- http://mihost:443/servlet/index.html - 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: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
I understand that...it's the examples. I guess I don't understand why it is so important for that examples URL to work over SSL. Are you saying you duplicated that setup for your own webapp, and are seeing the same behavior? John -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:28 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 The same that i got when used http: if you type http://mihost/examples/servlet/ the system show the index.html page. The same with jsp: http://mihost/examples/jsp/ must be the same to type http://mihost/examples/jsp/index.html When I change to https, only works the second one (https://mihost/examples/jsp/index.html). Antonio - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:11 PM Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 https://mihost/examples/servlet/ just calls the Invoker servlet (on 4.1.18, at least). What behavior are you expecting, exactly? John -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 10:52 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I test this: https://mihost/examples/servlet/index.html WORKS!! (all the examples run in HTTPS) https://mihost/examples/servlet/DOESN'T WORK!! -- Redirect to --- http://mihost:443/servlet/index.html Any idea? Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Ing. Gustavo Edelstein [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:50 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Windows NT - Original Message - From: Ing. Gustavo Edelstein [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:27 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Hi Antonio, Which is your platform ? Thanks Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 7:57 AM Subject: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I configure ApacheSSL + Tomcat 4.12 with mod_jk and all works. If I call a HTTPS page the conexion is secure. If I call to the tomcat example aplication with https://mihost/examples/ I can see the servlets and JSP folder, but when I select servlets, the IE6 says that the conexion will be not secure and appears the url http://mihost:443/examples/servlets/index.html The port 443 is the SSL port. How can avoid this?. I want the https protocol all the time. Thanks. Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.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] - 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: Redirect and Tomcat
Daniel Brown wrote: This was news to me too. But, from the horse's mouth: [...] So, in theory, you should generate a 303 response if the request method was POST, and the web page you're redirecting to should be retrieved with a GET. But in practice, the web browser will do just what you expect it to do if a 302 response is received. Hm... yes, in practice it works (currently that is how my app handles logins and it works in all browsers AFAIK), but at some point someone might implement the spec. I always try to write in compliance of the spec, so what I'm wondering is how I can specify that the sendRedirect should use GET instead of the original method, which was POST. (I seem to recall reading somewhere that sendRedirect uses the original method.) Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
John Yes, i am seeing the same behavior in my applications. I use the examples webapp as test, because when I installed my own application i had a lot of problems with the Tomcat login (with realms) over SSL. I think that examples is perfect to fix the problem , and don't mix with other problems. Antonio, - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:29 PM Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I understand that...it's the examples. I guess I don't understand why it is so important for that examples URL to work over SSL. Are you saying you duplicated that setup for your own webapp, and are seeing the same behavior? John -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:28 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 The same that i got when used http: if you type http://mihost/examples/servlet/ the system show the index.html page. The same with jsp: http://mihost/examples/jsp/ must be the same to type http://mihost/examples/jsp/index.html When I change to https, only works the second one (https://mihost/examples/jsp/index.html). Antonio - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:11 PM Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 https://mihost/examples/servlet/ just calls the Invoker servlet (on 4.1.18, at least). What behavior are you expecting, exactly? John -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 10:52 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I test this: https://mihost/examples/servlet/index.html WORKS!! (all the examples run in HTTPS) https://mihost/examples/servlet/DOESN'T WORK!! -- Redirect to --- http://mihost:443/servlet/index.html Any idea? Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Ing. Gustavo Edelstein [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:50 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Windows NT - Original Message - From: Ing. Gustavo Edelstein [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:27 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Hi Antonio, Which is your platform ? Thanks Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 7:57 AM Subject: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I configure ApacheSSL + Tomcat 4.12 with mod_jk and all works. If I call a HTTPS page the conexion is secure. If I call to the tomcat example aplication with https://mihost/examples/ I can see the servlets and JSP folder, but when I select servlets, the IE6 says that the conexion will be not secure and appears the url http://mihost:443/examples/servlets/index.html The port 443 is the SSL port. How can avoid this?. I want the https protocol all the time. Thanks. Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.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] - 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
Re: DBCP Factory
4.0.x uses Tyrex. DBCP is for 4.1.x. And make sure you get the full version of Tomcat instead of the jdk1.4.x-LE version. Jake At 11:21 AM 1/30/2003 -0500, you wrote: I don't have commons-dbcp.jar in my system's Tomcat -- is that new in 4.1? My server runs Tomcat 4.0.6, does that mean I have to put DBCP JAR in my webapp's WEB-INF/lib ? Erik Roberts, Eric wrote: Hi, common/lib should contain commons-dbcp.jar - that is where the BasicDataSourceFactory is. -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 30. Jänner 2003 15:08 To: [EMAIL PROTECTED] Subject: RE: DBCP Factory Hi, i tried also the factory paramter, w/o success, can somebody tell me where the DBCP lib should be? i checked common/lib, but didnt see something. DBCP is bundled with tomcat, but AFAIK is not the default factory for javax.sql.DataSource. According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h owto.htm you have to explicitly set the factory: namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value --- greetings from Marc Logemann http://www.logemann.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443
I get the solution. Change TOMCAT 4.1.12 to TOMCAT 4.1.18 Thanks to all answers. Antonio, Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:29 PM Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I understand that...it's the examples. I guess I don't understand why it is so important for that examples URL to work over SSL. Are you saying you duplicated that setup for your own webapp, and are seeing the same behavior? John -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:28 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 The same that i got when used http: if you type http://mihost/examples/servlet/ the system show the index.html page. The same with jsp: http://mihost/examples/jsp/ must be the same to type http://mihost/examples/jsp/index.html When I change to https, only works the second one (https://mihost/examples/jsp/index.html). Antonio - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:11 PM Subject: RE: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 https://mihost/examples/servlet/ just calls the Invoker servlet (on 4.1.18, at least). What behavior are you expecting, exactly? John -Original Message- From: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 10:52 AM To: Tomcat Users List Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I test this: https://mihost/examples/servlet/index.html WORKS!! (all the examples run in HTTPS) https://mihost/examples/servlet/DOESN'T WORK!! -- Redirect to --- http://mihost:443/servlet/index.html Any idea? Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Ing. Gustavo Edelstein [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:50 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Windows NT - Original Message - From: Ing. Gustavo Edelstein [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 2:27 PM Subject: Re: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 Hi Antonio, Which is your platform ? Thanks Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Antonio Vázquez [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 7:57 AM Subject: ApacheSSL + Tomcat 4.12 change from HTTPS to port 443 I configure ApacheSSL + Tomcat 4.12 with mod_jk and all works. If I call a HTTPS page the conexion is secure. If I call to the tomcat example aplication with https://mihost/examples/ I can see the servlets and JSP folder, but when I select servlets, the IE6 says that the conexion will be not secure and appears the url http://mihost:443/examples/servlets/index.html The port 443 is the SSL port. How can avoid this?. I want the https protocol all the time. Thanks. Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.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] - 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:
RE: Tomcat throwing error
Thanks John. But we have all latest patches (recommended) from SUN on our servers. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 7:57 PM To: 'Tomcat Users List' Subject: RE: Tomcat throwing error Is your Solaris install patched to the latest fixes? There have been a couple fixes within the last 6-8 months for /dev/random. I'm not saying that's the solution, but this is the first time I have seen this error posted to the list. At the very least, you want a recent release of Sun's Recommended patch cluster for your version of Solaris. John -Original Message- From: Sreedhar, Dantam [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 9:19 AM To: 'Tomcat Users List' Subject: Tomcat throwing error Hi, Tomcat is throwing the following error when I tried to install and run the tomcat on SOLARIS machine preinstalled with apache and ssl. But for my project https is not required, http is fine. How can I solve this problem? I am using tomcat - 3.2.1 version. Error: 500 Location: /desearch/search Internal Servlet Error: java.lang.InternalError: URLSeedGenerator file:/dev/random reached end of file at sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedBy te(SeedGenerat or.java:476) at sun.security.provider.SeedGenerator.getSeedBytes(SeedGenerator .java:137) at sun.security.provider.SeedGenerator.generateSeed(SeedGenerator .java:132) at sun.security.provider.SecureRandom.engineGenerateSeed(SecureRa ndom.java:112) at sun.security.provider.SecureRandom.engineNextBytes(SecureRando m.java:169) at java.security.SecureRandom.nextBytes(SecureRandom.java:381) at java.security.SecureRandom.next(SecureRandom.java:403) at java.util.Random.nextLong(Random.java:282) at org.apache.tomcat.util.SessionIdGenerator.getIdentifier(Sessio nIdGenerator.j ava:139) at org.apache.tomcat.util.SessionIdGenerator.generateId(SessionId Generator.java :177) at org.apache.tomcat.util.SessionUtil.generateSessionId(SessionUt il.java:180) at org.apache.tomcat.session.StandardManager.getNewSession(Standa rdManager.java :379) at org.apache.tomcat.session.StandardSessionInterceptor.newSessio nRequest(Stand ardSessionInterceptor.java:177) at org.apache.tomcat.core.ContextManager.doNewSessionRequest(Cont extManager.jav a:913) at org.apache.tomcat.core.RequestImpl.getSession(RequestImpl.java:478) at org.apache.tomcat.facade.HttpServletRequestFacade.getSession(H ttpServletRequ estFacade.java:381) at deshaw.desearch.search.FileSearcher.doPost(FileSearcher.java:105) at deshaw.desearch.search.FileSearcher.doGet(FileSearcher.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:536) Any help on this is highly appreciated. Thanks, -Sreedhar - 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]
getServerPort
Hello, We have set Tomcat 4.x up to run standalone. We then set up several connectors in the server.xml file that listen on ports like 4080, 4081, etc. When a requests comes in on these ports, and is serviced by a servlet, the HttpServletRequest.getServerPort() method always returns 80 no matter what port the request actually came in on. Anyone know why this is, or how to get the HttpServletRequest.getServerPort() method to return the port that the connection actually came in on? Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Filter: Reading the http response content
In my filter I want to cache the content of HttpServletResponse so that I can save that in a file and use a static file's servlet for the next request. However, I am not able find interface to get the (html)content from the response object. if (up2date) { RequestDispatcher rd = request.getServletDispatcher (static.html); rd.forward (request, response); } else { chain.doFilter (request, response); //***Then save the html response to static html } So any clues as to how to obtain the content of response. The HttpServletResponse has methods to get/set the HTTP headers and cookies, but does not have anything for the HTTP's body. It is also not possible to read from response.getOutputStream. What do you guys think? Thank you ~rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp:useBean error
Hi, I am trying to use the directive jsp:useBean in my jsp but that seems to be causing an exception(at org.apache.jasper.runtime.PageContextImpl.handlePageException), any ideas? Here is what I am trying to do: In a forward.jsp, I have: %@ page import=Mylogin.UserLoginBean % jsp:useBean id=userLoginBean scope=session class=UserLoginBean / jsp:setProperty name=userLoginBean property=*/ My class Mylogin is defined in WEB-INF/classes/Mylogin/UserLoginBean. It is suppose to validate a use login: package Mylogin; import java.sql.*; import javax.sql.*; import javax.naming.*; public class UserLoginBean{ private String firstName; private String lastName; public UserLoginBean(){ } public String getFirstName(){ return this.firstName; } public String getLastName(){ return this.lastName; } public void setFirstName(String firstName){ this.firstName=firstName; } public void setLastName(String lastName){ this.lastName=lastName; } public boolean isRegistered(){ try { Context ctx = (Context)new InitialContext().lookup(java:comp/env); DataSource ds = (DataSource)ctx.lookup(jdbcdb); Connection conn = ds.getConnection(); if (conn != null) System.out.println(CONNETED); String stm=Select first_name from names where item_id=?; PreparedStatement selectStatement = conn.prepareStatement(stm); selectStatement.setString(1,firstName); ResultSet rs = selectStatement.executeQuery(); if (rs.next()) { setFirstName(rs.getString(first_name)); conn.close(); return true; } else { conn.close(); return false; } } catch (Exception e) { System.out.println(Got an exception! ); System.out.println(e.getMessage()); return false; } } } Thanks for all the help in advance. Khalid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter: Reading the http response content
You must wrap the response in a HttpServletResponse wrapper then override the getOutputStream/Writer with your own methods which provide a proxy to the real getOutputStream/Writer. The wrapped object then goes to the next filter in the chain. In other words, a pain in the a$$. Before re-inventing this - look around to what other people already did. If you really want to do this - look at the various compression fitlers available and store in cache instead of compress. -Tim rf wrote: In my filter I want to cache the content of HttpServletResponse so that I can save that in a file and use a static file's servlet for the next request. However, I am not able find interface to get the (html)content from the response object. if (up2date) { RequestDispatcher rd = request.getServletDispatcher (static.html); rd.forward (request, response); } else { chain.doFilter (request, response); //***Then save the html response to static html } So any clues as to how to obtain the content of response. The HttpServletResponse has methods to get/set the HTTP headers and cookies, but does not have anything for the HTTP's body. It is also not possible to read from response.getOutputStream. What do you guys think? Thank you ~rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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]
RE: web.xml servlet and resources
Look in the J2EE docs for HttpServletRequest.getPathInfo. Sean Dockery [EMAIL PROTECTED] -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 17:17 To: [EMAIL PROTECTED] Subject: web.xml servlet and resources Hello all, This is a fairly simple problem but I haven't been able to find an answer anywhere (I've been looking for the past day or two). I'm hoping this is a common situation and is possible, but from what I've seen I can't see how. What I want is for the resources (images, css files, etc.) to be in a path relative to the servlet. So, if I have an images directory and the servlet URL is http://www.domain.com/some-servlet, the images should be accessible from this URL, http://www.domain.com/some-servlet/images. So, I want to set the URL pattern for some-servlet to be /. If I do that then every URL beginning with that will be grabbed by the servlet, including http://www.domain.com/some-servlet/images/logo.gif (as an example). Suggestions? Thanks. -- Richard Wallace AIM, Inc. (www.a--i--m.com) Information Systems Consultants Providing New Technology, the Old-Fashioned Way - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Invalid TLD resource path
Doubtful as that would be a platform specific problem. Why can't you simply keep a copy of the JAR in the lib folder? What happens when you hard link the JAR? -Original Message- From: Mike Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 22:19 To: Tomcat Users List Subject: Re: Invalid TLD resource path Ah... Lights go on, the jar files work if they're copied, not symlinked. So, that begs the question: is there a Option FollowSymLinks? Thanks! On Mon, 2003-01-27 at 23:18, Mike Johnson wrote: Hello all, I'm currently trying to upgrade from working Tomcat 4.0.x installs to the latest 4.1, but I've been getting the following exception on all of my jar files for the whole 4.1 release branch during the server startup: - Root Cause - java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/lib/reports.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:898) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) - (exception stops the loading of the context, but will be thrown for all the jars in WEB-INF/lib/*) This is on a freshly untar'ed binary, running on Debian unstable. Currently I'm on PPC and Blackdown sdk 1.3.1, but I've been getting the same exception on x86 and Sun's 1.4.x sdk. But I'm guessing by the source that there's something wrong with my config, the relevant part is here: -- ContextConfig.java:894 try { URL url = context.getServletContext().getResource(resourcePath); if (url == null) { throw new IllegalArgumentException (sm.getString(contextConfig.tldResourcePath, resourcePath)); } -- The only configuration changes I made was to add a definition in server.xml (from the new Tomcat tarball, not the old release): Context path=/dealernet docBase=dealernet debug=0 reloadable=true / The same exception happens even with this commented out... I've also attached my web.xml for the dealernet app. I appreciate any help! ?xml version=1.0 encoding=ISO-8859-1? !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 !-- General description of your web application -- display-nameDealernet/display-name description It's great. /description context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value description The EMAIL address of the administrator to whom questions and comments about this application should be addressed. /description /context-param listener listener-classcom.trinitycapital.DB.PoolContextListener/listener-class /listener listener listener-classcom.trinitycapital.dn.Container.DnSessionListener/listener- class /listener servlet servlet-namePostgreSql/servlet-name servlet-classcom.trinitycapital.dn.Container.PostgreSql/servlet-class load-on-startup5/load-on-startup /servlet servlet servlet-namewebdav/servlet-name servlet-classcom.trinitycapital.dn.beans.documents.WebdavServlet/servlet- class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param !-- Uncomment this to enable read and write access -- init-param param-namereadonly/param-name param-valuefalse/param-value /init-param load-on-startup6/load-on-startup /servlet !-- The mapping for the webdav servlet -- servlet-mapping servlet-namewebdav/servlet-name url-pattern/docs/*/url-pattern /servlet-mapping session-config session-timeout60/session-timeout /session-config /web-app -- Mike Johnson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter: Reading the http response content
Tim Funk wrote: You must wrap the response in a HttpServletResponse wrapper then override the getOutputStream/Writer with your own methods which provide a proxy to the real getOutputStream/Writer. The wrapped object then goes to the next filter in the chain. I think that what he is asking is how to extract the contents of the HttpServletRequest [so that they can be cached to the filesystem, etc]. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can the JNDI Connection Pool re-connect after failure?
I've discovered that this problem is related to a 90-minute timeout on our firewall. Tomcat sits outside of the firewall, and Oracle resides inside. Since there's no activity for 90 minutes, it closes the connection. Anyone know of a workaround (+ sample code) for this? I'm assuming a ping of some sort using the database connection pool would work. Thanks, Matt -Original Message- From: Ryan Cornia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:03 AM To: [EMAIL PROTECTED] Subject: RE: Can the JNDI Connection Pool re-connect after failure? I don't have any timeout settings set. I'm also not using the driver from Oracle. I'm using a third party driver from inetsoftware.de. If it's not working in 24 hours, I'll let your know. Ryan [EMAIL PROTECTED] 01/29/03 09:43AM Will it work for 24 hours is the question... ;) If it does, maybe I should change to a different Oracle JDBC Driver. Do you have any timeout limitations set on the connecting user? We do, and I'm wondering if that's causing my problems. Thanks, Matt - 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: Shutdown problems with malformed reply from SOCKS server
On Thu, 2003-01-23 at 10:33, Hugh Field-Richards wrote: Hi I am running Tomcat 4.1.18 on a Mac G4 running OS-X 10.2.3 which is a fairly vanilla installation. Starting Tomcat seems ok but stopping does not happen. The following is produced ... su-2.05a# /Library/StartupItems/Tomcat/Tomcat stop Stopping Tomcat Servlet/JSP Server Using CATALINA_BASE: /Library/Tomcat/Home Using CATALINA_HOME: /Library/Tomcat/Home Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp Using JAVA_HOME: /usr long delay here Catalina.stop: java.net.SocketException: Malformed reply from SOCKS server java.net.SocketException: Malformed reply from SOCKS server at java.net.PlainSocketImpl.getSOCKSReply(PlainSocketImpl.java:278) at java.net.PlainSocketImpl.doSOCKSConnect(PlainSocketImpl.java:232) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:135) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) at java.net.Socket.init(Socket.java:268) at java.net.Socket.init(Socket.java:95) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) 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) su-2.05a# It takes several minutes to decide that there is a malformed reply. I have tried reloading several times with no success. The rest of the machine performs fine. The catalina.out file has no log of any shutdown activity (or any other log) Has anybody else met this problem - I have searched the archives etc but so far have not seen anything. Any help would be greatly appreciated. TIA Hugh Field-Richards Hugh, I've run into the same problem here. Yesterday afternoon, I could run my jsp at home but at work with my work's network settings, it wouldn' run. I was getting the malformed socket error as well. I realized that I had configured my proxy settings to include settings for SOCKS. I removed the setting and now my jsp's are working with my work network settings. So see if you have SOCKS configured in your proxy settings. -- Jeff Self Information Technology Analyst City of Newport News Personnel Department Suite 200 700 Town Center Drive Newport News, VA 23606 757-926-1810 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catching exceptions
I have been trying to use the error-page tags in web.xml to catch errors, but have found that errors that happen after output has been flushed do not get sent to that page, instead I get a illegal state exception. Is there a way to catch exceptions that happen after output is flowing? Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Filter: Reading the http response content
Thanks guys, Google actually gave me the fish itself :-) http://forum.java.sun.com/thread.jsp?thread=338226forum=33message=1387958 The whole code is there at the end, and it works! __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integration between JTA and TC4
While I am looking for a JTA implement for my Java web project, I saw this news: http://www.theserverside.com/home/thread.jsp?thread_id=17638article_count=10. Have anyone integrated JOTM (Java Open Transaction Manager) with Tomcat 4? Any recommendation for other JTA implemention with TC4? Thanks for your input. Vernon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Serlvet init-param
Another question, a basic one: servlet servlet-nameservletone/servlet-name servlet-classmy.Servlet/servlet-class init-param param-namehi/param-name param-valuefoo/param-value /init-param /servlet servlet servlet-nameservlettwo/servlet-name servlet-classmy.Servlet/servlet-class init-param param-namehi/param-name param-valuebar/param-value /init-param /servlet I have two servlet-names defined above with the same Servlet class, the params are different. This setup actually works with me, but I dont know why it works. How many instances of my.Servlet are there in this case? is it two? or only one? Thank you, ~rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote Restart Tomcat 4.1.8
Is it possible to restart or shutdown/start Tomcat remotely? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2 + jk2 + tomcat
John, I have seen you refer to the url (below) several times regarding documentation. ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip I am not able to login? Is there a user/pswd that you know of?!? Logging in anonymously is not working. I'm interested to see if this can help shed some more light on my learning and more importantly configuration. thanks much..
Re: Remote Restart Tomcat 4.1.8
haytham, it's a question of 'how remote you are' and the OSes you're using, solutions for win: a) install a terminal - server - client constellation (should work for other OSes too) or b) get VNC from ATT Research labs, that's fun ! (http://www.uk.research.att.com/vnc) cheers, henning Haytham Samad wrote: Is it possible to restart or shutdown/start Tomcat remotely? Thanks - 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: multiple contexts and form-based login
No, that just allows them to share the authentication information. It has nothing to do with the login process or where you get sent when authentication is required. -Original Message- From: Filip Hanik [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 8:24 PM To: Tomcat Users List Subject: RE: multiple contexts and form-based login I think there is a SingleSignOn example that ships with Tomcat, look for singleSignOnValve Filip -Original Message- From: Madere, Colin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:08 PM To: 'Tomcat Users List' Subject: multiple contexts and form-based login To reword my original post in a short statement: Is there anyway to have multiple contexts that have form-based auth configured that all use a single login form rather than one for each context? -Original Message- From: Madere, Colin [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 5:14 PM To: '[EMAIL PROTECTED]' Subject:form-based login and login form locations So I have a site that I want the entire thing secured via form-based login. IOW, any content static or not should be secured. I set up the config below as it was the only thing I could make work. However, if I hit the app within the site, it doesn't ask for a login. When I add the auth config stuff to the web.xml for the app, it requires a form be in the app's directory (so now I have 2 login forms and fail pages and if it includes a header and footer those also have to be duplicated to every app that requires login). This is a mess. How can I secure a whole site with a single form, static and dynamic content alike? I have a web.xml with auth info in /www/public/WEB-INF and a login.html in /www/public which works. I have the same auth setup in an app's dir /www/public/webapps/CalApp/WEB-INF with the same login.html in .../CalApp. How do I do it all with one config and login/login_fail pages? relevant content from server.xml: !-- Site 1 (default) (Public) -- Host name=192.168.16.208 debug=0 appBase=/www/public/webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ DefaultContext !-- set up virtual host variable for multi-site apps -- Parameter name=siteRole value=public/ !-- set up web app DB connection info in each host for flexibilty -- Parameter name=DB_Driver value=org.postgresql.Driver / Parameter name=DB_URL value=jdbc:postgresql://localhost/WebApps / Parameter name=DB_User value=postgres / Parameter name=DB_Pass value=postgres / /DefaultContext !-- set up document context since app-base of host is abnormal -- Context path= docBase=/www/public/ /Host from web.xml: ?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 session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.html/welcome-file /welcome-file-list security-constraint web-resource-collection web-resource-nameSecure Site/web-resource-name url-pattern/*/url-pattern http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameadmin/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.shtml/form-login-page form-error-page/login_fail.shtml/form-error-page /form-login-config /login-config /web-app - 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
Re: Remote Restart Tomcat 4.1.8
I'd be interested to find out the answer to this for the tomcat 3.x line as well. But from what i've read its possible by passing the server at a port (8005 i think by default) a specific string specified in the web.xml (SHUTDOWN) Any ideas anyone? Thanks in advance Jan-Michael - Original Message - From: Haytham Samad [EMAIL PROTECTED] Date: Thursday, January 30, 2003 11:22 am Subject: Remote Restart Tomcat 4.1.8 Is it possible to restart or shutdown/start Tomcat remotely? Thanks --- -- 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]
NamingException using DataSource from JNDI
Hi, I created a DataSource resource in server.xml file and a reference in the web.xml. But i receive a null reference and a Exception javax.naming.NamingException when i want to get the DataSource instance from the context. Someone know what is happening? in server.xml file: Context path=/appSample docBase=C:\Desenv\AppSample reloadable=true checkInterval=2 Resource name=jdbc/DBSample type=javax.sql.DataSource/ ResourceParams name=jdbc/DBSample parameternamemaxWait/namevalue5000/value/parameter parameternamemaxActive/namevalue4/value/parameter parameternamepassword/namevaluepass/value/parameter parameternameurl/namevaluejdbc:jdbcprogress:T:localhost:35001:testdb /value/parameter parameternamedriverClassName/namevaluecom.progress.sql.jdbc.JdbcProg ressDriver/value/parameter parameternamemaxIdle/namevalue2/value/parameter parameternameusername/namevaluesuper/value/parameter /ResourceParams /Context in web.xml file: web-app ( ... ) resource-ref descriptionSQLExplorer DataSource/description res-ref-namejdbc/DBSample/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app My code: try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/DBSample); Returns a NamingException } catch( Here is some piece of Stack javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java:189) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:834) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) (...) I´m using Tomcat 4.1.18 and J2sdk 1.4.1 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
building native connectors
I've been trying to build the native connectors for Apache to Tomcat4.x under Unixware 7.1.1 (not available as a binary or at least I haven't found them). I've installed the required gnu tools (automake, make, tar, libtool, m4, gcc), but for some reason when I run ant native I'm seeing that it's compiling the *.c files with a -KPIC rather than a -fPIC. I've searched and searched and searched some more but as of yet I've been unable to determine exactly where it's picking up the -KPIC from. I've found some instances of -KPIC and changed them to -fPIC, but it doesn't seem to help any. Anyway, I'm hoping someone can point me in the right direction. --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Catching exceptions
Found my own answer: The TryCatchFinally interface lets you create a tag that wraps a block of code in a try...catch...finally block. [EMAIL PROTECTED] 01/30/03 12:03 PM I have been trying to use the error-page tags in web.xml to catch errors, but have found that errors that happen after output has been flushed do not get sent to that page, instead I get a illegal state exception. Is there a way to catch exceptions that happen after output is flowing? Larry - 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: building native connectors
Hi Mike - In compiling openssl, I've had to pass -fPIC into ./config (or ./configure) on the command line. You might look at the files produced by the config or configure utility and see if any of them have -KPIC hardcoded. Regards, Lajos Mike Jackson wrote: I've been trying to build the native connectors for Apache to Tomcat4.x under Unixware 7.1.1 (not available as a binary or at least I haven't found them). I've installed the required gnu tools (automake, make, tar, libtool, m4, gcc), but for some reason when I run ant native I'm seeing that it's compiling the *.c files with a -KPIC rather than a -fPIC. I've searched and searched and searched some more but as of yet I've been unable to determine exactly where it's picking up the -KPIC from. I've found some instances of -KPIC and changed them to -fPIC, but it doesn't seem to help any. Anyway, I'm hoping someone can point me in the right direction. --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote Restart Tomcat 4.1.8
Henning, How is the stability/scalability of VNC? PC anywhere crashes one of my computers and terminal services goes down with several users signed-on. Thanks - Original Message - From: Henning Heil [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 1:28 PM Subject: Re: Remote Restart Tomcat 4.1.8 haytham, it's a question of 'how remote you are' and the OSes you're using, solutions for win: a) install a terminal - server - client constellation (should work for other OSes too) or b) get VNC from ATT Research labs, that's fun ! (http://www.uk.research.att.com/vnc) cheers, henning Haytham Samad wrote: Is it possible to restart or shutdown/start Tomcat remotely? Thanks - 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: building native connectors
Can you use the ./configure option on Unixware? It's a little easier, in my opinion, than using ant. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 2:39 PM To: Tomcat Users List Subject: building native connectors I've been trying to build the native connectors for Apache to Tomcat4.x under Unixware 7.1.1 (not available as a binary or at least I haven't found them). I've installed the required gnu tools (automake, make, tar, libtool, m4, gcc), but for some reason when I run ant native I'm seeing that it's compiling the *.c files with a -KPIC rather than a -fPIC. I've searched and searched and searched some more but as of yet I've been unable to determine exactly where it's picking up the -KPIC from. I've found some instances of -KPIC and changed them to -fPIC, but it doesn't seem to help any. Anyway, I'm hoping someone can point me in the right direction. --mikej -=- mike jackson [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: Remote Restart Tomcat 4.1.8
VNC is stable as a rock. I've used it everywhere I can for years. John -Original Message- From: chris schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 2:48 PM To: Tomcat Users List Subject: Re: Remote Restart Tomcat 4.1.8 Henning, How is the stability/scalability of VNC? PC anywhere crashes one of my computers and terminal services goes down with several users signed-on. Thanks - Original Message - From: Henning Heil [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 1:28 PM Subject: Re: Remote Restart Tomcat 4.1.8 haytham, it's a question of 'how remote you are' and the OSes you're using, solutions for win: a) install a terminal - server - client constellation (should work for other OSes too) or b) get VNC from ATT Research labs, that's fun ! (http://www.uk.research.att.com/vnc) cheers, henning Haytham Samad wrote: Is it possible to restart or shutdown/start Tomcat remotely? Thanks - 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: building native connectors
I haven't tried that yet, mostly I'm getting frustrated with a lack of C skills. It's been a long time since I did C. Then again I'm also getting really, really tired of the boss' insistence on using Unixware. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:44 AM To: 'Tomcat Users List' Subject: RE: building native connectors Can you use the ./configure option on Unixware? It's a little easier, in my opinion, than using ant. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 2:39 PM To: Tomcat Users List Subject: building native connectors I've been trying to build the native connectors for Apache to Tomcat4.x under Unixware 7.1.1 (not available as a binary or at least I haven't found them). I've installed the required gnu tools (automake, make, tar, libtool, m4, gcc), but for some reason when I run ant native I'm seeing that it's compiling the *.c files with a -KPIC rather than a -fPIC. I've searched and searched and searched some more but as of yet I've been unable to determine exactly where it's picking up the -KPIC from. I've found some instances of -KPIC and changed them to -fPIC, but it doesn't seem to help any. Anyway, I'm hoping someone can point me in the right direction. --mikej -=- mike jackson [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: Remote Restart Tomcat 4.1.8
We have found that the VNC stability corresponds to the overall stability of the platform on which is hosted. The nice thing about vnc is that it can be accessed from any browser equiped machine on port 5800. You might also look into tightvnc, http://www.tightvnc.com/. Other have told me it is faster over slow connections Jeff -Original Message- From: chris schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:48 PM To: Tomcat Users List Subject: Re: Remote Restart Tomcat 4.1.8 Henning, How is the stability/scalability of VNC? PC anywhere crashes one of my computers and terminal services goes down with several users signed-on. Thanks - Original Message - From: Henning Heil [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 1:28 PM Subject: Re: Remote Restart Tomcat 4.1.8 haytham, it's a question of 'how remote you are' and the OSes you're using, solutions for win: a) install a terminal - server - client constellation (should work for other OSes too) or b) get VNC from ATT Research labs, that's fun ! (http://www.uk.research.att.com/vnc) cheers, henning Haytham Samad wrote: Is it possible to restart or shutdown/start Tomcat remotely? Thanks - 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: building native connectors
I just found that if you change the hard coded KPIC in libtool to fPIC that ant native seems to work fine. I haven't checked the outputed code as of yet. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:44 AM To: 'Tomcat Users List' Subject: RE: building native connectors Can you use the ./configure option on Unixware? It's a little easier, in my opinion, than using ant. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 2:39 PM To: Tomcat Users List Subject: building native connectors I've been trying to build the native connectors for Apache to Tomcat4.x under Unixware 7.1.1 (not available as a binary or at least I haven't found them). I've installed the required gnu tools (automake, make, tar, libtool, m4, gcc), but for some reason when I run ant native I'm seeing that it's compiling the *.c files with a -KPIC rather than a -fPIC. I've searched and searched and searched some more but as of yet I've been unable to determine exactly where it's picking up the -KPIC from. I've found some instances of -KPIC and changed them to -fPIC, but it doesn't seem to help any. Anyway, I'm hoping someone can point me in the right direction. --mikej -=- mike jackson [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]
pass complex object to custom tag
Is there a way to pass something other than a string to a custom tag through the attributes? I have a class I've written and I'd love to find a way to pass it to a custom tag for processing. This would separate the display logic from the business logic. jsp:useBean id=user class=UserBean / ptcbe:mainpagetable src=%= user.getBudgetList() % / Right now, the way I have it is to store the display logic in a getter method of UserBean, but that doesn't seem right: jsp:getProperty name=user property=budgetList / Note that the budgetList property is an object, not a primitive. What do you think? Erik PS: passing it through the session seems kind of awkward. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pass complex object to custom tag
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:22 PM To: Tomcat Users List Subject: pass complex object to custom tag Is there a way to pass something other than a string to a custom tag through the attributes? I have a class I've written and I'd love to find a way to pass it to a custom tag for processing. This would separate the display logic from the business logic. jsp:useBean id=user class=UserBean / ptcbe:mainpagetable src=%= user.getBudgetList() % / This didn't work? Just make your tag handler have a method like setSrc(UserBean src) and that should work fine. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pass complex object to custom tag
The tag shouldn't have rtexexpr set to true in its TLD too? (specifically for src attribute, of course) On Thu, 2003-01-30 at 18:31, Tim Moore wrote: -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:22 PM To: Tomcat Users List Subject: pass complex object to custom tag Is there a way to pass something other than a string to a custom tag through the attributes? I have a class I've written and I'd love to find a way to pass it to a custom tag for processing. This would separate the display logic from the business logic. jsp:useBean id=user class=UserBean / ptcbe:mainpagetable src=%= user.getBudgetList() % / This didn't work? Just make your tag handler have a method like setSrc(UserBean src) and that should work fine. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pass complex object to custom tag
You could pass the object name, property name, and scope to the tag, then use reflection to do it - the commons-beanutils stuff makes this painless. It is really simple and prowerful, honest! [EMAIL PROTECTED] 01/30/03 13:26 PM Is there a way to pass something other than a string to a custom tag through the attributes? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2 + jk2 + tomcat HOWTO - Robert Sowders
Robert (or anyone that may know) I am interested in your documentation on apache2, jk2, etc. BUT I am unable to login to the site. Could you provide the user/pswd info? ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip Thanks in advance...
Re: pass complex object to custom tag
Tim Moore wrote: -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:22 PM To: Tomcat Users List Subject: pass complex object to custom tag Is there a way to pass something other than a string to a custom tag through the attributes? I have a class I've written and I'd love to find a way to pass it to a custom tag for processing. This would separate the display logic from the business logic. jsp:useBean id=user class=UserBean / ptcbe:mainpagetable src=%= user.getBudgetList() % / This didn't work? Just make your tag handler have a method like setSrc(UserBean src) and that should work fine. Oh, my mistake then -- I was reading examples of custom tags and they all seemed to use strings, so I assumed that you had to parse the strings to make anything more complicated than a string (such as a serialized object or something). I guess that's only if you don't use a JSP exprssion (you hard code an attribute value). Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2 + Tomcat4 + ssl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I was just wondering if anyone had knowledge with Apache2 + Tomcat4 and SSL. I have the Apache2 and the SSL working together just fine. The problem is I can't get the Apache2 to pass off to Tomcat4. If anyone had any good links or some documenation that I haven't read yet it would be greatly appreciated. Thanks, Jonathan -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPjmP7x4nJXqgnU2hEQJ9TwCfabv1fllgNutAycXCzpyCB5Hln/IAoOo/ 8xsEDtqgj+FkieMuuBISMalD =1Xkb -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect and Tomcat
On Thursday 30 January 2003 11:34 am, Erik Price wrote: Daniel Brown wrote: This was news to me too. But, from the horse's mouth: [...] So, in theory, you should generate a 303 response if the request method was POST, and the web page you're redirecting to should be retrieved with a GET. But in practice, the web browser will do just what you expect it to do if a 302 response is received. Hm... yes, in practice it works (currently that is how my app handles logins and it works in all browsers AFAIK), but at some point someone might implement the spec. I always try to write in compliance of the spec, so what I'm wondering is how I can specify that the sendRedirect should use GET instead of the original method, which was POST. (I seem to recall reading somewhere that sendRedirect uses the original method.) Erik Section 10.3.4 of RFC 2616 (HTTP/1.1) addresses your problem: quote 10.3.4 303 See Other The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response MUST NOT be cached, but the response to the second (redirected) request might be cacheable. The different URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s). Note: Many pre-HTTP/1.1 user agents do not understand the 303 status. When interoperability with such clients is a concern, the 302 status code may be used instead, since most user agents react to a 302 response as described here for 303. /quote Again, setStatus() and sendRedirect() in HttpServletRequest are your friends here. I pulled the information above from rfc-editor.org. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]