Why request.getRemoteUser() returns NULL ?

2004-08-31 Thread Aris Javier
i found this in jguru... it stated there that if i do this in server.xml, request.getRemoteUser() will not equal to NULL.. ? i did, but request.getRemoteUser() returns NULL please, anybody.. do you know how to get request.getRemoteUser() to work? i need it badly! please! aris

Re: Access zu an jdbc Datasource

2004-08-31 Thread Robert Einsle
Hy, It seems to work, very much Thanks. Greetings \Robby D'Alessandro, Arthur schrieb: Try a resourcelink in your context for the webapp. Eg. path="/yourwebappname" privileged="false" reloadable="true" swallowOutput="true"> type="javax.sql.DataSource"/> -Original Message- From: Robert

Re: [ANN] Apache Jakarta Tomcat 5.5.0 Released

2004-08-31 Thread Nikola Milutinovic
Yoav Shapira wrote: The Tomcat Team announces the immediate availability of Apache Jakarta Tomcat 5.5.0. Is there any story on the version number "hyper-jump-to-warp-speed"? 5.0 is current, I can see links to 5.1. Why have you jumped to 5.5? Because of JDK 1.5? Nix.

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread Kimmy Lin
What I really meant was to write a parameter "xmldoc=..." into the outputstream of the HttpURLConnection like the following to make it a Post. OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream()); wr.write(params); Not sure whether there is any limit this way though. But Reques

Re: [ANN] Apache Jakarta Tomcat 5.5.0 Released

2004-08-31 Thread guo yingshou
Great! But I cann't build it with the downloaded build.xml on jdk5 beta2. There are some generics related problems with dbcp compilation. Use jdk1.4_05 to build is ok but I have to switch to jdk5 to run it. We run 4 instances of tomcat-5-24 in a cluster environment in our production system. We m

UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth )

2004-08-31 Thread Rick
Since 5.0.27, pretty much all of my UTF-8 i8 code seems to be messed up. The problem seems to have been caused by whatever fix was created for issue -- ServletResponse.setContentType sets response encoding after getWriter was called (Bugtraq 5062838) (luehe) -

[ANN] Apache Jakarta Tomcat 5.5.0 Released

2004-08-31 Thread Yoav Shapira
The Tomcat Team announces the immediate availability of Apache Jakarta Tomcat 5.5.0. This is the first release of the new Tomcat 5.5 branch, and as such it is not yet stable. We expect significant additional changes, including possible changes to packaging, dependencies, and Tomcat internal APIs,

Re: Tomcat Holding Database Open??????

2004-08-31 Thread Joel
On Tue, 31 Aug 2004 09:23:56 -0400 "Michael McQuade" <[EMAIL PROTECTED]> wrote > Please forgive me, I dont even understand a lot of these responses, Im a > mainframe Cobol coder here, not a Java person, Welcome to Tomcat and Java. > but Im using a Converter > that converts Cobol to Java

Re: website going down

2004-08-31 Thread Michael McQuade
Could the person having problems with Tomcat and MySql contact me at [EMAIL PROTECTED] I also am having Tomcat/MySql/JDBC problems, maybe we can talk some. Thank You Mike - Original Message - From: "QM" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: T

Re: Can I start tomcat 5.0.28 as a non root user at Linux?

2004-08-31 Thread Yi Wang
yes you can and you should not start tomcat as root user (for security reason) On Wed, 1 Sep 2004 07:58:57 +0800, Big Chiz <[EMAIL PROTECTED]> wrote: > checkout jsvc.tar.gz on the tomcat/bin > > > > On Tue, 31 Aug 2004 17:28:24 -0500, QM <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 31, 2004 at 04

Re: Can I start tomcat 5.0.28 as a non root user at Linux?

2004-08-31 Thread Big Chiz
checkout jsvc.tar.gz on the tomcat/bin On Tue, 31 Aug 2004 17:28:24 -0500, QM <[EMAIL PROTECTED]> wrote: > On Tue, Aug 31, 2004 at 04:35:33PM -0500, Vic wrote: > : I do not know if you can, but I can. > > I can't. > -oh wait, hold on... > yes, yes I can. =) > > To the OP: check the docs, try it

