RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-13 Thread Altankov Peter
They are fixed in 6.0 -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: 12 2004 . 19:14 To: 'Tomcat Users List' Subject: RE: How to serve static EXCEL or POWERPOINT files from Tomcat ? Actually Mozilla and Netscape can open Excel and Powerpoint based

RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-13 Thread Altankov Peter
' and an extension that is not registered for Excel resulted in openening Word (at least for some users). Renaming the file to .xls solved the problem. -Original Message- From: Altankov Peter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 10:05 AM To: Tomcat Users List Subject: RE

RE: Customizing '500 Internal Server Error' when Tomcat is down in mod_jk configuration

2004-01-13 Thread Altankov Peter
ErrorDocument directive in apache's httpd.conf for 500 But there is 1 more interesting issue here. While TC is completely down u get 500 by mod_jk and apache can easyly handle it. You can easily set up an error page handlers per web-application in its web.xml. The interesting part is when the

RE: UTF-9 encoding in FORM with POST

2004-01-13 Thread Altankov Peter
Try request.setCharacterEncoding(UTF-8) BEFORE you getParameter() out of it -Original Message- From: Mariano [mailto:[EMAIL PROTECTED] Sent: 13 2004 . 15:31 To: 'Tomcat Users List' Subject: UTF-9 encoding in FORM with POST Hi, all I have installed tomcat 5.0.16 in windows

RE: Customizing Error Pages

2004-01-13 Thread Altankov Peter
Via setup in your applications web.xml. Example: error-page error-code404/error-code location/404.html/location /error-page error-page error-code500/error-code location/500.html/location /error-page -Original Message- From: Krishnamoorthy Rao [mailto:[EMAIL

mc@fornby.fhsk.se - no such user here.

2004-01-13 Thread Altankov Peter
Do you guys all receive this bounce when posting to the list? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat 4.1.29: Pool exhausted

2004-01-13 Thread Altankov Peter
Dimitry, sorry for the late response. Try adding parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter -Original Message- From: Dmitry Guralnik

RE: mc@fornby.fhsk.se - no such user here.

2004-01-13 Thread Altankov Peter
Thanks, Yoav -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Howdy, I've unsubscribed this user, we'll see if things improve. -Original Message- From: Altankov Peter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 9:37 AM To: Tomcat Users List

RE: mc@fornby.fhsk.se - no such user here.

2004-01-13 Thread Altankov Peter
You bet it has been done the firs second I got the bounce, but it still wold bother my mail server :)) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 2004 . 17:56 To: Tomcat Users List Subject: RE: [EMAIL PROTECTED] - no such user here. Howsy,

RE: MM:Tomcat with SSL

2004-01-13 Thread Altankov Peter
I think this has the taste of wrong/not_provided security provider. If you are using sun's JSSE Add this to your $JAVA_HOME/jre/lib/security/java.security security.provider.1=sun.security.provider.Sun security.provider.2=com.sun.net.ssl.internal.ssl.Provider

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Altankov Peter
Hi From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED] Sent: 11 2004 . 11:39 Subject: Re: Datasource - OK in app context - Fails in Global context So, could someone summarize for me the different ways of creating a JDBC DataSource in Tomcat? I will start the summary, so that it's

RE: Encoding issues

2004-01-12 Thread Altankov Peter
I used to have similar problems with windows-1251 cyrylic codeapge and I solved it by creating a siple filter, mapped to all request that explicitly sets the encoding of the request before any1 else gets the request: request.setCharacterEncoding(windows-1251); I think this happens

RE: Tomcat: Connection reset by peer: socket write error

