FW: Why Tomcat brakes connection?

2001-04-26 Thread Aleksey Studnev
-Original Message- From: Aleksey Studnev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 2:03 PM To: [EMAIL PROTECTED] Subject: Why Tomcat brakes connection? Tomcat 3.2 under Win Nt 4. Client wants to re-use socket connection for multiple requests f

Re: Cross context class loader bug ?

2001-04-26 Thread Serge Huber
pplicationDispatcher.java:414) > > at > > > >org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:378) > > ... my stuff > > > > Seems to be a problem with the class loader code when doing dispatching, > > because

Re: Cross context class loader bug ?

2001-04-26 Thread Serge Huber
atcher.include(ApplicationDispatcher.java:378) > > ... my stuff > > > > Seems to be a problem with the class loader code when doing dispatching, > > because if I call the destination servlet directly I do not get the same > > behaviour and the servlet is loaded and

Re: starting/stopping contexts in Tomcat 4

2001-04-26 Thread Craig R. McClanahan
On Thu, 26 Apr 2001, Mark.Abbott wrote: > > The ContextConfig.start and ContextConfig.stop methods in > Tomcat 4b2 do not appear to be inverses of each other. > The start method causes children to be added to the context > during web.xml parsing, but the stop method does not remove > them. D

Re: Cross context class loader bug ?

2001-04-26 Thread Craig R. McClanahan
t place since calling the servlet manually > works fine. > > I have been scratching my head over this one for a while now and I would > appreciate any pointer. For information, I can reproduce the problem on > both tomcat4.0b3, tomcat4.0b4-dev-20010426 (the latest nightly snapshot I > could get my hands on). > > Last but not least I must say that this worked fine under tomcat4.0b1 and > that I am willing to patch tomcat code if needed. > > Thanks a lot, > > Serge Huber. > >

Cross context class loader bug ?

2001-04-26 Thread Serge Huber
. For information, I can reproduce the problem on both tomcat4.0b3, tomcat4.0b4-dev-20010426 (the latest nightly snapshot I could get my hands on). Last but not least I must say that this worked fine under tomcat4.0b1 and that I am willing to patch tomcat code if needed. Thanks a lot

Re: ERROR using multipart/form-data POST request

2001-04-26 Thread Incze Lajos
> This error hapens when I try to upload file using form with > enctype="multipart/form-data" and method="post". > > The environment: Linux(2.4.3), Apache(1.3.19), > mod_jk and Tomcat (3.2.1), using ajp13 protocol. > > > I can't seem to find anything like that in apache bug tracking system. > D

Re: Redirecting the Response of a JSP to a String

2001-04-26 Thread Glenn Nielsen
Just create a sendmail.jsp which uses the mailer taglib, then use to include it, it won't generate any content, just send the email. Pass any parameters as request scope attributes or using There are always tradeoffs. Using runtime includes reduces the memory foot print, but increases the run

cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler ParserXJspSaxHandler.java Parser.java

2001-04-26 Thread horwat
horwat 01/04/26 18:32:47 Modified:jasper/src/share/org/apache/jasper/compiler ParserXJspSaxHandler.java Parser.java Log: Check to make sure string is not null before doing any manipulations. Fix minor tag handling bug. Revision ChangesPath 1.12

RE: Redirecting the Response of a JSP to a String

2001-04-26 Thread Arun Katkere
How does this help? I thought you couldn't inside custom tags that access the body (like the mail tag you mention) due to limitations of jsp 1.1 ( requires flush to be true) and servlet 2.2 (you can't wrap response objects). i.e., you can' write jsp like: Of course, you can inline

cvs commit: jakarta-tomcat-4.0/catalina/src/conf server.xml

2001-04-26 Thread craigmcc
craigmcc01/04/26 17:34:00 Modified:catalina build.xml catalina/src/conf server.xml Log: Remove the warp connector from the build (and from the default server.xml configuration) until I have time to figure out why it breaks a build from scratch. Revision Chan

Re: Redirecting the Response of a JSP to a String

