FastCommonAccessLogValve to log the bytes gzipped

2008-07-29 Thread Bartolomeo Nicolotti
(Already posted once on tomcat-user) Hi, I'm trying to use an AccessLogValve to log the bytes send over the network, but I have gzip compression actived while in the log goes the bytes count before compression (I've checked it with a sniffer): 192.168.0.64 - - [22/Jul/2008:14:01:15 +0200] GET

RE: Coyote connector and documentation..

2008-07-29 Thread Lists
Ok thats great, I think i came across the 4.1 connector docs by googling and wasnt able to navigate to that page easily! Thanks. Dan - Original Message From: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: Coyote connector and

Re: Tomcat Hosting

2008-07-29 Thread Ben Stringer
On Sun, 2008-07-27 at 19:12 -0700, Kerry Jacabson wrote: Having been burnt a number of times, I was wondering if anyone knew of a reliable host that specializes in Java Hosting for Tomcat. Especially if they offer some sort of trial service, so I can evaluate the service without making any

Re: Tomcat Hosting

2008-07-29 Thread Nikunj
Hii, RimuHosting is best and hostjava.net is also best On Mon, Jul 28, 2008 at 7:42 AM, Kerry Jacabson [EMAIL PROTECTED]wrote: Having been burnt a number of times, I was wondering if anyone knew of a reliable host that specializes in Java Hosting for Tomcat. Especially if they offer some

Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Simon Kitching
Hi, I need to associate some custom metadata with JSP pages, and access it *before* the page is rendered. The current implementation uses an xml with the same name as the jsp, eg foo.jsp foo.xml so that when I'm about to forward to foo.jsp I first look for a foo.xml file and if present parse

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Mikolaj Rydzewski
Simon Kitching wrote: Or perhaps someone can suggest an alternate approach to embedding metadata that can be accessed before the page renders? Please provide as with more details, at this point your requirement is a little bit strange. Have you considered using filters? -- Mikolaj Rydzewski

Re: [programmazione] Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Luca Cicale
I would use the Model-View-Control pattern. First it must be defined a Controller, which is simply Servlet mapped to catch all the request. This servlet can read the XML and append your metadata to the request and forward it to the correct jsp (which will handle your metadata i suppose)

Re: Committing sendRedirect()

2008-07-29 Thread Alan Chaney
Tore Your code below is written as though the 'out' was like writing data to a console. The processing in a servlet is part of a request/response cycle, where the 'request' tells it what to do and the response is the reply. Because of the nature of the request/response cycle you only get

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Simon Kitching
Mikolaj Rydzewski schrieb: Simon Kitching wrote: Or perhaps someone can suggest an alternate approach to embedding metadata that can be accessed before the page renders? Please provide as with more details, at this point your requirement is a little bit strange. Have you

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Mikolaj Rydzewski
Simon Kitching wrote: As described in the original email, this is currently done by looking for a .xml file sitting beside each .jsp. It works ok, and for any JSF view mechanism (jsp, facelets, clay, etc). But some people might find embedding the information in the actual page to be nicer to

Re: Tomcat Hosting