2004-01-10 Thread Altankov Peter
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5735 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4663 -Original Message- From: Boemio, Neil (IT, FGIC) [mailto:[EMAIL PROTECTED] Sent: 07 2004 . 22:16 To: Tomcat Users List Subject: Tomcat: Connection reset by peer: socket

RE: Tomcat stops handling HTTP connections, socket is SYN_RECV

2004-01-10 Thread Altankov Peter
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5735 -Original Message- From: Frode E. Moe [mailto:[EMAIL PROTECTED] Sent: 08 2004 . 09:39 To: Tomcat Users List Subject: Re: Tomcat stops handling HTTP connections, socket is SYN_RECV On Wed, Jan 07, 2004 at 21:00:30 +0100,

RE: Tomcat 4.1.29: Pool exhausted

2004-01-10 Thread Altankov Peter
Actually im heavily using 4.1.29's Dbcp 1.1 package after a sraight forward migration from 4.1.27's Dbcp 1.0 Can you post your ResourceParams section of the configuration? -Original Message- From: Dmitry Guralnik [mailto:[EMAIL PROTECTED] Sent: 09 2004 . 15:14 To: [EMAIL PROTECTED]

RE: ajp13 errors

2004-01-07 Thread Altankov Peter
You can monitor bug 4663 issue at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4663 Lots of people encounter this or similar traces under load conditions. Search the mail archive too. BR -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: 06 2004 . 18:12 To:

RE: java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver

2004-01-07 Thread Altankov Peter
Devinder, if you are on windows put your classes12.jar in common/lib if you on linux/unix - just make it a symlink in common/lib for the same .jar -Original Message- From: Sachdeva, Devinder [mailto:[EMAIL PROTECTED] Sent: 06 2004 . 17:10 To: [EMAIL PROTECTED] Subject:

RE: [Q] Multi server environment

2004-01-07 Thread Altankov Peter
Mark is right. If you go for, lets say, 2 tomcat workers they are totally independent instances of jvm and if they use DBCP and pool you actually get 2 pools. Thus if you set it with 16 connections each this is actually what you get. -Original Message- From: Riaan Oberholzer

RE: Threaded servlets okay in a compliant container?

2004-01-07 Thread Altankov Peter
David, you can have wget/Scheduled task on Win box -Original Message- From: David Wall [mailto:[EMAIL PROTECTED] Sent: 05 2004 . 20:54 To: Tomcat Users List Subject: Re: Threaded servlets okay in a compliant container? The use of a cron job that does a WGET on a URL that triggers the

RE: Warning of session timeout.

2004-01-07 Thread Altankov Peter
And ofcourse, if you dont like the simple solutions and/or want to add more complex behaviour, you can always go for a Java Applet that connects to the server -Original Message- From: Michael Cardon [mailto:[EMAIL PROTECTED] Sent: 06 2004 . 20:04 To: Tomcat Users List Subject: Warning

RE: Warning of session timeout.

2004-01-07 Thread Altankov Peter
. Michael -Original Message- From: Altankov Peter [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 6:23 AM To: Tomcat Users List Subject: RE: Warning of session timeout. And ofcourse, if you dont like the simple solutions and/or want to add more complex behaviour, you can

RE: TC 4.1.12 on Linux - session swapping

2004-01-07 Thread Altankov Peter
This has the taste of a thread safety issue. Do you guys happen to run the query against the same servlet? If yes, do you happen to use variables, defined in the servlet class scope in order to extract objects from session? BR -Original Message- From: Norris Shelton [mailto:[EMAIL

RE: Tomcat reconnect to database server?

2004-01-07 Thread Altankov Peter
The DBCP pool that you lookup from JNDI is already such a connection manager. Just try adding the validation query that Arthur suggested. Im not sure for MSSQL but I use this for Oracle: parameter namevalidationQuery/name valueSELECT 1 FROM dual/value /parameter

RE: Broken Pipe and Tomcat 4.1.24 -- Fixed?

2004-01-05 Thread Altankov Peter
Im was getting the same error in 4.1.24 then migrated to 4.1.29 but still getting it -Original Message- From: news.basebeans.net [mailto:[EMAIL PROTECTED] Sent: 03 2004 . 22:23 To: [EMAIL PROTECTED] Subject: Broken Pipe and Tomcat 4.1.24 -- Fixed? I'm using Tomcat 4.1.24 and I'm still

RE: Errors when connecting Tomcat to Apache

2003-12-29 Thread Altankov Peter
Try this URL: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 29 2003 . 15:26 To: Tomcat Users List Subject: Re: Errors when connecting Tomcat to Apache How do I create the workers.properties?

RE: strange error messages in tomcat log and mod_jk2 log

2003-12-16 Thread Altankov Peter
application is crashing every few minutes, so a production environment couldn't be setup... :-(( thx, Chris Am Fri, Dec 12, 2003 at 01:46:13PM +0200, Altankov Peter meinte: Hi! Im gettting a similar traces in catalina.out: Dec 11, 2003 8:00:03 PM org.apache.jk.server.JkCoyoteHandler action SEVERE

RE: response.reset() and forward() ... problematic? DBCP related?

2003-12-15 Thread Altankov Peter
Thanks for the nice feed-back Anthony. And Antonio, just for the record, the snipplet: public class TestServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,

RE: response.reset() and forward() ... problematic? DBCP related?

2003-12-12 Thread Altankov Peter
of scope variables concurrency problems with that. Yours, Antonio Fiol Altankov Peter wrote: If you go for the SingleThreadModel, try this to workaround your problem: public class TestServlet extends HttpServlet implements SingleThreadModel { ... } However

RE: Tomcat 5 and oracle

2003-12-12 Thread Altankov Peter
By the way, since you are redefining the Resource in your metrology2.xml, you can actually remove it form the server.xml. -Original Message- From: Jonathan Drnek [mailto:[EMAIL PROTECTED] Sent: 11 2003 . 21:05 To: Tomcat Users List Subject: RE: Tomcat 5 and oracle I got it. I was

RE: JNDI comp namespace

2003-12-12 Thread Altankov Peter
Howdy,Try this setup in your context definition: Resource name=jdbc/NNT auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/NNT . After that in the source where u access it go for: Context ictx = new InitialContext(); if (ictx == null) { throw new

RE: strange error messages in tomcat log and mod_jk2 log

2003-12-12 Thread Altankov Peter
Hi! Im gettting a similar traces in catalina.out: Dec 11, 2003 8:00:03 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at

RE: mapping different JKMounts to same Tomcat context

2003-12-11 Thread Altankov Peter
Why dont you try the Apache's mod_alias directive: IfModule mod_alias.c Alias /xyz/ /path/to/abc /IfModule Since you have only 1 instance of tomcat and one instance of your webapp - this should do. -Original Message- From: Vijay Kandy [mailto:[EMAIL PROTECTED] Sent: 10 2003 .

RE: response.reset() and forward() ... problematic? DBCP related?

2003-12-11 Thread Altankov Peter
Antonio Fiol wrote: If you really cannot follow any of the above, there is still one solution: - Make sure your servlet implements SingleThreadModel. This will ensure a different instance is used for all concurrent requests, or that no concurrent requests will occur. Hope that helps. Antonio

RE: response.reset() and forward() ... problematic? DBCP related?

2003-12-11 Thread Altankov Peter
If you go for the SingleThreadModel, try this to workaround your problem: public class TestServlet extends HttpServlet implements SingleThreadModel { ... } However, this interface does not prevent synchronization problems that result from servlets accessing

RE: How to configure the default application in apache to point to tomcat??

2003-12-09 Thread Altankov Peter
The reason for 404 is that your application context is mapped in tomcat container under /myapp. Try this: JkMount /* your_worker_definition In apache httpd.conf, and: Context debug=0 docBase=/absolute/path/to/myapp - (or relative to CATALINA_HOME ofcorse) path=

RE: where to put context myapp.xml files

2003-12-09 Thread Altankov Peter
It must be put in TOMCAT_HOME/webapps, where webapps is defined in your server.xml 's Host tag, i.e.: Host name=localhost debug=0 appBase=path_to_webapps_folder/ ---AND --- Your context is marked as reloadable i.e: Context debug=0 docBase=/path/to/your_app

java.net.SocketException: Broken pipe

2003-12-08 Thread Altankov Peter
Im running tomcat 4.1.29 with mod_jk2 under apache and getting constant stack traces in catalina.out like this one: Dec 8, 2003 8:04:49 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Broken pipe at

Tomcat 4.1.24 and mod_jk

2003-12-03 Thread Altankov Peter
Hi, I am migrating to tomcat 4.1.24 and mod_jk on apache 1.3.26 configuration Unfortunately when i deploy my production webapp im getting constant lines in the catalina.out log file [INFO] ChannelSocket - -server has been restarted or reset this connection This INFO line is actually loged 3