2001-04-26 Thread Glenn Nielsen
Jon Stevens wrote: > > on 4/26/01 2:11 PM, "Glenn Nielsen" <[EMAIL PROTECTED]> wrote: > > > A fifth solution for just sending email is to use the Mailer taglib at > > http://jakarta.apache.org/taglibs/mailer/ > > > > Regards, > > > > Glenn > > The requested URL /taglibs/mailer/ was not found on

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/ssi ResponseIncludeWrapper.java ServletOutputStreamWrapper.java SsiCommand.java SsiConfig.java SsiEcho.java SsiFlastmod.java SsiFsize.java SsiInclude.java SsiMediator.java

2001-04-26 Thread bip
bip 01/04/26 15:58:50 Modified:catalina/src/share/org/apache/catalina/util/ssi ResponseIncludeWrapper.java ServletOutputStreamWrapper.java SsiCommand.java SsiConfig.java SsiEcho.java SsiFlastmod.java

Error in tomcat.log

2001-04-26 Thread Marcia Perry
Hi, An app I'm trying to run involving servlets causes the following error to be written to tomcat.log: Error reading request connection reset (I'm running tomcat v3.1). Does anyone know what this error may indicate or what can cause it? (I realize this has been asked previously but

cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler DelegatingListener.java JspParseEventListener.java ParseEventListener.java Parser.java ParserXJspSaxHandler.java TagBeginGenerator.java TagEndGenerator.java

2001-04-26 Thread horwat
horwat 01/04/26 16:17:41 Modified:jasper/src/share/org/apache/jasper/compiler DelegatingListener.java JspParseEventListener.java ParseEventListener.java Parser.java ParserXJspSaxHandler.java TagBeginGenerator.java

ERROR using multipart/form-data POST request

2001-04-26 Thread Andrey Kartashov
Hi, All! We've recently migrated our application from Apache/JServ to Tomcat and experienced the following problem: ==> /var/log/httpd/access_log <== 199.95.200.171 - - [26/Apr/2001:17:53:47 -0400] ".·\8‡6&nomÍ"³ “¹sàä-PRá¸ZŒ5;AàÀn8Á/

Re: Redirecting the Response of a JSP to a String

2001-04-26 Thread Jon Stevens
on 4/26/01 2:11 PM, "Glenn Nielsen" <[EMAIL PROTECTED]> wrote: > A fifth solution for just sending email is to use the Mailer taglib at > http://jakarta.apache.org/taglibs/mailer/ > > Regards, > > Glenn The requested URL /taglibs/mailer/ was not found on this server. :-) -jon

Re: Redirecting the Response of a JSP to a String

2001-04-26 Thread Glenn Nielsen
A fifth solution for just sending email is to use the Mailer taglib at http://jakarta.apache.org/taglibs/mailer/ Regards, Glenn Sasha Haghani wrote: > > Hi there, > > -- > DISCLAIMER: This a Tomcat question, where the solution will likely require > some tinkering with the implementation.

Re: Redirecting the Response of a JSP to a String

2001-04-26 Thread Jon Stevens
on 4/26/01 1:43 PM, "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: > A fourth solution (also portable) is to look at the Filter capability in > the servlet 2.3 API (supported by Tomcat 4.0). > > Craig McClanahan The only problem with this is that Catalina is bleeding edge and while it will be

[PATCH] JspInterceptor compilation class path wrong TC3.3M2

2001-04-26 Thread William Barker
When setting the classpath for compilation, JspInterceptor (or more correctly, JasperLiaison) includes the "container" and excludes the "apps". This sort of defeats the purpose of having the "apps" in the first place. I've patched my copy of JspInterceptor.java as follows: *** JspInterceptor.j

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session JDBCStore.java

2001-04-26 Thread bip
bip 01/04/26 13:17:21 Modified:catalina/src/share/org/apache/catalina/session JDBCStore.java Log: Changed the SQL Statement for keys(), threw an error under MySQL. Revision ChangesPath 1.3 +26 -23 jakarta-tomcat-4.0/catalina/src/shar

Re: Redirecting the Response of a JSP to a String

2001-04-26 Thread Craig R. McClanahan
A fourth solution (also portable) is to look at the Filter capability in the servlet 2.3 API (supported by Tomcat 4.0). Craig McClanahan On Thu, 26 Apr 2001, Sasha Haghani wrote: > Hi there, > > -- > DISCLAIMER: This a Tomcat question, where the solution will likely require > some tinke

Re: Tomcat Source Javadoc

2001-04-26 Thread Bip Thelin
Sasha Haghani wrote: > > Is there any Javadoc for the Tomact source? Can I generate it myself? Javadoc is generated once you do a build, look in jakarta-tomcat-4.0/build/webapps/ROOT/(catalina-javadoc||jasper-javadoc||servletapi-javadoc) ..bip

Re: Tomcat Source Javadoc

2001-04-26 Thread Jon Stevens
on 4/26/01 12:39 PM, "Sasha Haghani" <[EMAIL PROTECTED]> wrote: > Is there any Javadoc for the Tomact source? 3.x Ahahhahahahah 4.x much better > Can I generate it myself? Of course you can. You have the .java files...run javadoc on it. I'm sure the build system also probably has a javadoc ta

Re: Redirecting the Response of a JSP to a String

2001-04-26 Thread Jon Stevens
on 4/26/01 12:38 PM, "Sasha Haghani" <[EMAIL PROTECTED]> wrote: > Any comments, help or suggestions that anyone can provide are much, much > appreciated. Also, I'd love to hear alternative solutions. Thanks so much. Solution 4) Use Turbine as your Controller. Turbine is a servlet that essenti

RE: Tomcat 3.2.2 and Thread synchronization

2001-04-26 Thread GOMEZ Henri
I'll have also some patches to port back in TC 3.2 mod_jk/ajp13 - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 >-Original Message

Tomcat Source Javadoc

2001-04-26 Thread Sasha Haghani
Is there any Javadoc for the Tomact source? Can I generate it myself?

Redirecting the Response of a JSP to a String

2001-04-26 Thread Sasha Haghani
Hi there, -- DISCLAIMER: This a Tomcat question, where the solution will likely require some tinkering with the implementation. What I'm to do is probably a non-standard use case. I think knowledge of the Tomcat internals is required to answer this. I hope this question is appropriate for

cvs commit: jakarta-tomcat-4.0/tester/src/tester/org/apache/tester Session01.java

2001-04-26 Thread craigmcc
craigmcc01/04/26 11:30:17 Modified:tester/src/tester/org/apache/tester Session01.java Log: Add a test that HttpSession.setAttribute("name", null) acts like HttpSession.removeAttribute("name"). Revision ChangesPath 1.2 +13 -2 jakarta-tomcat-4.0/tester/src/tes

cvs commit: jakarta-tomcat-4.0/tester/web/golden WrappedSession05.txt

2001-04-26 Thread craigmcc
craigmcc01/04/26 11:23:45 Modified:tester/src/bin tester.xml tester/web/WEB-INF web.xml Added: tester/src/tester/org/apache/tester Session06.java tester/web/golden WrappedSession05.txt Log: Add a new test (Session06) to validate throwing Illegal

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpRequestBase.java LocalStrings.properties

2001-04-26 Thread craigmcc
craigmcc01/04/26 10:41:08 Modified:catalina/src/share/org/apache/catalina/connector HttpRequestBase.java LocalStrings.properties Log: [PFD2-Javadocs] If a servlet calls request.getSession() true with no current session, and the response has already bee

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session StandardSession.java

2001-04-26 Thread craigmcc
craigmcc01/04/26 10:23:38 Modified:catalina/src/share/org/apache/catalina/connector RequestBase.java catalina/src/share/org/apache/catalina/core ApplicationContext.java catalina/src/share/org/apache/catalina/s

cvs commit: jakarta-tomcat-4.0/tester/web Xerces00.jsp

2001-04-26 Thread craigmcc
craigmcc01/04/26 10:21:29 Modified:tester/web Xerces00.jsp Log: Change back to to reflect the reverted change in JSP. Revision ChangesPath 1.3 +1 -1 jakarta-tomcat-4.0/tester/web/Xerces00.jsp Index: Xerces00.jsp ===

cvs commit: jakarta-tomcat-4.0/tester/src/tester/org/apache/tester ErrorPage04.java ErrorPage06.java

2001-04-26 Thread craigmcc
craigmcc01/04/26 09:39:14 Modified:tester/src/tester/org/apache/tester ErrorPage04.java ErrorPage06.java Log: [PFD2-9.9] Revise the error page propogation tests to reflect the fact that the actual exception that was thrown is forwarded to the error pages.

Re: Tomcat 3.2.1 and RequestDispatcherImpl

2001-04-26 Thread Craig R. McClanahan
On Thu, 26 Apr 2001, Jon Doe wrote: > Hi everybody, > > For our application we have developed a ResponseWrapper that > implements ServletResponse. > > The problem comes when we use Tomcat 3.2.1. > RequestDispatcherImpl.include(ServletRequest request, ServletResponse > response). > The respon

Tomcat 3.2.1 and RequestDispatcherImpl

2001-04-26 Thread Ana
For our application we have developed a ResponseWrapper and ResponseWrapper that implements ServletResponse and ServletRequest. The problem comes when we use Tomcat 3.2.1. RequestDispatcherImpl.include(ServletRequest request, ServletResponse response). The response parameter that the include m

Re: getPathInfo() recieved by jsp:include?

2001-04-26 Thread Craig R. McClanahan
On Thu, 26 Apr 2001, Jun-hee Yoo wrote: > > i'm not sure if it is a bug, Nope ... it is a misunderstanding on your part. > or if it is already corrected, but I find > that when a jsp page uses the jsp:include tag and includes the output of > a servlet, the servlet can't get the PATH_INFO. >

Re: jsp version supported

2001-04-26 Thread Craig R. McClanahan
On Thu, 26 Apr 2001, Carlos Piqueres Ayela wrote: > Hi everybody, > > When we try to use in the jsp:include with flush set to false tomcat > says that JSP1.0 only allows this value to true. Nevertheless Tomcat 3.2 > is supposed to support JSP1.1 where this value can be set to false. > > Is it

Tomcat 3.2.1 and RequestDispatcherImpl

2001-04-26 Thread Jon Doe
Hi everybody, For our application we have developed a ResponseWrapper that implements ServletResponse. The problem comes when we use Tomcat 3.2.1.RequestDispatcherImpl.include(ServletRequest request, ServletResponseresponse).The response parameter that the include method receives is ourRequ

AJP12 and isSecure [was RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/facade HttpServletResponseFacade.java]

2001-04-26 Thread Marc Saegesser
Dan, Sorry it took so long to respond to this. I think this is actually broken either way. Request.isSecure() simply does a case insensitive comparison of the scheme with HTTPS. Unfortunately, AJP12 does not include the scheme explicitly, but infers it based on the server port. Anything with

starting/stopping contexts in Tomcat 4

2001-04-26 Thread Mark.Abbott
The ContextConfig.start and ContextConfig.stop methods in Tomcat 4b2 do not appear to be inverses of each other. The start method causes children to be added to the context during web.xml parsing, but the stop method does not remove them. Doesn't this mean that stopping and then restarting a r

RE: Tomcat 3.2.2 and Thread synchronization

2001-04-26 Thread Marc Saegesser
JspServlet, in 3.2.x, takes on some of the responsibilities of a servlet container in that it controls the lifecycle of the implementation servlet classes (instantiates them, calls init(), service() and destroy()). We really should be delegating this stuff to a real servlet container and I think

[SUGGESTION] The tomcat bug related to URL encoding...

2001-04-26 Thread Park, Sung-Gu
Hi guys, Please, read and refer the commit message. ;-) http://jakarta.apache.org/cvsweb/index.cgi/jakarta-slide/src/webdav/client/s rc/org/apache/webdav/util/URIUtil.java?rev=1.3&content-type=text/vnd.viewcvs -markup (NOTICE). If you don't concat the example, multi-byte letters are disappeare

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup Bootstrap.java

2001-04-26 Thread glenn
glenn 01/04/26 05:31:07 Modified:catalina/src/share/org/apache/catalina/startup Bootstrap.java Log: Preload more classes to keep the SecurityManager happy. Revision ChangesPath 1.17 +6 -4 jakarta-tomcat-4.0/catalina/src/share/org/apac

Re: JNDI realm

2001-04-26 Thread Antony Bowesman
John Holman wrote: > > On a different but related topic, I wonder whether it is sensible > to assume that user authentication and the determination of roles > always use the same mechanisms. For example one might want to use a > directory service for authentication but look up roles in a databas

getPathInfo() recieved by jsp:include?

2001-04-26 Thread Jun-hee Yoo
i'm not sure if it is a bug, or if it is already corrected, but I find that when a jsp page uses the jsp:include tag and includes the output of a servlet, the servlet can't get the PATH_INFO. i mean that, if a jsp page has some sort of code like this, (calls the servlet with extra path info)