Re: Tomcat 5.0.27 Set Up Problem

2004-08-31 Thread Big Chiz
if ur using winblows, hehehe, checkout the service.bat, the cmd would be something like service.bat --install tomcat5 or something On Tue, 31 Aug 2004 22:31:11 +0100, Nelson, Jerry W, Contractor 146CF, SCB <[EMAIL PROTECTED]> wrote: > What if you didn't use the installer? How can it be setup manu

Re: website going down

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 06:12:19PM -0500, Stephen Charles Huey wrote: : In other words, as far as I can see, Tomcat must be trying to go to : MySQL to pop up that basic authentication box, but the box never pops up : because I suppose MySQL is hanging for some reason. Generally all we : have to do

website going down

2004-08-31 Thread Stephen Charles Huey
We had a problem where our website would hang because Tomcat couldn't access the main database over DSN (on another machine), and it was a problem with our vendor's ODBC driver, so we moved to the Linux version (which was more stable). We had created a Watchdog program that would call a JSP with s

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread John Gentilin
Try this, override service and not doGet / doPost where the code is public void service( ServletRequest request, ServletResponse response ) throws javax.servlet.ServletException, java.io.IOException { Document doc; // Create an InputStream to read in the XML data to be parsed Servle

Re: Can I start tomcat 5.0.28 as a non root user at Linux?

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 04:35:33PM -0500, Vic wrote: : I do not know if you can, but I can. I can't. -oh wait, hold on... yes, yes I can. =) To the OP: check the docs, try it out, and steer clear of privileged ports. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNe

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 06:15:59PM -0400, Kimmy Lin wrote: : http://URL?xmldoc=... : request.getParameter("xmldoc"); The OP may run into some limits with that, unless those are very small XML docs. =) Doesn't Request#getInputStream() provide the body? -or does it get the whole request, headers an

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread Kimmy Lin
Do you have control over how the request is composed? If so, you can put the XML data in a parameter say "xmldoc" and the equivalent GET request will look like the following http://URL?xmldoc=... ("<" and ">" not escaped) Then in your program do request.getParameter("xmldoc"); to get the xml d

RE: Reading Servlet OutputStream

2004-08-31 Thread Nitin Mulimani
The issue being how do I write to PipedOutputStream(). These are the lines I'm thinking .. PipedOutputSteam out = new PipedOutputStream(); out.write(ServletOutputStream.read()); But I do not know a way to read data from an output stream --- Nitin -Original Message- From: Nandish Rudra [m

Re: Can I start tomcat 5.0.28 as a non root user at Linux?

2004-08-31 Thread Vic
I do not know if you can, but I can. .V Johnny wrote: __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail -- Please post on Rich Internet Applications User Interface (RiA/SoA) -

RE: Tomcat 5.0.27 Set Up Problem

2004-08-31 Thread Nelson, Jerry W, Contractor 146CF, SCB
What if you didn't use the installer? How can it be setup manually? //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 12:06 PM To: Tomcat Users List Subject: Re: Tomcat 5.0.27 Set Up Problem The tomcat installer doe

Can I start tomcat 5.0.28 as a non root user at Linux?

2004-08-31 Thread Johnny
__ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
I'm receiving a HTTP POST request containg XML data and want to process the data in the doPost method of my servlet. When I do request.getContentLength(), it gives the length of the entire request including the HTTP header etc, but I only want the XML portion of it. I can't find any Java metho

How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
I'm receiving a HTTP POST request containg XML data and want to process the data in the doPost method of my servlet. When I do request.getContentLength(), it gives the length of the entire request including the HTTP header etc, but I only want the XML portion of it. I can't find any Java metho

Re: Getting 404 error deploying my servlet

2004-08-31 Thread Shaun Campbell
- Original Message - From: "Kimmy Lin" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, August 30, 2004 10:13 PM Subject: Re: Getting 404 error deploying my servlet > In your web.xml, you might want to try add the following > > > ... > >

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
I don't agree with your assesment. I would rather do a simple boolean check before I do something and make a decision based on that and use exceptions for catastrophic errors. Just a choice in how to use the tools available. -- Christopher Cullum [EMAIL PROTECTED] Caldarale, Charles R said: >>

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: RE: How do I get an intermediary proxy from caching? > > Adding the headers will not be an infrequent situation, most > of my site is dynamic so almost all of the site cannot be cached. > The adding of these headers will be part of th

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Adding the headers will not be an infrequent situation, most of my site is dynamic so almost all of the site cannot be cached. The adding of these headers will be part of the main path. -- Christopher Cullum [EMAIL PROTECTED] Caldarale, Charles R said: >> From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: How do I logout application(s) with Single-sign-on?

2004-08-31 Thread Rick Wong
Thanks Keith, I figured out what I did wrong. It turns out that my logout servlet was running in a separate Web application that is not part of the SSO Realm. Of course, session.invalidate() does nothing to the SSO session! Thanks a lot for your help! Thanks a lot, -- Rick Keith Bottner wrot

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: How do I get an intermediary proxy from caching? > > To rely on that method, yes a bad design, to check before > you change the headers, so you can head off an exception, > not a bad design. However, you're adding code for a hop

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
-- Christopher Cullum [EMAIL PROTECTED] Carl Howells said: > [EMAIL PROTECTED] wrote: >> Can I ask Tomcat if it has flushed it's output buffer yet? >> > > As part of the servlet spec... > > HttpServletResponse has an isCommitted() method. That will tell you > whether it's flushed the buffer. >

Re: RE : -- TomCat/Lucene, filesystem

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 09:08:52PM +0200, J.Ph DEGLETAGNE wrote: : Open and read files... : Lucene has indexed files under e:\data : And after a Lucene search (from indexe) Lucene display something like that : : http://merlin:9090/data/text/essai.txt : With : Etat HTTP 404 - /data/text/essai.txt :

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread Carl Howells
[EMAIL PROTECTED] wrote: Can I ask Tomcat if it has flushed it's output buffer yet? As part of the servlet spec... HttpServletResponse has an isCommitted() method. That will tell you whether it's flushed the buffer. But really, it seems like a bad design to rely on that method. -

RE: Java process growth under Linux...leak?

2004-08-31 Thread Mark Maigatter
> Wade Chandler wrote: > >> Mark Maigatter wrote: >> >>> We have a Tomcat 5.0.25 based web site for uploading images and assorted >>> files and managing them. >>> >>> We have found that the Java process that Tomcat is running under is >>> gradually growing when repetitively processing files uplo

Re: tag file encoding problem

2004-08-31 Thread V. Karthik Kumar
use: response.setCharacterEncoding("Whatever"); <-- internally, this is what the tags translate to... Before u carry on with out.print() statements... And one more thing.. there is an option available to add encoding messages by default; a filter is available by default filters.setCharacte

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Can I ask Tomcat if it has flushed it's output buffer yet? -- Christopher Cullum [EMAIL PROTECTED] John Villar said: > you could also use a filter for your whole app that does that, if you > want all your app "non-cached", same rules apply > > Ronald Klop escribió: > >> Yes. To be precise: y

RE : -- TomCat/Lucene, filesystem

2004-08-31 Thread J.Ph DEGLETAGNE
QM, Open and read files... Lucene has indexed files under e:\data And after a Lucene search (from indexe) Lucene display something like that http://merlin:9090/data/text/essai.txt With Etat HTTP 404 - /data/text/essai.txt Webapp Lucene is installed and running from D:\Program Files\Apache Softw

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread John Villar
you could also use a filter for your whole app that does that, if you want all your app "non-cached", same rules apply Ronald Klop escribió: Yes. To be precise: you have to set the headers before Tomcat flushes its outputbuffer for the first time. To be save, just set headers, than output h

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread Ronald Klop
Yes. To be precise: you have to set the headers before Tomcat flushes its outputbuffer for the first time. To be save, just set headers, than output html. Ronald, On Tue Aug 31 20:10:13 CEST 2004 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Must you do this as one of the first things you do, bef

Re: tag file encoding problem

2004-08-31 Thread John Villar
then you should use the <%@ page %> directive. search the web it has a way to specify encoding Sebastian Ryszard Kruk escribiÃ: Dnia 08/30/2004 07:01 PM, UÃÂytkownik John Villar napisaÃÂ: i don't know much about the ".tag" format however, if it is an XML based one, you must define th

Re: Tomcat 5.0.27 Set Up Problem

2004-08-31 Thread John Villar
The tomcat installer does it right away, you just install it and it even has enabled the autostart mode Nelson, Jerry W, Contractor 146CF, SCB escribió: With your suggestion in item 3, how do you run tomcat as a service? //SIGNED// Jerry Nelson -Original Message- From: John Villar [ma

Hi!

2004-08-31 Thread V. Karthik Kumar
Hi, I'm reporting this some sort of unusual behavior in the manager... (WRT Tomcat 5.0.27) ... When a user tries to start a web-app that has been started already, and then stop it, it becomes unusable again... The current way to solve such a thing is: 1. Shutdown the server 2. Clean up in the

Re: Functionality of for Servlets

2004-08-31 Thread Jeanfrancois Arcand
Gunnar Brading wrote: I have been in need of using the tag in a Tomcat-only environment... Is this possible? Reading the source indicates that it wouldn't be possible to get the information about the role the context currently is in. Using the requests in-role methods of course tells me about

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread John Gentilin
Not sure if order matters but in my code, I set the headers first then process the request. -JG [EMAIL PROTECTED] wrote: Must you do this as one of the first things you do, before you output any html? - To unsubscribe, e-mail

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Must you do this as one of the first things you do, before you output any html? -- Christopher Cullum [EMAIL PROTECTED] John Gentilin said: > When I am battling against IE caching or proxy caching, I add the > following lines > to my response header. A bit brute force but it seems to work, altho

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread John Gentilin
When I am battling against IE caching or proxy caching, I add the following lines to my response header. A bit brute force but it seems to work, althought I think it cause some issues when backing up on a form, forcing a reload. response.setHeader("Cache-Control", "no-cache,max-age=0,mus

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Thanks, I will give this a try. -- Christopher Cullum [EMAIL PROTECTED] QM said: > On Tue, Aug 31, 2004 at 10:47:27AM -0700, [EMAIL PROTECTED] wrote: > : in my head section, but the proxy still caches my page. I read > somewhere : to put the cache-control:no-cache in the http header of the > re

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 10:47:27AM -0700, [EMAIL PROTECTED] wrote: : in my head section, but the proxy still caches my page. I read somewhere : to put the cache-control:no-cache in the http header of the request, but I : could not find how to do this in tomcat. Any help would be appreciated. Res

Help, URI mapping problem with JK2

2004-08-31 Thread John Gentilin
I am running Apache 2.0.50, mod_Jk2 and Tomcat 4.1.30. In my workers2.properties I have the mapping [uri:/WebClassifieds/*] group=lb where this URL works http://4wallsinde.rapidxsl.com/WebClassifieds/web/cmd/ and this one too http://4wallsinde.rapidxsl.com/WebClassifieds/fourwalls/V20/assets/ex

How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Hello all, I have taken a cursory look at the documentation for tomcat 5.x and I could not see how to get intermediary proxy's from caching my web page. I have the tags: in my head section, but the proxy still caches my page. I read somewhere to put the cache-control:n

Re: tag file encoding problem

2004-08-31 Thread Sebastian Ryszard Kruk
Dnia 08/30/2004 07:01 PM, UÃÂytkownik John Villar napisaÃÂ: i don't know much about the ".tag" format however, if it is an XML based one, you must define the charset of your xml in the tag Sebastian Ryszard Kruk escribiÃ: Hi, I have a strange problem - I use tomcat 5.0.14. When I try to put

RE: Java process growth under Linux...leak?

2004-08-31 Thread Nandish Rudra
Hi, Search for Java HotSpot on Google and look for the following java options ParallelGC and maxHeapRation. Set the JAVA_OPTS with these and solve the problems. Regards, NR -Original Message- From: Mark Maigatter [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 12:21 PM To: '[E

RE: Tomcat 5.0.27 Set Up Problem

2004-08-31 Thread Nelson, Jerry W, Contractor 146CF, SCB
With your suggestion in item 3, how do you run tomcat as a service? //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 9:49 AM To: Tomcat Users List Subject: Re: Tomcat 5.0.27 Set Up Problem Probably, your problem isn'

Re: Java process growth under Linux...leak?

2004-08-31 Thread Wade Chandler
Wade Chandler wrote: Mark Maigatter wrote: We have a Tomcat 5.0.25 based web site for uploading images and assorted files and managing them. We have found that the Java process that Tomcat is running under is gradually growing when repetitively processing files uploaded and stripped out of the f

Re: Java process growth under Linux...leak?

2004-08-31 Thread Wade Chandler
Mark Maigatter wrote: We have a Tomcat 5.0.25 based web site for uploading images and assorted files and managing them. We have found that the Java process that Tomcat is running under is gradually growing when repetitively processing files uploaded and stripped out of the form submissions by the

Re: -- TomCat/Lucene, filesystem

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 06:11:53PM +0200, J.Ph DEGLETAGNE wrote: : How to "customize" Webapp Lucene to access directory filesystem which are : outside TomCat ? : like this : : D:\Program Files\Apache Software Foundation\Tomcat 5.0\.. : to access : E:\Data You'll have to clarify what you mean by "

RE: Reading Servlet OutputStream

2004-08-31 Thread Nandish Rudra
Here is something u guys can do. PipedOutputStream and PipedInputStream to redirect the output stream and read the data into a buffer and then do with it what u please. regards NR -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 12:48 PM T

RE: Path Problem when Porting Hibernate/Struts App from Tomcat 4 to 5

2004-08-31 Thread Emmerich, Martin
On Wed, Aug 25, 2004 at 6:31 PM, QM wrote > What about renaming the .jar file with the Hibernate mappings .zip? and > You may want to hold off, then, till the developer gets back. We did both and it worked! Thanks for the help! Best regards, .. Martin Emmerich Leit

Re: Reading Servlet OutputStream

2004-08-31 Thread James Sherwood
I am not using JSP, I am using Tapestry, any other ideas on how to accomplish this? James - Original Message - From: "John Villar" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 1:31 PM Subject: Re: Reading Servlet OutputStream > certainl

Re: Reading Servlet OutputStream

2004-08-31 Thread John Villar
certainly my error the method is from the JSP API JspContext http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jspapi/index.html I ran into a problem that needed writing a zip file from the JSP page sorry for that one, however, with that method you could do what you're trying Nitin Mulima

RE: Reading Servlet OutputStream

2004-08-31 Thread Nitin Mulimani
Hi John, I am checking the Servlet2.3 api, and do not find a pushBody() method in HttpServletResponse. -- Nitin -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 8:32 AM To: Tomcat Users List Subject: Re: Reading Servlet OutputStream Look at

Re: Reading Servlet OutputStream

2004-08-31 Thread James Sherwood
I am in roughly the same boat as you John as I need to manipulate the response. I cannot find a pushBody method for HttpServletResponse:( James - Original Message - From: "John Villar" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 12:32 P

Java process growth under Linux...leak?

2004-08-31 Thread Mark Maigatter
We have a Tomcat 5.0.25 based web site for uploading images and assorted files and managing them. We have found that the Java process that Tomcat is running under is gradually growing when repetitively processing files uploaded and stripped out of the form submissions by the Apache FileUpload com

-- TomCat/Lucene, filesystem

2004-08-31 Thread J.Ph DEGLETAGNE
Hello Somebody, ..I beg your pardon... Under Windows XP / TomCat, How to "customize" Webapp Lucene to access directory filesystem which are outside TomCat ? like this : D:\Program Files\Apache Software Foundation\Tomcat 5.0\.. to access E:\Data Thank's a lot JPhD

-- Tomcat, filesystem

2004-08-31 Thread J.Ph DEGLETAGNE
Hello Somebody, Under Windows XP, How to "customize" webapps Tomcat to access directory filesystem which are outside Tomcat ? like this : D:\Program Files\Apache Software Foundation\Tomcat 5.0\.. Thank's a lot JPhD

AW: JSP/HTML Encoding

2004-08-31 Thread Ben Bookey
Hi Allistair +++ Many thanks for your help. +++ I apologise when I ask some stupid questions... :) 1) I am not exactly sure what the benefit is, of seeing if the client is posting a utf8 encoded response ? Surely, the server controls anyway what encoding the html pages are in so if i post with L

RE: JSTL 11 with Tomcat 5.0.27

2004-08-31 Thread Chris Ward
Thanks again. I'm showing my ignorance now but I don't know what a 2.4 XSD is let alone if I should have one or not! I did Google it but don't have time to reas all that came back! It's sitting on the printer now. I see mention of XMLSchema in there - which is something I'm not currently mak

SSL Discoveries

2004-08-31 Thread Bill Barrington
If you are using SSL with Tomcat, you should probably read this. I got no responses to my earlier postings, but it's possible this could save you some time in the future. Or it could be that my experience is totally unique (but that is hard for me to believe). I finally got SSL working with

Functionality of for Servlets

2004-08-31 Thread Gunnar Brading
I have been in need of using the tag in a Tomcat-only environment... Is this possible? Reading the source indicates that it wouldn't be possible to get the information about the role the context currently is in. Using the requests in-role methods of course tells me about the user, and not the c

AW: Access Log Valve

2004-08-31 Thread Sinkinson,Andrew [NCR]
Forgot to enableLookups="true" on the Connector. By default it is set to false :) -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: August 31, 2004 10:31 AM To: Tomcat Users List Subject: Re: Access Log Valve On Tue, Aug 31, 2004 at 10:29:09AM -0400, Sinkinson,Andrew [NCR] wr

Re: Reading Servlet OutputStream

2004-08-31 Thread John Villar
Look at the pushBody method of the response class (HttpServletResponse) that's all you need Nitin Mulimani escribió: This question is is more on the Servlet API. I want to read the servlet output stream and save in some buffer or file, and then forward it to the client. I use filters to pl

Re: Tomcat Holding Database Open??????

2004-08-31 Thread Parsons Technical Services
Mike, You may want to post some code and let us take a look. May be the simplest solution to get you going. There is a chance that you are not closing the connection properly and it is being held open. There can also be database issues as well (I think someone mentioned this). Doug www.parsonstec

AW: JSP/HTML Encoding

2004-08-31 Thread Ben Bookey
Hi Allistair, Where can I set this JVM property exactly ? Thanks in advance. Ben p.s. I am beginning to think that my problem is associated with working with HTML framesets(with possible mixtures of html encoding). -Ursprüngliche Nachricht- Von: Allistair Crossley [mailto:[EMAIL PROTECTED

Reading Servlet OutputStream

2004-08-31 Thread Nitin Mulimani
This question is is more on the Servlet API. I want to read the servlet output stream and save in some buffer or file, and then forward it to the client. I use filters to play with the Request and Response objects. These are some of the things I have tried. 1) I have a Wrapper whic

RE: JAVA_OPT with service

2004-08-31 Thread David Morris
Sloan, You should find what you need here: http://jakarta.apache.org/commons/daemon/procrun.html Look in the registry for the parameter keys: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\\Parameters JVM Option Number 0 to the first parameter. JVM Option Number 1 to the second parameter. J

RE: JSP/HTML Encoding

2004-08-31 Thread Allistair Crossley
make sure also that you set file.encoding=utf8 in tomcat's startup options so that the jvm also operates in that mode. ADC > -Original Message- > From: Ben Bookey [mailto:[EMAIL PROTECTED] > Sent: 31 August 2004 16:00 > To: Tomcat User List > Subject: JSP/HTML Encoding > > > > > Dear

IllegalStateException from java.nio.charset.CharsetEncoder

2004-08-31 Thread Greg Ward
On one of our servers, we're using Tomcat 4.1.29 under Java 1.4.2_02, connecting to Apache 2.0.48 with mod_jk 1.2.4, all running on Red Hat Linux 6.2. (Wow, what a zoo of version numbers!) Recently we got a support call because some (all?) HTTP requests were failing with "Internal Server Error".

RE: JSP/HTML Encoding

2004-08-31 Thread Allistair Crossley
we've got euro working using utf-8 page/char encoding. You can also use Cp1252 on Windows. ADC > -Original Message- > From: Ben Bookey [mailto:[EMAIL PROTECTED] > Sent: 31 August 2004 16:00 > To: Tomcat User List > Subject: JSP/HTML Encoding > > > > > Dear List, > > I am having unex

Re: How to view what is sent to the browser

2004-08-31 Thread John Villar
you could also use pageContext.pushBody(new BadWordsFilterWriter()) Shapira, Yoav escribió: Hi, You can do this easily with an HttpServletResponseWrapper and a Filter. But if you can modify the servlet, you can do this in a very easy (but somewhat crude way): instead of writing to the Writer you ge

JSP/HTML Encoding

2004-08-31 Thread Ben Bookey
Dear List, I am having unexpected results when setting the encoding of my inputForm.jsp, to iso-8859-15 (changing from iso-8859-15 to iso-8859-1 will allow me to use the Euro symbol and a few others). When i give a Euro symbol into a form input control, the client ends up saving a question-mark

Re: How to view what is sent to the browser

2004-08-31 Thread John Villar
well you could get the request object and search all the parameters sent by the client to filter them James Sherwood escribió: I am looking for a way to view what is being sent to the browser in the servlet. Lets say I want to create a bad word filter(and cannot use an actual filter) once

RE: How to view what is sent to the browser

2004-08-31 Thread Shapira, Yoav
Hi, You can do this easily with an HttpServletResponseWrapper and a Filter. But if you can modify the servlet, you can do this in a very easy (but somewhat crude way): instead of writing to the Writer you get from the response, write to a StringWriter, and at the end of your servlet processing wri

How to view what is sent to the browser

2004-08-31 Thread James Sherwood
I am looking for a way to view what is being sent to the browser in the servlet. Lets say I want to create a bad word filter(and cannot use an actual filter) once I get the response, is there a way to manipulate it before it is sent to the browser? Thanks, James --

Re: Tomcat 5 & Crystal Reports

2004-08-31 Thread Brent Sims
Use CR version 9+ -- it provides a tag library and supporting files that allow you to include your report in a jsp or servlet. You'll still need an ODBC definition to create the report against but this should not be a problem as long as the ODBC def and the JNDI resource share the same name.

Re: Tomcat 4.1.29 - Special chars in a file name

2004-08-31 Thread Surendra Kumar
Hi Greg I tried with test%2B.gif also. If the file is located in Apache, it docodes properly. But if the file is in Tomcat, it throws resource not available error. -Surendra - Original Message - From: "Greg Ward" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECT

RE: Access Log Valve

2004-08-31 Thread Sinkinson,Andrew [NCR]
If I log onto the server running my tomcat installation and perform an nslookup on the ip that is sending the request it resolves. Running tomcat 5.0.27 as a service. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: August 31, 2004 10:31 AM To: Tomcat Users List Subject: Re: A

Re: Tomcat 4.1.29 - Special chars in a file name

2004-08-31 Thread Greg Ward
On 31 August 2004, Surendra Kumar said: > Hi >I am using Tomcat 4.1.29 + Apache 1.3.31. In one of my webapp i have a file > named "test+.gif" Probably a URL encoding problem -- if a web page includes then the browser will ask for "test .gif", because "test+.gif" is one of the ways to en

Re: Access Log Valve

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 10:29:09AM -0400, Sinkinson,Andrew [NCR] wrote: : Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> : I have enabled access logging by uncomment the Access Log Valve in the : server.xml file. I have added the resolveHosts attribute and set it to : true. I have also chang

Access Log Valve

2004-08-31 Thread Sinkinson,Andrew [NCR]
Hi, I have enabled access logging by uncomment the Access Log Valve in the server.xml file. I have added the resolveHosts attribute and set it to true. I have also changed the pattern attribute to %h so that I can just get the Remote host name in the log file. In the access log file I onl

Re: Tomcat Server Status

2004-08-31 Thread sergio ulloa
On tomcat index.jsp click on status. To login you must create a user with "manager" rol. After this is done you will see the status of your server - Original Message - From: "Kashif Siddiqui" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 6:54 AM Subject: Tomca

Tomcat 4.1.29 - Special chars in a file name

2004-08-31 Thread Surendra Kumar
Hi I am using Tomcat 4.1.29 + Apache 1.3.31. In one of my webapp i have a file named "test+.gif" When i try to access this gif file, tomcat throws "resource not available message". All other gif files in the same dir are accessible. Even the directory listing shows the file is available

Re: Tomcat Admin Tools Page

2004-08-31 Thread sergio ulloa
add these two lines in tomcat-users.xml file - Original Message - From: "Kashif Siddiqui" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 4:54 AM Subject: Tomcat Admin Tools Page > Hi all, > > I have sucessfully installed and running Tomcat > server,

Re: Tomcat Holding Database Open??????

2004-08-31 Thread John Villar
: Please forgive me, I dont even understand a lot of these responses, Im a : mainframe Cobol coder here, not a Java person, but Im using a Converter : that converts Cobol to Java LOL that's the proof that someone still writes on COBOL. seriously, using "Converters" or interpr

RE: Tomcat Holding Database Open??????

2004-08-31 Thread Chris Ward
Hi Mike, Some thoughts. If anyone sees errors please let me know - it may save me time in the long run! > Tomcat doing this, because my Application ran just fine, > using MySQL, > and JDBC driver in a Web Server called OmniCron in CGI If I recall correctly, the CGI approach thr

Re: Tomcat Installation Script

2004-08-31 Thread Kimmy Lin
Many thanks Yoav! - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 8:59 AM Subject: RE: Tomcat Installation Script > > Hi, > Yeah: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-5/tomcat.nsi. > >

Re: Tomcat Holding Database Open??????

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 09:23:56AM -0400, Michael McQuade wrote: : Please forgive me, I dont even understand a lot of these responses, Im a : mainframe Cobol coder here, not a Java person, but Im using a Converter : that converts Cobol to Java Code-generation tools come with their own qu

Problem setting custom Policy object in ServletContextListener

2004-08-31 Thread william
Basically, I am trying to install a custom Policy class on a web app running within a Tomcat 4.1.27 container. To do so, I have registered a ServletContextListener in the web.xml and I am calling Policy.setPolicy(new rbac.MyPolicy()) from within the contextInitialized method. Later I use the standa

Re: Tomcat Holding Database Open??????

2004-08-31 Thread Michael McQuade
Please forgive me, I dont even understand a lot of these responses, Im a mainframe Cobol coder here, not a Java person, but Im using a Converter that converts Cobol to Java Anyways, I am pretty sure it has to be Tomcat doing this, because my Application ran just fine, using MySQL, and

Re: Tomcat Server Status

2004-08-31 Thread Ronald Klop
On Tue Aug 31 13:14:22 CEST 2004 Kashif Siddiqui <[EMAIL PROTECTED]> wrote: Thank you very much for guidance, but this page don't show StartTime/UpTime of Tomcat Server... http://localhost:/manager/html Is there any way to get it. I use a ServletContextListener for this. It has a 'static long

AW: Problem with session counting

2004-08-31 Thread Michael Sudkamp
Before calling session.invalidate() I now interrupt the thread which causes a database rollback. Now my JMeter-Tests run fine. > > As for stopping the thread "before invalidating a session," > how will you > control that? You could perform this action as part of the general > "logout" page, bu

  1   2   >