I user Tomcat 5.0.28, the browser send server UTF-8 query string like:
QueryString: id=12code=13name=%E5%90%8D%E7%A7%B0
How to configure tomcat default character encoding to UTF-8 ?
Dongsheng Song
-
To unsubscribe, e-mail:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
You should read the documentation for the URIEncoding and
useBodyEncodingForURI options.
Mark
Dongsheng Song wrote:
I user Tomcat 5.0.28, the browser send server UTF-8 query string like:
QueryString:
Hi ,
I read about -Xss JVM option used to set the thread stack size and I
want to use it for tomcat during startup.
My thinking is that if I set it to some smaller value than the default
value, this will save me some memory when large number of sevlet
threads are started by tomcat during high
I have a non-static object initialised in a bean which I subsequently need
to access in a servlet. But exactly how do I do that? The bean itself is
initialised in another JSP so I cannot use
% Object myObj = myBean.getObject(); %
and then store the object in the request/session or application
Hi Gary.
When I asked the same question a while ago the (unofficial) feedback I
got was that 1.2.13 was the latest stable release however, after posting
a bug report into the bug tracking system
(http://issues.apache.org/bugzilla/show_bug.cgi?id=35755), the update I
got was that 1.2.13 was never
Anyone have any ideas where on earth I put my class that implements the
LifecycleListener (In a jar in my WEB-INF/lib) as I don't seem to have a
context in my server.xml.
Server port=8005 shutdown=SHUTDOWN debug=0
Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
Try the jspbook - http://www.jspbook.com . You can download the entire book
after you register. It's written for tomcat 5 using jdk 1.4 but seems to
translate well for tomcat4 (for the most part). This will help.
al
guys i am seriously confused now..
a normal jsp i can display in
Mark Benussi wrote:
Anyone have any ideas where on earth I put my class that implements the
LifecycleListener (In a jar in my WEB-INF/lib) as I don't seem to have a
context in my server.xml.
The context is in WEB-INF/web.xml
as its a webapp specific listener, NOT a global server thing.
Thanks Darryl but I need to implement a LifecycleListener. You have
implemented a ServletContextListener which only gets called when the Content
is started. I need to know when its finished, which is why I am using a
LifecycleListener which should be placed in the server.xml
Original
Gary Moh wrote:
According to http://www.apache.org/dist/jakarta/tomcat-connectors/jk/, the
current stable version is 1.2.10.
Thanks for spotting that. Updated to reflect the 1.2.14 stable.
Now, four additional releases have been made. Does 1.2.10 remain the stable
version?
No.
All
Peddireddy Srikanth wrote:
1) what is the default stack size for Sun JVM on windows (Win 2003
to be more specefic)??
Dont know.
2) Will this setting affect both normal threads and the servlet
threads created by tomcat?? or only normal threads?
I believe there is a 1:1 corelation
Sorry did not read properly..
Have you tried:
for JARs: $CATALINA_HOME/server/lib or $CATALINA_HOME/common/lib
for .class: $CATALINA_HOME/server/classes or $CATALINA_HOME/common/classes
From: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
*Lifecycle Listeners*
If
Sorry did not read properly..
Have you tried:
for JARs: $CATALINA_HOME/server/lib or $CATALINA_HOME/common/lib
for .class: $CATALINA_HOME/server/classes or $CATALINA_HOME/common/classes
From: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
*Lifecycle Listeners*
If
All of the dependencies appear to be valid. I can bring up
http://localhost:8080 and go into the manager and the examples, but not
admin. Also, the msh service that I am installing Tomcat for is not
working in the same fashion. I figure that the users on this list are
probably a lot more
Hi,
I'm running TC 5.0.19 and have 8 virtual hosts on the box.
Each virtual host has a default (/) context with it's app deployed.
When I access tomcat on it's IP address on port 8080, I get the
default tomcat root, with access to the admin and manager servlets.
Whenever I access the
Hi,
I need to setup the following system:
- Tomcat 5.5.9
- Apache 2 (using mod_jk)
- Redhat 7.3
- User authentication against Ldap (using OpenLdap)
- Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a
You can do this with ant very nicely
project name=Learning default=reloadContext basedir=.
target name=reloadContext
get dest=stop.txt
src=http://localhost:8080/manager/stop?path=/Learning;
username=adminUserName password=adminPassword/
Ask tomcat Because if sometime you change the webserver ( in the worst
case ) then you don't need to change anything :)
Tomcat has good support for OpenLdap ... ( I have been using it for 1 year
)
Guru
-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED]
Sent: 27
If you use
Form-based authentication (login page) then tomcat needs to do it...
Regards
Guru
-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]
Sent: 27 July 2005 13:02
To: 'Tomcat Users List'
Subject: RE: tomcat 5 - apache 2 - ldap
Ask tomcat
What about single sign-on for web applications and PHP?
Does tomcat delegate credentials back to Apache so Apache would not
authenticate again?
Thanks
Nili
On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:
If you use
Form-based authentication
Hi List ,
This is actually problem with JNDI . I'm tring to connect to mysql database via
JNDI in tomcat 5.5.9. First of all
i installed tomcat 5.5.9 in my windows 2000 advance server machine and accrding
to guide of
Hi.I am new with Tomcat and JSP and I need your help.
I am trying the following simple jsp:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTML
HEAD
TITLEJSP Expressions/TITLE
/HEAD
BODY
H2JSP Expressions/H2
UL
LICurrent time: %= new java.util.Date() %
LIYour hostname: %=
%= request.getParameter(testParam) % may trow a null pointer so try
%= request.getParameter(testParam) == null ? :
request.getParameter(testParam) %
Regards
Guru
-Original Message-
From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED]
Sent: 27 July 2005 13:23
To:
I'm currently using Tomcat 4.1.24 on WXP. The behaviour that is baffling
me, is that when a request goes out for a non existing physical file, TC
returns a 302 (Moved temporarily = redirect) complete with a Location
for redirection (which is a valid path an the entry point somewhere in
the
Don't use docs based on 4.1 when running 5.5.
Use the 5.5 docs. The way JNDI resources are declared in 5.5 changed as
compared to previous versions. The archives in the tomcat user list also talk
about this too.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html
-Tim
Kane Wilson
On Windows I believe it is 256K. Don't reduce it to 128K unless you are
absolutely sure what you are doing.
Also, sometimes when the JVM does run it trouble allocating stack correctly,
it may throw an exception (actually it may be an OutOfMemoryError) 'can't
create new native thread' It
Thanks Darryl
I have followed this guide but don't know how to add the modify the
server.xml I attached to reflect this. Also are you saying I should put the
class that implements the listener in the server/classes?
I am fine with this but wasn't sure if it would all get loaded together as
the
Tim , it was success. thanx million. earlier i referred 5.0 docs. anyway it was
my fault. again i would like to thank you Tim. It is great help
Kane.
Tim Funk [EMAIL PROTECTED] wrote:
Don't use docs based on 4.1 when running 5.5.
Use the 5.5 docs. The way JNDI resources are declared in
Hi there.
Yeah, this is pretty much what I want, only the problem is:
www.myserver.com:8080/manager exists, but www.myvh_1.com:8080/
manager and www.myvh_2.com:8080/manager, etc. does not exist ...
For some reason the manager servlet is not avbl on my virtual hosts
and the manager on the
It didn't work again!
I have almost the same problem with all my JSP pages(Servlets work ok).
I think is a Tomcat problem;The method handlePageException(Exception)
in the type PageContext is not applicable for the arguments
(Throwable)
I went to servlet code produced and I changed
You can copy the manager.xml ( context definition ) from the
www.myserver.com:8080/ webapps directory to the virtualhost webapps
directory and restart tomcat ... Then it will be available ...
Regards
Guru
-Original Message-
From: Manik Surtani [mailto:[EMAIL PROTECTED]
Sent: 27 July
Thanx for the reply
As far as I know if thread space provided insufficient for JVM it
should throw stack overflow exception is'nt ??
Ok Will this approach works:
say I reduced stack size to 128 K
Then I invoked every possible feature of my web app to see whether any
of my modules are failing bcoz
Hi,
I need some help on the following scenario:
As soon as I start my tomcat server, I need to populate an
application-scoped bean which will have values from the database.
Thereafter I should be able to access the bean across all JSP pages
using the jsp:useBean ... ...scope=application/
Define a servlet say com.guru.servlet.StartUpServlet
And in the StartupServlet
Overide the init() Method
... init() {
super.init()
getServletContext().setAttribute(MyBean, MyBean);
}
And in WEB.XML
servlet
You need to do something like this:
servlet
servlet-nameApplicationStartup/servlet-name
display-nameStartUp Servlet/display-name
servlet-classa.startup.ApplicationStartup/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
One possible solution would be :
U create a servlet which loads on startup.
While defining servlets in web.xml set the load on startup attribute
for some servlet and that servlet will be loaded/executed
automatically by container at startup
U can write ur code for loading and populating the
You're right in that it should work. I can only guess the most likely
reason this might fail is your web.xml configuration. Look for servlet
mappings that might catch the data/test1.html url. Your log files
should have more information. Also check to be sure the tomcat service
has read
Hello,
I can start a forward like this e.g. through a filter:
request.getRequestDispatcher(/test.html).forward(request, response);
But how can I check if the ressource really exists?
request.getRequestDispatcher(/test.html) always gives me a
RequestDispatcher reference. Or is it possible to
If you are looking for a physical resource use
if (null==servletContext.getResource()) {
... yes it exists ...
}
-Tim
Marten Lehmann wrote:
Hello,
I can start a forward like this e.g. through a filter:
request.getRequestDispatcher(/test.html).forward(request, response);
But how can I
Please don't use servlets and the load-on-startup to do this. It is a kludge.
Use a ServletContextListener(). They were intended for just this type of need.
-Tim
Raghupathy,Gurumoorthy wrote:
Define a servlet say com.guru.servlet.StartUpServlet
And in the StartupServlet
Overide the
Hi All.
Can anybody point me to tutorials or any other kind of writeups on new
Struts features - i.e., using POJO instead ActionForms, etc. I've seen
this
http://raibledesigns.com/comments/rd/sunsets/colorado_software_summit_spring_and#comment3
but I'd like to find something more descriptive
Hello,
thanks for your class. I'm not usig it (and I guess its partially wrong,
because you can't simply append the welcome-file the the path-info), but
it inspired me to create a better way: Through a filter. I attached the
filter-class, you would integrate it in the web.xml as follows:
Mark Benussi wrote:
Thanks Darryl
I have followed this guide but don't know how to add the modify the
server.xml I attached to reflect this. Also are you saying I should put the
class that implements the listener in the server/classes?
I am fine with this but wasn't sure if it would all get
From: Sergey Pariev [EMAIL PROTECTED]
Can anybody point me to tutorials or any other kind of writeups on new
Struts features - i.e., using POJO instead ActionForms, etc. I've seen
this
http://raibledesigns.com/comments/rd/sunsets/colorado_software_summit_spring_and#comment3
but I'd like to
Sorry, I have already subscribed to struts list - it's just happen to be
in the same mail folder so I missed the right list :) . I'll rewrite my
questions to be more spicific and post them to the struts list later.
Thanks, Sergey.
Wendy Smoak wrote:
From: Sergey Pariev [EMAIL PROTECTED]
I'm running a stand-alone (no Apache front-end) TC 5.0.19 server on a WinXP
box. I have a webapp that has a /teams directory that contains gameScores.htm,
teamStandings.htm and scoreForm.htm. I also have a /playoffs directory (can
you tell this is a sports-related site?) directory that has
I cannot get this to work. It works for all other sites besides ones
that have j_username j_password. It always comes back to the login
page. I see other messageboards via google that have the same problem,
but there is no answer.
form method=POST action='/cpvs/login'
input type=hidden
On Wed, 2005-07-27 at 12:19, Rob Hunt wrote:
I'm running a stand-alone (no Apache front-end) TC 5.0.19 server on a WinXP
box. I have a webapp that has a /teams directory that contains
gameScores.htm, teamStandings.htm and scoreForm.htm. I also have a /playoffs
directory (can you tell this
jsp-file that is.
On Wed, 2005-07-27 at 12:36, Ben Souther wrote:
On Wed, 2005-07-27 at 12:19, Rob Hunt wrote:
I'm running a stand-alone (no Apache front-end) TC 5.0.19 server on a WinXP
box. I have a webapp that has a /teams directory that contains
gameScores.htm, teamStandings.htm
Hello,
from within a filter, I'm trying to do the following:
request.getRequestDispatcher(req.getServletPath() +
index.faces).forward(request, response);
This works generally fine. The problem is, that attached filters simply
aren't processed for this request. I have two filters in series,
Are you using the autoDeploy or deployOnStartup feature (usually in the
Host configuration in server.xml)? If you manually specify a Context
and use one of the automatic deployment features, you're likely to have
issues with your application; at least I did. Try setting both of those
parameters
1) You need to be running tomcat 5
2) See SRV.6.2.5 Filters and the RequestDispatcher in the servlet spec - it
discusses exactly what you need to do.
-Tim
Marten Lehmann wrote:
Hello,
from within a filter, I'm trying to do the following:
request.getRequestDispatcher(req.getServletPath() +
Dear all
I am trying to create a secure connection between tomcat server and a
browser. I have done exactly the same as the instructions on
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html
but when I tried to connect on the port https://localhost:8443 , an alert
popped up
I'm trying to configure two different apps on the same server - the
Manager app as well as our own. One of my requirements is to open 2
ports for our app and a third different port for the Manager. Any users
connecting to the Manager port should not be able to access the other
application and
I've been working with a cluster of tomcat servers and wanted to change
the useDirtyFlag to false so that the session is replicated after every
request whether or not it was changed.
Here is my modified server.xml fragment:
---CUT---
Cluster
Hello
I will try to be brief
I am running apache 2, tomcat 5
I currently have this configuration
/home/topdomain= www.topdomain.com
/home/topdomain/subdomain1 = sub1.topdomain.com
/home/topdomain/subdomain2 = sub2.topdomain.com
under each subdomain i have users. ie
Thanks. I found out my problem. I wasn't going after
the path with the correct case. I wasn't aware that
Tomcat, by default, is case sensitive. Doohh!
--- David Smith [EMAIL PROTECTED] wrote:
You're right in that it should work. I can only
guess the most likely
reason this might fail is your
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I am assuming that this FAQ entry is still valid for Tomcat 5.5.9:
Why does the memory usage increase when I redeploy a web application?
Because the Classloader (and the Class objects it loaded) cannot be
recycled. They are stored in the permanent
So is there anybody that can help me?
Please guys...I don't know what to do.
On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote:
It didn't work again!
I have almost the same problem with all my JSP pages(Servlets work ok).
I think is a Tomcat problem;The method
Yes, I know you can make many mappings to a given servlet/jsp, but that's not
what I'm asking for.
When an HTTP client requests /playoffs/gameScores.htm, I'm hoping there's some
slight-of-hand trick/feature that will cause Tomcat to serve
/teams/gameScores.htm WITHOUT a redirect so that it
Sounds like something that can be done with frames or iframes
Regards,
Luis
Rob Hunt wrote:
Yes, I know you can make many mappings to a given servlet/jsp, but that's not
what I'm asking for.
When an HTTP client requests /playoffs/gameScores.htm, I'm hoping there's some
slight-of-hand
Look up the RequestDispatcher:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/RequestDispatcher.html
Server side forwards don't use a redirect
On Wed, 2005-07-27 at 16:18, Luis Torres wrote:
Sounds like something that can be done with frames or iframes
Regards,
Luis
Rob Hunt
It's really quite simple - you first need a JDBC driver for Mysql - once you
have that place it in the common/lib directory under tomcat. Restart tomcat
and the driver will be loaded into memory.
Once you have that - use Java code to connect to your db. That's it - you
don't have to fool around
Hello;
An application I'm trying to support runs without error on Tomcat 4.1.24 on
Windows and Tomcat 4.0.3 on HPUX.
When attempting to have it run on Tomcat 5.0.28 on Windows one of the very
large JSP pages fails to compile:
Jul 27, 2005 3:02:46 PM org.apache.jasper.compiler.Compiler
I found the solution;
The method handlePage(Throwable) was introduced in JSP 2.0
The problem was that I had in my classpath a servlet.jar older where
this method was not defined.I deleted it and everything works fine
now.
Thanks for support
Panagiotis
On 7/27/05, Panagiotis Karvounis [EMAIL
Did you generate the RSA key with the changeit password? Did you uncomment
the section with 8443 port configuration? Did you wait long enough for the
server to start (tail -f the catalina.out log and wait for it to see 8443
has started). What is in the catalina.out log? Any errors? On IBM AIX
Yes, I know that an internal forward would work. I just didn't want to
code/test/debug it. Yes, I'm being very lazy here; but I hate to reinvent the
feature if it already exists and it just seems to me that this is something
that probably should already exist (since it can be done in Apache).
Tomcat5 uses jasper 2 which does much better optimizations of handlng custom
tags. If you ahve a page with a lot of custom tags - it might not compile in
tomcat 4.
One alternative (but with a performance penalty) is to split some of the JSP
file into a run-time include (jsp:include).
-Tim
There is nothing in tomcat which out of the box can do this. But there are
many 3rd party filters (or 3 liners which are easy to write) which can do this.
-Tim
Rob Hunt wrote:
Yes, I know that an internal forward would work. I just didn't want to
code/test/debug it. Yes, I'm being very
Hi,
We have an web application running under Tomcat (5.0.28) on Red Hat
Linux and uses Postgres database (8.0).
For database connection pooling we use commons-dbcp (1.2.1) and
commons-pool(1.2.1)
After some time of high-usage, the web application stops responding.
Dumping of the thread stack
Hello,
I have a stock Tomcat 5.5.9 with JDK 1.5. This is a fresh install,
nothing has changed.
I am not able to lookup the default simpleValue environment variable
form JNDI with a simple JSP file. Is there anything else I have to do
to move an Environment variable, from
Currently, I wish to make minor changes to web pages, and the like,
associated with a production application without restarting Tomcat, and with
minimal impact to users. These changes can be made, but are not immediately
observable due to caching. Is there any command that can be issued to
thanks guys
i have managed to solve the problem ..
the solution was staring at my face all the time
i just the mysql-j-connector.jar file into the common/lib folder :)
thanks for ur help
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG
height=16
Hi,
Is this issue described below familiar to anyone who is really
knowledgable of how mod_jk works?
Thank you,
Edmon
Edmon Begoli wrote:
We've noticed with two versions of mod_jk we've been using (1.2.5 and
one older) that if one of the machines
hosting load balanced tomcat gets
Hi All,
I am following the resource -
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html to try and
achieve the above. I have a few questions as I seem to only be getting so
far following the instructions.
I have acquired the mod_jk-1.2.8-apache-2.0.52.so binary from the
From: Paul Wallace [mailto:[EMAIL PROTECTED]
Subject: TC Apache integration
I am following the resource -
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html
to try and achieve the above.
I have added the line Include
76 matches
Mail list logo