2008-07-29 Thread Leon Rosenberg
RimuHosting is expensive. Just clicked a server together and ended up with twice of what I'm paying now with less included traffic. Leon On Tue, Jul 29, 2008 at 10:32 AM, Nikunj [EMAIL PROTECTED] wrote: Hii, RimuHosting is best and hostjava.net is also best On Mon, Jul 28, 2008 at 7:42

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Johnny Kewl
- Original Message - From: Simon Kitching [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 29, 2008 12:07 PM Subject: Re: Embedding custom metadata in a jsp page; access generated Class via reflection? Mikolaj Rydzewski schrieb: Simon Kitching

RE: Tomcat Writing to NFS

2008-07-29 Thread Kevin Daly (kedaly)
Chris, You were right in the pathlength has nothing to do with the problem. When I put the code in the execute method of a servlet it works with the expect response times. The logic to create the file is running as a JMS client within Tomcat, so basically there is a JMS MessageListener (on a

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Mikolaj Rydzewski
Johnny Kewl wrote: The JSP is well formed XML so It's not true. IMO it's worse to force users to model JSPs as well formed XML documents rather than using additional XML metadata files. -- Mikolaj Rydzewski [EMAIL PROTECTED]

Setting up Comet on Tomcat 6

2008-07-29 Thread Talal Rabaa
Hello! I apologize if this question has been asked many times before. I've searched quite a bit for concrete answers on how to setup Comet but I'm having no luck. From what I understand, all that is needed to successfully set it up is to replace the default connector with either NIO or APR.

Re: Committing sendRedirect()

2008-07-29 Thread Luca Cicale
Maybe a solution could be to use AJAX client side to make the multiple requests. The client make the first request, when the server answers the client make the following request and so on. So the desired effect should be reached. Regards Luca

receiving 404 page not found from godaddy.com

2008-07-29 Thread jim stone
I have a small jsp application which I packaged as a war file and deployed to my godaddy user account. The war exploded as expected. In my webapp, under the newly exploded context root, I am able to hit the html files, however, the jsp's are giving me a 404 not found. I have tested this locally

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Johnny Kewl
- Original Message - From: Mikolaj Rydzewski [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 29, 2008 2:50 PM Subject: Re: Embedding custom metadata in a jsp page; access generated Class via reflection? Johnny Kewl wrote: The JSP is well formed

Log4J logging from server not working

2008-07-29 Thread Denis Kezerashvili
I've been stuck with this problem for about a week now. I am trying to get the Log4J working in my servlet. I have tried it on Tomcat 6.0.16 as well as Tomcat 5.5.26. I have followed all the directions in the logging section for both versions. The internal logging works fine in both cases.

Re: address bar shows ip instead of domain name

2008-07-29 Thread nilanthan
Thanks. I have placed the files/codes in the right spots and when I do localhost:8080/mywebapp/rewrite-status I get the urlrewrite page. But what i need is when a user types in the browser www.mydomain.com, it should go to http://00.00.00.00:8080/mywebapp/welcome.action but still display

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Robert Koberg
Since you have a well-formed (XML) jsp and well-formed XML metadata, you could run an (pre-runtime) XSL transformation that combines the two however you need. In other words, instead of combining known metadata at runtime, pre-generate the JSPX in some prior stage. With JSP 2.0, EL and the

Setting up Tomcat as a service

2008-07-29 Thread Riaz, Bob
My environment: Windows XP-Pro Tomcat 6.0.16 I'm trying to set up Tomcat as a service so that I can use my computer as a server for dev/test purposes. Hoping to drop a .war file into \webapps, and make it available that way. I can't start Tomcat using startup.bat because my JAVA_HOME

RE: Setting up Tomcat as a service

2008-07-29 Thread Chris.Wraith
Chances are if permissions are preventing you from setting system variables, they will also prevent you from installing services. Running as an ordinary user rather than an admin will work fine but you'll need to get JAVA_HOME set correctly and start it using the startup.bat script or wrap it in

RE: Setting up Tomcat as a service

2008-07-29 Thread Riaz, Bob
Thanks! Running as an ordinary user, I have set JAVA_HOME to the path where the jdk folder is located; I've also appended this path in the PATH variables - all under User Variables. Do I need to do something else to set JAVA_HOME? -bob -Original Message- From: [EMAIL PROTECTED]

Re: Log4J logging from server not working

2008-07-29 Thread Denis Kezerashvili
Does anybody has any idea what might be causing the problem with Log4J? I've googled for the longest time and there are no leads I found. Denis - Original Message From: Denis Kezerashvili [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, July 29, 2008 9:49:08 AM Subject:

Re: address bar shows ip instead of domain name

2008-07-29 Thread Ken Bowen
In rule, map /mydomain.com to /mywebapp/welcome.action in outbound-rule, map /mywebapp/welcome.action to /mydomain.com Do that for welcome, register, and every other page. Depending on the rules you need, you can make some use of regular expressions. On Jul 29, 2008, at 10:25 AM,

RE: Setting up Tomcat as a service

2008-07-29 Thread Chris.Wraith
Try prepending rather than appending JAVA_HOME\bin to the PATH (bin directory is where java.exe is located and must be on the path). If there is another JVM already on the system path, you'll need to override it so prepending should do this. Also, be careful if there are spaces in JAVA_HOME path

Re: Auth incorrectly redirects to img file

2008-07-29 Thread Jerry Atrick
OK, a bit more info. I might have set up my tomcat incorrectly, tho I'm not entirely sure why. In my login.jsp file, I have a simple image div id=logoimg src=c:url value='/img/logo.gif' / //div which when I try to login, the source is: div id=logoimg src=/myapp/img/logo.gif //div which is

tomcat security and window open js

2008-07-29 Thread daniel steel
all,   we are having issues with IE(?) - javascript - window.open function and tomcat. When we deploy tomcat with basic authentication security enabled and  in our jsp when ever we call window.open(url,.), it asks for username / password (authetication) again. how do we over come

Re: Auth incorrectly redirects to img file

2008-07-29 Thread Felix Schumacher
Am Dienstag, den 29.07.2008, 13:44 -0400 schrieb Jerry Atrick: OK, a bit more info. I might have set up my tomcat incorrectly, tho I'm not entirely sure why. In my login.jsp file, I have a simple image div id=logoimg src=c:url value='/img/logo.gif' / //div which when I try to login,

Re: address bar shows ip instead of domain name

2008-07-29 Thread nilanthan
Thanks Ken for all your help! Ken Bowen wrote: In rule, map /mydomain.com to /mywebapp/welcome.action in outbound-rule, map /mywebapp/welcome.action to /mydomain.com Do that for welcome, register, and every other page. Depending on the rules you need, you can make some use

Problem with Custom Access Log Format

2008-07-29 Thread Jonathan Mast
Hi all, I'm using AccessLogValves to log access to contexts and I'm using the combined pattern documented here: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%20Valve However, I would like to define a custom pattern for logging this information. The problem is that I

Re: Auth incorrectly redirects to img file

2008-07-29 Thread Jerry Atrick
Ah, you are 100% correct! I guess perhaps I've set my directory structure incorrect then. Currently, i have /img/ /css/ /js/ /web-inf/ /web-inf/tld /web-inf/jsp /web-inf/classes /web-inf/lib etc. but since no one could reach anything in the web-inf, i figure that would do. Is there a way to

request parameters mishandle utf-8 encoding

2008-07-29 Thread Lajos Papp
hi, i think there is a bug at handling utf-8 encoded request parameters sent by a html form with get method. i created a simple jsp page: === encTest.jsp === [EMAIL PROTECTED] contentType=text/html pageEncoding=UTF-8% % String query = request.getQueryString(); String queryDecoded = -; if

RE: Problem with Custom Access Log Format

2008-07-29 Thread Radcliffe, William H.
From: Jonathan Mast Subject: Problem with Custom Access Log Format However, I would like to define a custom pattern for logging this information. The problem is that I don't see a pattern code that corresponds to the User-Agent or to the Referrer. Your reference

jsp compile question

2008-07-29 Thread Jq
How can I simulate the way tomcat builds a jsp file? I need to debug a .jsp that fails to build when requested. Thanks.

Re: jsp compile question

2008-07-29 Thread Jim Cox
On Tue, Jul 29, 2008 at 5:05 PM, Jq [EMAIL PROTECTED] wrote: How can I simulate the way tomcat builds a jsp file? I need to debug a .jsp that fails to build when requested. Thanks. If you mean debugging why JSP compilation fails, you can look at the generated servlet code (the .java file)

Re: jsp compile question

2008-07-29 Thread Jq
That would be great. I'll have to find where this is set up on the target site. Thanks.

Re: jsp compile question

2008-07-29 Thread Martin
download TC-5.5.20 src distro inside $TOMCAT_HOME\src\apache-tomcat-5.5.2x-src\jasper\src\bin http://tomcat.apache.org/download-55.cgi look for jspc.bat Martin - Original Message - From: Jq [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 29, 2008

Re: jsp compile question

2008-07-29 Thread Alessandro Ferrucci
I would recommend making the jsp compilation part of your build cycle using jspc (jspc mojo plugin if using maven or just standard invocation of jasper's jspc.bat/sh if using ant Signed, Alessandro Ferrucci :) On Tue, Jul 29, 2008 at 5:47 PM, Martin [EMAIL PROTECTED] wrote: download TC-5.5.20

Re: Tomcat Hosting

2008-07-29 Thread Kerry Jacabson
Hi, Thanks all for your suggestion. I have decided to go with webappcabaret. I was impressed with the free on demand load-balancing trial. Like you said I was up in a couple minutes. I chose the LB-I plan on their production servers. I am able to scale up or down on the fly if needed. Kerry

Re: Committing sendRedirect()

2008-07-29 Thread Tore Eriksson
Hello again, Thanks for the response, but it seems like my phrasing was a bit unclear. The problem is not the second redirect - in fact there will be no multiple redirects. The second redirect is only there for the case when less than 25 hits are found and the first redirect is not called. The if

Re: Log4J logging from server not working

2008-07-29 Thread Thomas Haines
Hi Denis What do you mean by the internal logging works fine in both cases? Does the call from the servlet produce an error in the tomcat logs? Do you call an initializer servlet (load-on-startup) to load the log4j.properties file? Tom On 30/07/2008, at 12:34 AM, Denis Kezerashvili wrote:

Re: Embedding custom metadata in a jsp page; access generated Class via reflection?

2008-07-29 Thread Bill Barker
As Mikolaj pointed out, there is absolutely no way to do this that will be compatible across containers. And, even for Tomcat only, this isn't going to be easy. Tomcat (or, more correctly Jasper) doesn't publish this information in any form that can be reliably read (e.g. JMX). Partially

Re: request parameters mishandle utf-8 encoding

2008-07-29 Thread Bill Barker
It's not a bug, it's a feature ;). Seriously, if you open a bug report for this, it will be closed quickly as either INVALID or as DUPLICATE to a bug that was closed as INVALID. The HTTP spec specifies that header information is encoded in iso-latin-1, so this is what Tomcat uses by default