Allen,Eva allene at oclc.org writes:
* snip *
But even though that response header is explicitly set in the code,
somehow, somewhere it's changed again, because I've determined that the
content type response header looks like this:
Content-Type: text/html;charset=ISO-8859-1
Bad form
Hello,
We are using tomcat 5.0.25 on Red Hat Enterprise Linux server. There two
applications in webapps. We are facing an issue from around 3-4 months
where the CPU utilization by java process (tomcat) goes quite high:
around 400% in every 4-5 days. The application gets very slow and tomcat
Hi Gregor,
I am not sure about the definite solution, but as you
got no other answers, try this:
Drop an additional log4j.jar in the webapps lib folder.
Only this, IMHO, makes the webapp load another instance
of log4j so it can be configured independently.
The log4j.xml would then be searched
Interesting, and I don't know the answer. Doesn't sound
like it's an issue with the mimetype of the main document.
One small point is that you load your stylesheet with
?xml-stylesheet type=text/xsl href=... ?
but the server provides it as application/xml.
AFAIK text/xsl was never registered and
Eva,
This will work. I think the problem in the response.setContentType() is as
simple as a typo. An extra quote seems to have crept in, so:
response.setContentType(text/html; charset=UTF-8)
SHOULD BE
response.setContentType(text/html; charset=UTF-8)
Andy
-Original Message-
From:
The trace is probably in the catalina.out log file (at least that's
where it goes for us running tc5.0.30)
Peter wrote:
hi all;
I just found out that in linux
under the /proc generate a fold 26337
does it the place which the information stores?
any idea?
thanks
On 6/13/07, Peter [EMAIL
can anybody help me in above?
sandip
sandipp wrote:
Hi,
I am using tomcat apache-tomcat-5.5.17,Exadel,JDK 1.5.I am depoying my
application(war file) to external tomcat by running my ant script.
I am getting following error when I try to login to my application.
where
Hello,
I did not get any response on my post from 2 weeks ago.
Even if non-recycling of request/response objects happens only
sporadically and only in webapps where asynchronous responses may happen
before the event processing has finished, it is definitively a bug.
Should I report it as a bug
Garey wrote:
http://library11.berkeley.edu/~gmills/binds_result.xml
http://library11.berkeley.edu/%7Egmills/binds_result.xml
http://library11.berkeley.edu:8080/...inds_result.xml
http://library11.berkeley.edu:8080/noidbind/binds_result.xml
In Firefox 2, the first URL results in the
Am Di, 12.06.2007, 20:32, schrieb Dwayne A. Ghant:
Almost got it loadbalancing almost wokring need minor help
finishing off. Things have chang since I havn't did this in about
3 years. I keep getting error messages in my mod_jk.log file below
every time apache initializes. The connector
i found that.
thanks a lot
On 6/13/07, Jon Wingfield [EMAIL PROTECTED] wrote:
The trace is probably in the catalina.out log file (at least that's
where it goes for us running tc5.0.30)
Peter wrote:
hi all;
I just found out that in linux
under the /proc generate a fold 26337
does it
--On Wednesday, June 13, 2007 11:27:45 AM +0200 Markus Schönhaber wrote:
I don't think this has anything to do with Tomcat. It rather seems to me
that Firefox loads and applies the XSL if the URL referencing it points
to the same server(?) / base URL (?) the XML file comes from.
Drop the XSL
This is an old version so you might be see'ing gc issues. (but that is a
wild guess).
There isn't enough detail to debug, but when the situation arises - do
the following - get thread dumps a look for odd stuff
1) kill -3 tomcat when tomcat is running OK - so you have a base line
2) Then when
i think its more to application problem instead of tomcat problem. Is there
any application hosted inside tomcat that get infinite loop or use a kind of
loop checking something that utilize the thread fully ? try solving that
with the application developer
On 6/13/07, Sumit Gaikaiwari [EMAIL
On 12/06/07, David Delbecq [EMAIL PROTECTED] wrote:
[..]
Stupid suggestion:
Hehe, stupid approach requires stupid solutions ;]
What about one of those approach
1) revise war build process to force inclusion of libs
2) have a server lifecyclelistener that, before loading of a webapp,
copy
Owen Rees wrote:
--On Wednesday, June 13, 2007 11:27:45 AM +0200 Markus Schönhaber
wrote:
I don't think this has anything to do with Tomcat. It rather seems
to me that Firefox loads and applies the XSL if the URL referencing
it points to the same server(?) / base URL (?) the XML file comes
Hi
It seems there is a lot of confusion around new tomcat 5.5 internal
logging. I also have a question:
Is there a way to separate stdout (which is all by default written to
one file catalina.out) to be in files by virtual hosts / context. i.e.
each application could have its own file where
One option is to use log4j (http://logging.apache.org/log4j).
you can specify loggers for each application writing to pre-defined locations.
however, you will also have to maintain some disciplin, since log4j or
the java-logging-api are not able to redirect stdout. That means: Do
not use
On Wed, 2007-06-13 at 13:00 +0200, Markus Schönhaber wrote:
Another comment targeted @ the OP: IMO XSL transformations should be
done on the server side, not on the client side. Doing it on the client
side may be OK if you have a very specific user base and you can be sure
that their clients
Hi,
I'm trying to compile jsvc on a RedHat 4 ES box. I have installed JDK
6 and typing java -version at the shell prompt tells me its installed
OK.
I then compile jsvc with that jdk and it completes ok.
When I try and run the following startup script I get the following
debug output.
I'm just trying to do some simple profiling
on an app running under tomcat 4.
I've enabled profiling using:
JAVA_OPTS=-Xrunhprof:cpu=samples,depth=40,thread=y; export JAVA_OPTS
and am successfully getting a java.hprof.txt file
when tomcat is stopped. (after a 70 second
run, with a perl script
Thanks a lot for quick reply!
To conclude:
1. stdout can NOT be redirected to multiple files and can be only in one
file (usually catalina.out)
2. All uncaught exceptions / System.out from ALL applications are going
to this one file. And we can not do anything about this.
Right?
En l'instant précis du 13/06/07 14:35, paul womack s'exprimait en ces
termes:
I'm just trying to do some simple profiling
on an app running under tomcat 4.
I've enabled profiling using:
JAVA_OPTS=-Xrunhprof:cpu=samples,depth=40,thread=y; export JAVA_OPTS
and am successfully getting a
Could anyone recommend some good stress test software for Tomcat.
Thanks in advance!
Will Holmes
Programmer Analyst
Fremont Insurance Company
Ph: 231-924-0302 Ext. 145
E-Mail: [EMAIL PROTECTED]
hi illja,
On 6/13/07, Ilja S. [EMAIL PROTECTED] wrote:
Thanks a lot for quick reply!
To conclude:
1. stdout can NOT be redirected to multiple files and can be only in one
file (usually catalina.out)
that's right.
the only workaround is to use jsvc
Robert Koberg wrote:
I don't know about konqueror, but Safari supports it. Safari does not
have an interface to apply transformations with JS, however. And Opera
does not support the document function. Though I tend not to like using
a PI in the source XML to trigger the transform (can't
Hi Will,
If you're talking about load testing - we use grinder with lots of
success. Writing scripts for this turned out to be a lot more cost
effective than paying a company to load test.
Rob
Will Holmes wrote:
Could anyone recommend some good stress test software for Tomcat.
Thanks in
JMeter
En l'instant précis du 13/06/07 15:05, Will Holmes s'exprimait en ces
termes:
Could anyone recommend some good stress test software for Tomcat.
Thanks in advance!
Will Holmes
Programmer Analyst
Fremont Insurance Company
Ph: 231-924-0302 Ext. 145
E-Mail: [EMAIL PROTECTED]
Hi:
Would you please let me know how can I set the userPrincipal in request
Object.
I am setting the Principal and roles in Subject (2 Principal object
according to JAAS implementation).
When i run the code in debugger, I see the Subject in reuqest null, also
userPrincipal is null. Also,
Will-
You can also use unittestsgen which will automatically create the Junit
tests based on the supplied folder
http://wttools.sourceforge.net/unittestsgen/
It doesnt cover look and feel and or UI issues but covers the errors of NPE
for Parameters sent in on stack etc..
M--
This email
Thanks Felix
That seemed to be the problem. Who can resist typo's !!! lol
When I say weird I mean that I changed both instances of the tomcat
homes(12)/webapps/ROOT/index.jsp
to read:
Tomcat A
=
html
body bgcolor=red
center
%= request.getSession().getId() %
I've set listings to true on TOMCAT_BASE/conf/web.xml's DefaultServlet, but
that allows directories to be seen for all contexts. Is there a way to set
directory listings for certain contexts but not others?
Thanks.
--
View this message in context:
From: lightbulb432 [mailto:[EMAIL PROTECTED]
Subject: Directory listings on a per-context level
I've set listings to true on TOMCAT_BASE/conf/web.xml's
DefaultServlet, but that allows directories to be seen
for all contexts. Is there a way to set directory
listings for certain contexts
i used badboy to create scripts and then used jmeter 2.2 from jakarta to run
it...
2007/6/13, Will Holmes [EMAIL PROTECTED]:
Could anyone recommend some good stress test software for Tomcat.
Thanks in advance!
Will Holmes
Programmer Analyst
Fremont Insurance Company
Ph: 231-924-0302 Ext.
From: Dwayne A. Ghant [mailto:[EMAIL PROTECTED]
Subject: Re: Help with tomcat 5.0.28 loadbalancing
When I say weird I mean that I changed both instances of the tomcat
homes(12)/webapps/ROOT/index.jsp to read:
Since I have changed both of them the old index.jsp file
keep coming up as
Hi,
I have defined a TLS connector, but I don't want to write the password
for my key store in plain text into the server.xml file. Is it possible
to enter the password via the console during startup? Or is there any
other workaround?
Thanks!
Moritz
Hi Tomcat Users,
We have a little application called Sakai that uses a custom class
loader, much cross context communication and a bunch of other stuff that
is non-standard. Since it is such a beast we are ModJK load balancing 6
tomcat machines. One of which is an administrative machine that
I agree with you that only those userids that actually need to access
the server.xml file should be able to read it.
But still I think it's never a good idea to write a password in plain
text in any file. If the password is stored in plain text and something
goes wrong an attacker could be
Moritz wrote:
But still I think it's never a good idea to write a password in plain
text in any file. If the password is stored in plain text and
something goes wrong an attacker could be able to steal my private key
and use it. And this would be really bad.
Obviously, this depends on your web
I have a web app that connects to my SQL Server 2005 Database with no
trouble using this code:
Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver);
con =
DriverManager.getConnection(jdbc:sqlserver://server-2006;databaseName=v362;user=user;password=dbase);
My application runs
Reich, Matthias wrote:
Hello,
I did not get any response on my post from 2 weeks ago.
Even if non-recycling of request/response objects happens only
sporadically and only in webapps where asynchronous responses may happen
before the event processing has finished, it is definitively a bug.
I am not sure what your exact situation here is, but the user certificate
stuff is only available if Tomcat requests it. And Tomcat only does this if
Tomcat is using certificate based SSL authentication. I don't believe this
will work if an Apache webserver is handling the SSL negotiation.
Mark
Hi:
I am trying to find out how to poulate the userPrincipal from
HttpServletRequest.
I have the following code to retrieve the principal -
HttpServletRequest request = ServletActionContext.getRequest();
Principalprincipal = request.getUserPrincipal(); // get a Principal object
My qn is to
Hi
I'm trying to use the Nio connector with Tomcat 6.0.13 running with Java
1.5.0_07 on OSX 10.4.9. When trying to access port 8080 which was declared with
the Nio connector I just get a blank response and see the following in
catalina.out:
Jun 13, 2007 10:47:02 AM
Hi,
We have multiple applicaitons running on tomcat (24 x 7).
Sometimes, the appications gets undeployed automaticaly without any changes.
Can you please let me know the reason?
Also, at times some applications does not work and we need to restart the
Tomcat server to run those
documented here
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
-Djava.net.preferIPv4Stack=true
Filip
Peter wrote:
Hi
I'm trying to use the Nio connector with Tomcat 6.0.13 running with Java
1.5.0_07 on OSX 10.4.9. When trying to access port 8080 which was declared with
the Nio
you need to call start(), not run()
Filip
Siraj Haider wrote:
Hello, Now I have changed my servlet. I have created a new class
ResultFetcher extended by thread and now I am doing the checking part
inside that Thread.run() method. and calling the new class like this :
ResultFetcher
It's pretty obvious by now that no-one's going to be able to email you
a solution to your problem, which seems unique or at least very
unusual. You're going to have to dig deeply into this one yourself.
Here's what I'd do, if it helps you any. I would track the problem
requests from the browser
Hello,
First the versions:
Apache : 1.3.33
Tomcat: 6.0.13
mod_jk: 1.2.23
I am currently working on upgrading our environment to a newer version of
Tomcat and mod_jk, and seem to be running into an issue with mod_jk and
mod_dir. More specifically, the issue I am running into is the default
Dan D. wrote:
Hello,
snip /
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. This is known as thread hijacking and to many of the
list archiving services and mail clients used by list
shahab [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi:
I am trying to find out how to poulate the userPrincipal from
HttpServletRequest.
I have the following code to retrieve the principal -
HttpServletRequest request = ServletActionContext.getRequest();
Principalprincipal
Moritz [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I have defined a TLS connector, but I don't want to write the password for
my key store in plain text into the server.xml file. Is it possible to
enter the password via the console during startup? Or is there any other
Easiest is to symlink amd64 to i386.
Second easiest is to edit Makefile and change the CPU variable to be i386
and recompile. You could also edit location.c and add the right path and
recompile.
ben short [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I'm trying to compile
if you are setting Transfer-encoding to 'chunked' as in
response.setHeader( Transfer-Encoding, chunked);
then read and follow these directives
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html
Caveat Emptor!
Martin-
This email message and any files transmitted with it contain confidential
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
CVE-2007-2449: Apache Tomcat XSS vulnerabilities in the JSP examples
Severity: low (cross-site scripting)
Vendor:
The Apache Software Foundation
Versions Affected:
Tomcat 4.0.0 to 4.0.6
Tomcat 4.1.0 to 4.1.36
Tomcat 5.0.0 to 5.0.30
Tomcat 5.5.0 to
There is an application deployed that refreshes after every 30 seconds.
After every 30 seconds, it requeries database and fetches the data. This
was a design requirement for this application. Generally large numbers
of sessions of this application are running (450-500).
Regards,
Sumit
Sumit,
Look at the design of the app. Is each session doing a query every 30
seconds? Also is the database on the same server?
I had an app that was originally designed to be for a few users that each
session hit the database. Due to the amount of processing of the data it had
a snowball
Thanks, I've been using Firebug to track the requests and responses from
Firefox, which is how I found the strange chunked transfer encoding behavior.
I'll try some of the other things you mentioned.
- Original Message
From: Len Popp [EMAIL PROTECTED]
To: Tomcat Users List
I'm not setting the transfer-encoding, but thanks.
- Original Message
From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, June 13, 2007 8:47:28 PM
Subject: Re: Erratic HTTP response behavior
if you are setting Transfer-encoding to
59 matches
Mail list logo