Hi,
I have deployed my application on a clustered environment and used session
created event to monitor the number of users login to each machine (Using
SNMP MIB counters). But once a user is login to one machine counter gets
updated in every machine. I believe this is due to session replication.
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 wh
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 this
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
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
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
--
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.2
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"
Sent: Tuesday, July 29, 2008 5:25 PM
Subject: Re:
That would be great. I'll have to find where this is set up on the
target site.
Thanks.
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
How can I simulate the way tomcat builds a jsp file?
I need to debug a .jsp that fails to build when requested.
Thanks.
>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
(http://tomcat.apache.org/tomc
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 = "
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 do
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 do
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 mak
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
>
>
>
> which when I try to login, the source is:
>
>
>
> which is what I expec
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 this?
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
which when I try to login, the source is:
which is what I expect.
The problem is, I can't actually view the logo.gif file
this is a basic login page:
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
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, nilant
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:
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]
[mailto:[E
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 y
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 v
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 standard
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 http://w
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. Howeve
- Original Message -
From: "Mikolaj Rydzewski" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
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 XML so
It's not
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 us
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
-
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.
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]>
---
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 sep
- Original Message -
From: "Simon Kitching" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
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 wrote:
>> Or pe
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
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
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 co
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 on
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)
Regards
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 <[
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 pa
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
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 a
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
To: Tomcat Users List
Subject: RE: Coyote connector and documentation..
Date: 28/07/08 16:52
> > From
45 matches
Mail list logo