connection reset by peer

2007-08-09 Thread Yair Zohar
Hello, I'm using tomcat5.5.23 on a Fedora 5 kernel: 2.6.20-1.2320.fc5. I redirect port 80 to 8080 by running by root: iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 -j REDIRECT --to-ports 8080 iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j REDIRECT --to-port 8080

How do I get the response status code?

2007-03-29 Thread Yair Zohar
a getStatus() method. Any idea ? Yair Zohar. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How do I get the response status code?

2007-03-29 Thread Yair Zohar
, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I

Re: How do I get the response status code?

2007-03-29 Thread Yair Zohar
that as the status). Is this not working for you? Brantley Yair Zohar wrote: Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends

Reloading shared classes

2007-03-01 Thread Yair Zohar
Hello, I'm using tomcat 5.0.28 on a Linux machine. My web applications are using some shared class. I put them under $CATALINA_HOME/shared/classes. The problem: When I make changes in the shared classes, restarting a web application by tomcat's manager is not enough for the changes to be

Re: Reloading shared classes

2007-03-01 Thread Yair Zohar
You are right, I've just wanted to avoid multiple copies of the same classes. They are not really shared. If the classes are shared, all the web applications should be restarted, because the change affect all of them. Yair. Peter Crowther wrote: From: Yair Zohar [mailto:[EMAIL PROTECTED] My

using JNI

2006-11-15 Thread Zohar
Hi, I have a DLL that I need to use from some of my servlets. Where should I put the DLL? How do I load the DLL from all those servlets (should it be loaded only once?)? Is there anywhere I can read about this? Thanks, Zohar

loading dlls

2006-11-09 Thread Zohar
Hi, I have a servlet which needs to load a dll. using Tomcat 5.5., what is the right way to do that (do I need to set java.library.path? if so - where? where should my loading classes reside?)? Thanks, Zohar. - To start

Re: configuring Tomcat for protocols other than http/s

