Hey guys,
I'm working for the first time with a client that requires I deliver a .war,
and it gets deployed into a shared environment where I have no control and
can't get access to the logs. What can I do from within my .war file to get
a local copy of logs related to my application only
Hi,
I am using tiles for template.
In body jsp got error.
Now I want to configure the error page if any of the included page have
exception.
If anyone have idea about this please help.
Regards
Dinesh Gupta
_
How fun is
Hi All,
I have a configuration where Apache(2.2) --Mod_jk--Tomcat(5.0) for my program.
Now whenever I receive request or response having httpheaders with Japanese
charaters, those are either replaced by ??? or they are replaced by some junk
charateres.
Please see the Japanese headers are
Caldarale, Charles R a écrit :
type Status report
message /~paul/test.jsp
description The requested resource (/~paul/test.jsp)
is not available.
Does the userid Tomcat is running under have access to the file in question?
If not, you'll always get the 404.
Hello and thank you for your
Anthony J. Biacco a écrit :
Remember that over nfs, the client's access to the server will be as
user nobody or nfsnobody, depending on your system, so that user will
have to have access to all those directories/files, unless of course you
use the anonuid/anongid directives in your exports file.
Hi everyone. I'm running Tomcat 5.0.30 + Apache 2.2.3 on a SuSE EL 10.
After a few days running, the CPU load increases, until Tomcat is eating
99% of it, and I need to restart. The last time this happened, I
executed jstack on the Tomcat VM, and I saw most of threads stacks are
like this:
Filip Hanik - Dev Lists wrote:
wireshark.org
Thanks.
I had seen that name several times, but it is only yesterday that
someone told me that this was the new name for Ethereal.
-
To unsubscribe, e-mail:
André,
two questions:
what type of conenction is the servlet using? Is it RMI, Socket, something else?
If you're not happy with Wireshark, there might be an approach which
takes a bit more effort but might work in case the Java-classes are
not obfuscated:
Talking RMI:
- try to decompile the
Diego Manilla Suárez wrote:
[...]
Hi.
No idea about your problem, but in the information you provide, you are
showing the Apache connecting to port 8009 of Tomcat, but for Tomcat you
are showing the Connector that listens on port 8080.
That's probably not very helpful.
Hi André. That was just an error when copying and pasting, I picked up
the wrong connector. This is the right one:
##
Connector port=8009
minProcessors=5 maxProcessors=150
enableLookups=false redirectPort=443 debug=0
protocol=AJP/1.3
Rajat Gupta05 wrote:
Hi All,
I have a configuration where Apache(2.2) --Mod_jk--Tomcat(5.0) for my
program.
Now whenever I receive request or response having httpheaders with Japanese
charaters, those are either replaced by ??? or they are replaced by some junk
charateres.
Please see
I can't find the JSP 2.2 specification, but if you look at JSR-316, you will
see that the basis for Java EE 6 is servlet 3.0, JSP 2.2 and JSF 2.0. I am
not sure it makes much sense to align JSP 2.1 with servlet 3.0.
Martin
On Tue, Mar 17, 2009 at 4:34 PM, Mark Thomas ma...@apache.org wrote:
Hey Mark,
Thanks for your response... I have tried to isolate the issue if it is being
caused by Apache/Mod_jk/Tomcat. Firstly I tried a request to standlone apache
with customize d header having Japanese characters. The requested page displays
the headers in the request. To my surprise Apache
Rajat Gupta05 wrote:
Hey Mark,
Thanks for your response... I have tried to isolate the issue if it is being
caused by Apache/Mod_jk/Tomcat. Firstly I tried a request to standlone apache
with customize d header having Japanese characters. The requested page
displays the headers in the
In that case response is ??user1
Thanks
Rajat
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Wednesday, March 18, 2009 7:07 PM
To: Tomcat Users List
Subject: Re: Issue in sending Request/response http headers containing Japanese
charateres
Rajat
From: Dinesh Gupta [mailto:dinesh.gupt...@hotmail.com]
Subject: error page configuration
If anyone have idea about this please help.
http://www.catb.org/~esr/faqs/smart-questions.html
If you provide real information, you might get a real answer...
- Chuck
THIS COMMUNICATION MAY CONTAIN
--
View this message in context: http://www.nabble.com/R-tp22579395p22579395.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional
Hi,
I am using Tomcat 5.5.26 server for my application. I need to add a host
entry inside server.xml everytime a user registers himself. But the server
does not recognize the new entry without restarting server. Is it possible
to reload the server.xml without restarting the server?
--
From: meamit221 [mailto:amit.n...@aceicon.com]
Subject: Load server.xml without restarting Tomcat 5.5.26 Server
Is it possible to reload the server.xml without restarting the server?
No. However, if you examine the Tomcat source, you can build a webapp to call
the appropriate APIs to
Hello everybody,
I have faced interesting issue recently. Here are details:
I had to implement custom log4j appender that logs particular messages
to database (JDBCAppender was not enough). So I did, using JNDI based
datasources, not a difficult task. Of course I updated server.xml,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
On 3/17/2009 8:02 PM, Filip Hanik - Dev Lists wrote:
wireshark.org
+1
Wireshark does full TCP capture but also understands protocols, so it
will show you only the HTTP details for a particular packet, etc.
- -chris
-BEGIN PGP
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mark,
On 3/18/2009 9:36 AM, Mark Thomas wrote:
RFC2616. You have to use ISO-8859-1.
It's worse than that: it's ASCII, not ISO-8859-1.
HTTP headers are actually delegated (in section 4.2) to RFC822
(Internet Text Messages).
HTTP section 4.2
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Amit,
On 3/18/2009 10:36 AM, Caldarale, Charles R wrote:
From: meamit221 [mailto:amit.n...@aceicon.com]
Subject: Load server.xml without restarting Tomcat 5.5.26 Server
Is it possible to reload the server.xml without restarting the server?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mark,
On 3/18/2009 8:57 AM, Mark Thomas wrote:
Rajat Gupta05 wrote:
Hi All,
I have a configuration where Apache(2.2) --Mod_jk--Tomcat(5.0) for my
program.
Now whenever I receive request or response having httpheaders with Japanese
charaters,
On Wed, Mar 18, 2009 at 3:47 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
Wireshark does full TCP capture but also understands protocols, so it
will show you only the HTTP details for a particular packet, etc.
But will this help to find out the characterset of encoded string in
Christopher Schultz wrote:
Mark,
On 3/18/2009 8:57 AM, Mark Thomas wrote:
Rajat Gupta05 wrote:
Hi All,
I have a configuration where Apache(2.2) --Mod_jk--Tomcat(5.0) for my
program.
Now whenever I receive request or response having httpheaders with Japanese
charaters, those are either
Rajat Gupta05 wrote:
In that case response is ??user1
Rajat,
you are talking about HTTP headers, so below is relevant if you are
using the correct words and refer effectively to HTTP headers.
I think what Mark was tying to tell you before is :
The current HTTP specification
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gregor,
On 3/18/2009 11:08 AM, Gregor Schneider wrote:
On Wed, Mar 18, 2009 at 3:47 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
Wireshark does full TCP capture but also understands protocols, so it
will show you only the HTTP
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
On 3/18/2009 11:15 AM, André Warnier wrote:
So, with Japanese characters in HTTP headers, you are outside of the
HTTP specification, and you cannot expect any webserver (or proxy) to
handle this in any consistent manner.
HTTP headers can
Gregor Schneider wrote:
If I understand André correctly, he wants to find out the encoding
dirung the communication between servlet java-demon - I doubt that
this goes as HTTP over the wire.
True. It's not HTTP.
In fact it is .. well .. nothing, apart from TCP. The servlet just opens
a
I think I've waited long enough with these.
Pointers to JMX and RMI, please ?
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
Silly question.
I wrote a servlet that gets init params from the web.xml and stuffs them
into the request which is the displayed by JSP.
But when I try to make it a string with newline characters it still prints
everything in one line - like newline characters turn into regular space
characters.
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Tomcat for dummies, subtopic Acronyms
Pointers to JMX and RMI, please ?
http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/
http://java.sun.com/javase/technologies/core/basic/rmi/index.jsp
Those are the starting
Try
If this is going to be displayed by a browser then try:
String newline = br;
-Tim
Mighty Tornado wrote:
Silly question.
I wrote a servlet that gets init params from the web.xml and stuffs them
into the request which is the displayed by JSP.
But when I try to make it a string with
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: tracing port to port
how does Wireshark figure out if the contents of a packet
are HTTP or not ? It must be either heuristic by sniffing
the content, or else just by the port in use ?
It does both. The protocol determination
From: Mighty Tornado [mailto:mighty.torn...@gmail.com]
Subject: Newline doesn't work
But when I try to make it a string with newline characters it
still prints everything in one line - like newline characters
turn into regular space characters.
That's the way HTML works. You need to
Hi all,
Using tomcat 6.
Stack traces go to my logs -- however it appears that after a certain stack
trace is reported a few times, it'll stop posting the full stack trace with
line numbers, and just post the exception name.
For instance, I get a NullPointerException with the full stack trace,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mark,
On 3/18/2009 11:09 AM, Mark Thomas wrote:
Go for it. Maybe as a new question along the lines of Why does it have to be
like this?
Done. Now all the research I often re-do when someone asks this question
is collected in one place. I can now
From: André Warnier [mailto:a...@ice-sa.com]
I think I'll have to refresh my TCP knowledge base, to see if there is
any byte somewhere in a TCP header specifying the internet protocol.
But I don't think so.
Sort of :-). The nearest you get is the four bytes specifying the source and
Mighty,
Here is good and small HTML tutorial, which I advice you to read:
http://www.w3schools.com/html/default.asp
-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Wednesday, March 18, 2009 7:41 PM
To: Tomcat Users List
Subject: RE: Newline
Thank you all. The answers were very valuable and I got the thing to work.
On Wed, Mar 18, 2009 at 1:41 PM, Ilya Kazakevich
kazakev...@devexperts.comwrote:
Mighty,
Here is good and small HTML tutorial, which I advice you to read:
http://www.w3schools.com/html/default.asp
-Original
Mighty Tornado wrote:
Thank you all. The answers were very valuable and I got the thing to work.
You don't seem to realise how nice they all were. I tell you, no
technical issue is too complex for these guys.
-
To
Caldarale, Charles R wrote:
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Tomcat for dummies, subtopic Acronyms
Pointers to JMX and RMI, please ?
http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/
http://java.sun.com/javase/technologies/core/basic/rmi/index.jsp
We're using the AccessLogValve extensively and I'm wondering if anyone can
tell me what happens when an active (ie. today's) access log file is
deleted?
Will Tomcat handle this gracefully or go bonkers?
I occasionally delete some log files that are active but are unimportant,
when that happens i
From: Darrell Esau [mailto:darrell.e...@gmail.com]
Subject: full stack trace?
Using tomcat 6.
Which Tomcat 6, exactly? What JVM? What platform?
For instance, I get a NullPointerException with the full
stack trace, then a few minutes later it happens again,
and I only get:
SEVERE:
Jonathan Mast wrote:
We're using the AccessLogValve extensively and I'm wondering if anyone can
tell me what happens when an active (ie. today's) access log file is
deleted?
Will Tomcat handle this gracefully or go bonkers?
Well, did you try ? does it, like, go bonkers ?
In a general sense,
From: Jonathan Mast [mailto:jhmast.develo...@gmail.com]
Subject: Access log behavior
I'm wondering if anyone can tell me what happens when an
active (ie. today's) access log file is deleted?
There's not really any such thing as delete in Linux. When you do an rm, all
that happens is an
Darrell Esau wrote:
Hi all,
Using tomcat 6.
Stack traces go to my logs -- however it appears that after a certain stack
trace is reported a few times, it'll stop posting the full stack trace with
line numbers, and just post the exception name.
For instance, I get a NullPointerException with
Caldarale, Charles R wrote:
Although the paths to the files are no longer accessible, the disk space
they're consuming won't go away until you do the restart.
While this is a bit [OT] probably, how does that work ? I mean, if the
directory entry is deleted, but the original application
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Access log behavior
how is that space reclaimed when the application finally
closes the file ? Is that automatic, or does one need
to run an fsck or the like to really reclaim that space ?
It's automatic. The disk allocation is
On Wed, Mar 18, 2009 at 12:16 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
Which Tomcat 6, exactly? What JVM? What platform?
Tomcat 6.0.13
jjava version 1.6.0_11
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
Linux,
André Warnier wrote:
Darrell Esau wrote:
Hi all,
Using tomcat 6.
Stack traces go to my logs -- however it appears that after a certain
stack
trace is reported a few times, it'll stop posting the full stack trace
with
line numbers, and just post the exception name.
For instance, I get a
I'd like to run two different versions of Tomcat on the same server if poss=
ible.
I have Tomcat 5.0.28 running as a windows service from a non-zipped version=
download. I'd like to be able to run Tomcat 6.0 on the same server.
I'm not trying to setup a test and development environment, I
THERE'S NO context.xml.
Also, since my app is a third party (not properly Tomcat or Apache's)
server.xml does not contain any information ab them.
Server.xml was uploaded.
Thanks for the reply.
Caldarale, Charles R wrote:
From: Rodro [mailto:rodrigo_alle...@ibi.com]
Subject: Re: Tomcat URL
From: Leo Donahue - PLANDEVX [mailto:donah...@mail.maricopa.gov]
Subject: Tomcat 5.0.28 and 6.0.18 on same server
I have Tomcat 5.0.28 running as a windows service from a
non-zipped version= download. I'd like to be able to run
Tomcat 6.0 on the same server.
Use the 6.0 zip download for
From: Darrell Esau [mailto:darrell.e...@gmail.com]
Subject: Re: full stack trace?
Logging.properties:
Nothing unusual there or in server.xml; if the stack traces are missing, I have
to think it's your webapp that's catching the exception and making the decision
about whether or not to log
Leo Donahue - PLANDEVX wrote:
I'd like to run two different versions of Tomcat on the same server if poss=
ible.
I have Tomcat 5.0.28 running as a windows service from a non-zipped version=
download. I'd like to be able to run Tomcat 6.0 on the same server.
I'm not trying to setup a test and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
On 3/18/2009 5:09 PM, André Warnier wrote:
1) you cannot run two http servers listening on the same port(s), on the
same host.
Just to be clear, you /can/ bind to the same port more than once on the
same host if you have multiple IPs: you
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
On 3/18/2009 5:09 PM, André Warnier wrote:
1) you cannot run two http servers listening on the same port(s), on the
same host.
Just to be clear, you /can/ bind to the same port more than once on the
same host if
You guys are good and for that I am thankful. I wasn't trying to be pointed, I
just didn't know.
Since Tomcat5028 was already running as a service, I downloaded the zip file
for Tomcat6018 as suggested. I edited the server.xml file and changed the
Shutdown port to 8006 and the http port to
I am wondering if there are plans to support JSF 2.0 when it is
released.
Doesn't Tomcat 6.0 already support JSF 2.0 if it supports Servlet 2.5? I had
this same question this morning.
https://javaserverfaces.dev.java.net/nonav/rlnotes/2.0.0/releasenotes.html
-Original Message-
Chris,
Christopher Schultz wrote:
[...]
there's a somewhat obvious way to encode your
headers (including Japanese or other non-ASCII characters) so they will
work:
java.net.URLEncoder.encode(text, ASCII)
You'll get a string like foobar%45%67%65%43%45%45%78%69 You just
have to remember
Leo Donahue - PLANDEVX wrote:
You guys are good
We're trying our best, modestly.
...
Thank you very much for your help. Much appreciated.
No problem, we like to show off.
...
I did have one problem when I issued the service command. It gave me the
reply:
The tomcat.exe was not found...
Try java:/comp instead. If that doesn't help, then we'll need more info:
- OS:
- where you got tomcat from (tomcat.apache.org or third party repackage)
- Details of your setup like what's in tomcat's common/lib folder?
- Config (relevant parts of server.xml, the webapp's context.xml and
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Tomcat 5.0.28 and 6.0.18 on same server
The tomcat.exe was not found...
The CATALINA_HOME environment variable is not defined correctly.
This environment variable is needed to run this program
You do not (and should not) set the
From: David Smith [mailto:d...@cornell.edu]
Subject: Re: JNDI: Name java:comp is not bound in this Context
Try java:/comp instead.
That's not in the spec; what is in the spec is java:comp/env, so java:comp
should work.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Issue in sending Request/response http headers
containing Japanesecharateres
java.net.URLEncoder.encode(text, ASCII)
You'll get a string like
foobar%45%67%65%43%45%45%78%69
Yes, but in my humble opinion you would be, as
From: David Smith [mailto:d...@cornell.edu]
Subject: Re: JNDI: Name java:comp is not bound in this Context
My copy of the spec is at work at the moment
What? You use paper?
Someone should probably fix the docs at
From: Caldarale, Charles R
Subject: RE: JNDI: Name java:comp is not bound in this Context
For all I know, a leading slash might be ignored
It looks like java:comp/env and java:/comp/env are equivalent; the leading
slash is indeed ignored, and the same object is retrieved for either name.
Hi,
In my application, using tiles
at the run time from the database we pick the the jsp file.
But some times exception occurred.So that if any include page got exception I
want to go to the error page.
In my case blank page comes or some time header displayed body part is blank.
Now My
Thanks everyone for there comments.
I was actually comparing the behavior between IIS and Apache, since IIS(5/6) is
able to handle Japanese characters inside the headervalues not the header name.
Thanks
Rajat
-Original Message-
From: Caldarale, Charles R
Thanks Charles for quick reply.
However, can you assist me with some hints that can help me to do so (with
Tomcat APIs)?
Caldarale, Charles R wrote:
From: meamit221 [mailto:amit.n...@aceicon.com]
Subject: Load server.xml without restarting Tomcat 5.5.26 Server
Is it possible to reload
72 matches
Mail list logo