2006-08-29 Thread Zohar
Is there anything more about this, other than the (very poor) javadocs, or is the only option is looking in the code? Viraj Turakhia [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I am starting to work with Tomcat's code and have no clue where to start from. Any pointers

Re: configuring Tomcat for protocols other than http/s

2006-08-29 Thread Zohar
Is there anything more about this (ProtocolHandler, Adapter, etc...), other than the (very poor) javadocs, or is the only option is looking in the code?

RE: debugging tomcat with eclipse

2006-08-26 Thread Zohar Amir
http://www.eclipse.org/webtools/ Date: Wed, 23 Aug 2006 17:24:46 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: debugging tomcat with eclipse I have found various different examples, just curious what folks are find to be the best practice? D-

JDBCReal drivers

2006-08-10 Thread Zohar
When using JDBCRealm, where should I put my driver jars?

file type and name

2006-07-27 Thread Zohar
.. Thanks, Zohar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

BASIC authentication response

2006-07-20 Thread Zohar
Hello list, I'm using BASIC authentication with tomcat 5.5 and I wanted to know whether it is possible to return some text when the user login fails (e.g. you typed in the wrong password). Is it? Thanks. Zohar.

forwarding to a remote host

2006-07-11 Thread Zohar
Hello list, I have a servlet that handles POST requests. Sometimes the request needs to be forwarded to a different servlet, which may be running on a different server. What is the best way to do that? Thanks, Zohar.

Re: forwarding to a remote host

2006-07-11 Thread Zohar
What's the easiest way to transfer all the data from the Request to the PostMethod? - Original Message - From: Avi Deitcher [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 14:38 Subject: Re: forwarding to a remote host Zohar

RE: Re: error page

2006-05-20 Thread Zohar Amir
all it does is put h1%=exception.getMessage()%/h1 I am a bit lost here. The way I set my error page is : errorPage=error.jsp Should I use errorPage=/error.jsp instead? Thanks for your reply, Zohar. Date: Sat, 20 May 2006 14:05:20 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org

RE: Re: error page

2006-05-20 Thread Zohar Amir
If anyone has an example I'd love seeing it... Date: Sat, 20 May 2006 14:05:20 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: error page It could be that the error page itself is throwing an error. Try using an ultra-simple error page. -- Len On 5/18/06, Zohar

JSP error page results in HTTP 500

2006-05-19 Thread Zohar Amir
in error.jsp being executed (I've put some println's there), but the calling HTTP browser gets an HTTP 500 response.Is this a known issue with tomcat? If not, then can anyone please help me with this.Thanks,Zohar. _ It's the future

error page

2006-05-18 Thread Zohar
is printed. But what I get as a response to the browser is HTTP 500. Can anyone please help me with this? Thanks, Zohar.

Re: error page

2006-05-18 Thread Zohar
No, I've used the Letting a page define its error page option. - Original Message - From: Franck Borel [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 18, 2006 14:20 Subject: Re: error page I'm trying to use the error handling mechanism described

Re: access control

2006-04-06 Thread Zohar
services, etc.). The internal contexts also provide service to other internal servers. - Original Message - From: Markus Schönhaber [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, April 06, 2006 17:23 Subject: Re: access control Zohar wrote: I have

Re: access control

2006-04-06 Thread Zohar
Can I grant access to some jsp pages and deny access to others (in the same context)? - Original Message - From: Markus Schönhaber [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, April 06, 2006 17:23 Subject: Re: access control Zohar wrote: I have

Re: Eclipse plugins for tomcat

2006-04-06 Thread Zohar
take a look at WTP (http://www.eclipse.org/webtools/) - Original Message - From: Anandi Vyagrapuri [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, April 06, 2006 18:35 Subject: Eclipse plugins for tomcat Hi, Can anyone comment on the best eclipse plugin for tomcat

Re: tomcat and xslt 2.0

2006-03-01 Thread Zohar Amir
I've tried putting it right before TransformerFactory.newInstance() . now, when I invoke the transform method I get NPE at net.sf.saxon.Controller.transform(Controller.java:1319) Any help? - Original Message - From: Zohar Amir [EMAIL PROTECTED] To: Tomcat Users List users

Re: tomcat and xslt 2.0

2006-02-28 Thread Zohar Amir
will get a warning if the xslt is 1.0, but it will still compile and function. Richard Toren Zohar Amir wrote: Correct me if I'm wrong here: as I understand it, tomcat uses Xalan as its XSLT engine. Xalan does not support XSLT 2.0 . Is there any other XSLT engine I can use with tomcat (I read

xslt

2006-02-22 Thread Zohar Amir
Can I use XSLT 2.0 stylesheets with tomcat 5.5.15 ? I get: ERROR: 'Error checking type of the expression 'funcall(format-dateTime, [step(child, 24), literal-expr([Mn] [D1o], [Y0001] at [h01]:[m09]:[s02] [P])])'.' Thanks, Zohar

tomcat and xslt 2.0

2006-02-22 Thread Zohar Amir
Correct me if I'm wrong here: as I understand it, tomcat uses Xalan as its XSLT engine. Xalan does not support XSLT 2.0 . Is there any other XSLT engine I can use with tomcat (I read something about Saxon)? If so, how do I do that? Thanks, Zohar

Re: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program

2006-02-22 Thread Zohar Amir
Sorry to barge in, but maybe you can help me with my question: If I want to reference images from my servlet, when should I put them and how do I reference them? Thanks, Zohar. - Original Message - From: Wentink, Marc [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org

Re: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program

2006-02-22 Thread Zohar Amir
:48 PM Subject: RE: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program Hi Zohar, What doe you mean by reference ?? Please elaborate. Regards, Paul Hamer management development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL

images

2006-02-21 Thread Zohar Amir
Hi, I have a servlet that transforms an XML using XSLT. In the result HTML I want to include some images. Where do I place those images? I tried the WebContent directory, but they could not be loaded (I even tried getting them explicitly, but the servlet was invoked instead). Thanks, Zohar

password protection

2006-02-15 Thread Zohar Amir
Hello, I'm using tomcat 5.5.15 on Win XP. I have a servlet that is deployed on a certain context. I would like anyone trying to use that servlet use a username-password. how do I do this? What if I need to protect a jsp that is part of the servlet? Thanks, Zohar

Re: password protection

2006-02-15 Thread Zohar Amir
Thanks, Where can I find info on how exactly to do this? maybe an example...? - Original Message - From: David Delbecq [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, February 15, 2006 2:52 PM Subject: Re: password protection Zohar Amir a écrit

Re: password protection

2006-02-15 Thread Zohar Amir
://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html http://www.cafesoft.com/products/cams/tomcat-security.html for other ones, use favorite search engine. Zohar Amir a écrit : Thanks, Where can I find info on how exactly to do this? maybe an example...? - Original Message - From: David Delbecq

distribution

2006-01-08 Thread Zohar Amir
, and use it, but this requires querying the database for each transaction... Any other ideas?] Thanks, Zohar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: distribution

2006-01-08 Thread Zohar Amir
in the request's body (not sure yet). I guess I have an application-level session that may encompass many HTTP sessions. Any way of doing this? Thanks, Zohar. - Original Message - From: Richard Mixon [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Sunday, January 08

Re: upgrading a war file

2005-11-09 Thread Zohar Amir
and paste the war file inside and wait for several seconds. At least that's how I do it. If you want to avoid potential problem due to class change, maybe stop TC before pasting and restart it afterwards. Zohar Amir wrote: Hi, I have a servlet deployed on my tomcat server. What are the options

Re: Tomcat WAP/WML

2005-11-08 Thread Zohar Amir
http://www.kannel.org/ - Original Message - From: Carl Olivier [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Tuesday, November 08, 2005 2:16 PM Subject: RE: Tomcat WAP/WML Hi. Great. Thanks! Is there Gateway software available though? If you wanted to

upgrading a war file

2005-11-08 Thread Zohar Amir
Hi, I have a servlet deployed on my tomcat server. What are the options of upgrading this servlet (I have a new war file)? Which is the best way? What if I do not have admin web access to the server? - To unsubscribe,

NPE in init()

2005-10-20 Thread Zohar Amir
and a descriptive exception be thrown (servlet should be initialized or whatever), instead of the NPE. Thanks, Zohar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

WAR versions

2005-10-20 Thread Zohar Amir
Hello, I was wondering what is the best way to indicate a war file's version. Should the file's name indicate it (e.g., bla_1.3.2.war), and/or should the manifest in META-INF include an entry for it? Thanks, Zohar

Re: WAR versions

2005-10-20 Thread Zohar Amir
:) Zohar Amir a écrit : Hello, I was wondering what is the best way to indicate a war file's version. Should the file's name indicate it (e.g., bla_1.3.2.war), and/or should the manifest in META-INF include an entry for it? Thanks, Zohar