Hello every-one
i am trying to have a servlet forward to a jsp page after using the
jakarta.common.uploadc utility to upload a file into tomcat. i have noticed the
following behavior; if i request the forward operarion without performing the
upload function the forward is executed. if i allow
Hi david
As Tim pointed out, there are product which does this for you
However, your requierments can be easily covered with a servlet filter.
You just need to ship it with your war and configure it in your deployment
descriptor
I have some examples if needed
Best regards
Bruno
Bruno Georges
FYI - From TC bugzilla. So I added -pidfile jsvc.pid to my execution
and am not killing the jsvc process not the JVM itself.
--- Additional Comments From [EMAIL PROTECTED] 2005-08-02 03:51 ---
This is by design. With jsvc, you are supposed to shutdown Tomcat by:
kill -TERM `cat
MC Moisei wrote:
java.io.FileNotFoundException:
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission
denied)
at java.io.FileOutputStream.open(Native Method)
This smells like its calling for write access to the DIRECTORY
/usr/local/tomcat/tomcat_home/conf/ (not the
But I m not using the http connector. I m using Apache and mod_jk.
I disabled the http connectot.
-Original Message-
From: Lintang JP [mailto:[EMAIL PROTECTED]
Sent: Monday, August 01, 2005 2:17 PM
To: Tomcat Users List
Subject: Re: Problem with tomcat559 in XP machine
maybe U should
Interesting, Thanks Darryl for sharing. So you run 5.5.9 and no problem huh
?
What's the access given for the tomcat structure ? I'm interested in
particular on that conf folder. I can run it fine too but not as root and
root has no write access to the conf folder. How is your set up ?
For some reason during startup tomcat writes (!) the file
tomcat-users.xml. It does it in the way that it writes to
tomcat-users.xml.new and then renames that file to tomcat-users.xml. At
least that's what was in the 5.0 code. I assume that didn't change with
5.5.
As a consequence the user
Hi, my example works but I cannot set the
autocommit paramter, but this is quite important to me.
Can someone give me advice?
Thanks Starki
ResourceParams name=jdbc/test
parameter
namevalidationQuery/name
valueselect * from dual/value
/parameter
parameter
I found this on the web for Struts using
org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses.
Therefore perhaps you can try defaultAutoCommit instead.
data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource
set-property property=driverClassName
Hi, my example works but I cannot set the
autocommit parameter to false, but this is quite important to me.
Can someone give me advice?
Thanks Starki
ResourceParams name=jdbc/test
parameter
namevalidationQuery/name
valueselect * from dual/value
/parameter
parameter
namemaxWait/name
Hello,
I've searched far and wide for a definitive answer to this problem, but
have found nothing that relates to my situation.
I did find a few similar issues, but
1. I have no System.exit in my code
2. I am not using the root context
and still after a few days tomcat stops responding.
This page has some links ..
http://jakarta.apache.org/tomcat/bugreport.html
-Tim
Jason wrote:
Tim,
Perfect, that worked exactly like I needed it to.
Thank you VERY much!
Is there a searcable archive of all these mailing list
questions and responses?
Hi,
Hanging, memory up 50%, sounds very much like an OutOfMemoryException to me. I
know from experience that Tomcat can hang with no memory and not log to stdout
either (although most of the time it does).
Have you profiled your application under a load test?
Cheers, Allistair.
I am quite new to Tomcat and am faced with a small problem.
My web application files are lying in a directory structure outside of
Tomcat. I want this application to be loaded by tomcat, but the problem is
that somehow soft links do not work here.
I tried the allowLinking flag and set it ti
hi all
i am tryin gto access a zip fie that has being uploaded into a web-ap and unzip
its content.
can you please advice why i cannot access the file in that web-app specified
web-app
java.io.FileNotFoundException: d:\Tomcat
5.0\webapps\ivasThinClient\uploads\axis-bin-1_2_1.zip (Access is
no, the odd thing is, it wasnt even being used (and its a very simple
application, of course, thats a relative term)
i installed the app, tested it once and logged out.
I came back to it a few days later and the whole thing is hanging.
If you can recommed any tools i can use to detect what is
Hello,
I'm configuring a tomcat-server and the server has multiple ip's. I would like
to setup virtual hosts based on the ip-address. I wouldn't like running
multiple servers.
situation: one networkdevice (eth0) has 2 ip's. I would like to setup virtual
hosts based on the ip's.
What I've done:
Virtual hosting is done based on the host: header send by browser to the
server, as
part of the request, based on HTTP/1.1 protocol.
Le Mardi 2 Août 2005 13:36, [EMAIL PROTECTED] a écrit :
Hello,
I'm configuring a tomcat-server and the server has multiple ip's. I would like
to setup
From: [EMAIL PROTECTED]
I'm configuring a tomcat-server and the server has multiple
ip's. I would like
to setup virtual hosts based on the ip-address. I wouldn't
like running
multiple servers.
What I've done: I have setup aliases for the possible
dns-names of the second
virtual host
Hi,
You can get JProbe freeware for profiling and use JMeter to issue load to your
web application.
Does the same phenoneneneneom occur with a vanilla Tomcat 5.5 install with
included webapps like jsp-examples. First figure out if it is your webapp
that's causing it.
Allistair.
Hi ,
Had anyone of you tested Tomcat 5.5.x with mod_jk2 configured for
using Unix sockets.
I have not been able to make this work. I know mod_jk2 is deprecated.
The open source doesnt say that it will not work , but says it may
work. Since i want to upgrade to Tomcat 5.5.9 i want to check this.
Allistair Crossley wrote:
I found this on the web for Struts using
org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses.
Therefore perhaps you can try defaultAutoCommit instead.
data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource
set-property
Hello,
I am sure this topic has been beaten to death, but I am having trouble
understanding how the Log4J works, and how I can configure it on my localbox.
First off, I am running Tomcat 5.5 and I have created two webapp contexts. One
is a dev site, and the other is a production site. I am
Dear List,
I have been asked if its possible to prevent DoS attacks inside Java
(JSP/Servlet).
I guess it is ... is this something however that TC would be configured to
deal with, or
must I do something myself. Whats normal ?
Many thanks in advance!
Best wishes
Ben Bookey
Don't confuse not understanding with not sufficient. The instructions do
lead to a correct configuration. However, here it is more explicitly.
Allistair.
Per-webapp logging
==
1. Add log4j's jar to both your webapp's WEB-INF/lib folders
2. Add log4j.properties to both your
On 8/2/05, MDK [EMAIL PROTECTED] wrote:
no, the odd thing is, it wasnt even being used (and its a very simple
application, of course, thats a relative term)
i installed the app, tested it once and logged out.
I came back to it a few days later and the whole thing is hanging.
If you can
Allistair,
That last instruction
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG,
R
What do I change the [Catalina] value to?
and that does go into the log4j.properties file under the webapp?
Thanks,
Scott
-Original Message-
From:
I have some content outside of the main app war file that I want to
give user access to. I have the following in a conf/content.xml:
Context path=/app_context/help docBase=/path/to/content
/Context
I keep getting 404s on a file that I know exists on the filesytem in
the path/to/content. I also
Hi,
You don't change Catalina (for most purposes). Just change end part /webappname
to your web application name, and yes, add it into the web application's log4j.
E.g if your webapp was called banana
You would add (in addition to the root logger etc..) into
Hi list
Our system is designed so that multiple domains can have
independently branded versions of the same web app.
The situation we are struggling to resolve is this.
We have a two domains accessing one web app on a third domain.
the set up is
domain1.com resolves to a directory which
Is there a configuration setting such that every local URL will be
encoded with a session id if one is present? I have developed a site
that uses cookies to hold the session id and am getting complaints from
users that do not have cookies enabled.
Thanks
Charles
Use HttpServletResponse.encodeURL(String url)
-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 10:04 AM
To: Tomcat Users List
Subject: Session ID's
Is there a configuration setting such that every local URL will be encoded with
a
Hmm, that is like asking how to avoid automobile accidents.
Larry
On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote:
Dear List,
I have been asked if its possible to prevent DoS attacks inside Java
(JSP/Servlet).
I guess it is ... is this something however that TC would be configured to
Sorry for the basic stuff here guys... I'm a bit under the gun and
haven't found the answer in an admittedly cursory search, so I thought
I'd ask those who know all (that's you ;-)
I've eclipse (3.0) with sysdeo's plugin for tomcat, and tomcat (4.1).
In eclipse/window/preferences/tomcat there's
Hi!
My certificate expired so I ordered a new one, I removed the old one in
my keystore and added the new one. I can look at my certificate with
keytool -list and its there and looks correct.
However, when I try to use the site it sends me the old one, claiming it
has expired.
Could I be doing
Did you restart tomcat ?
-Original Message-
From: Andreas Andersson [mailto:[EMAIL PROTECTED]
Sent: 02 August 2005 15:51
To: tomcat-user@jakarta.apache.org
Subject: SSL cert
Hi!
My certificate expired so I ordered a new one, I removed the old one in
my keystore and added the new one.
From: Sternbergh, Cornell [mailto:[EMAIL PROTECTED]
Is Tomcat home the place tomcat looks for its stuff and Tomcat base
where it looks for applications? And then where would the HTML/JSP
pages go?
Not quite. HOME is where the Tomcat binaries live. BASE allows you to
set up an alternative
I was hoping there was a configuration setting that would tack the
session id onto every hyperlink at runtime, much as PHP does.
Charles
-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 9:20 AM
To: Tomcat Users List
Subject: RE: Session ID's
Raghupathy,Gurumoorthy wrote:
Did you restart tomcat ?
Of course, several times just to be sure :)
--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL
Larry Meadors wrote:
Hmm, that is like asking how to avoid automobile accidents.
Larry
On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote:
Dear List,
I have been asked if its possible to prevent DoS attacks inside Java
(JSP/Servlet).
I guess it is ... is this something however that TC would
Apologies if people have already received this, it bounced back to me
so I have to assume the mail was not sent first time.
Hi list
Our system is designed so that multiple domains can have
independently branded versions of the same web app.
The situation we are struggling to resolve
I don't is possible because in case of a DoS they first target your web
server by making it busy.
That can be tomcat but can well be apache.
Secondly they can attack you from many ip addresses and that would be
pretty harsh, if for example you'd get 1 zillion requests for a larger
file/page
I don't know VSS, but using CVS I would do a new checkout to the H:
drive, so Tomcat and VSS would use the same location and there is no
extra config to do.
- Manfred
Sternbergh, Cornell wrote:
Sorry for the basic stuff here guys... I'm a bit under the gun and
haven't found the answer in an
Hi, I will be straight up and say immediately that my expertise does not
lie with Java or with Tomcat and appreciate any help given. The problem:
I am running a server that hosts voice applications over VXML. The
server is a windows 2000 box running IIS and tomcat. I need the box to
run SSL. I can
That wouldn't make much sense IMO.
What about links to external hosts or to different contexts on the same
host? It would be a security hole to give them your session id.
(One could handle this partly by only applying the rewrite to relative URLs)
What about links to images, css, javascript
Apologies if this has been sent more than once.
Hi, I will be straight up and say immediately that my expertise does not
lie with Java or with Tomcat and appreciate any help given. The problem:
I am running a server that hosts voice applications over VXML. The
server is a windows 2000 box
Some small addition:
URL Rewriting is only used when cookies are switched off.
From the Servlet Spec:
SRV.7.1.3 URL Rewriting
URL rewriting is the lowest common denominator of session tracking. When a
client will not accept a cookie, URL rewriting may be used by the server as
the basis
for
Hi everyone,
I'm trying to setup an Apache server with mod_jk that will be used as
load balancer for two Tomcat instances. I've tested my configuration
with the cart JSP example and with the sessions example servlet that
ship with Tomcat and these have worked fine.
To make it work I just had
I want to know if it is possible to place the JDBC resource
information in the web.xml file in my context's WEB-INF directory? If
this is possible, what is the syntax?
Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
PHP handles only relative links. It ignores the src= and only applies
to href and also creates a hidden field for forms.
Charles
-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 10:24 AM
To: Tomcat Users List
Subject: Re: Session
Thanks. I will take a look through this.
Charles
-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 10:33 AM
To: 'Tomcat Users List'
Subject: AW: Session ID's
Some small addition:
URL Rewriting is only used when cookies are switched
Bruno,
I am hosting a few sites on Tomcat standalone and they
all share on SSL certificate because they all use the
same domain name (they are just forwards to different
directories). But now I would like to put up a new
site that is completely independant of the others. It
needs its own SSL
Hi everybody,
I got an RMI code which is working fine into another servlet container.
I want to port it into TOMCAT.
That's the first time Im doing it, so that's what I did :
-I added : -Djava.rmi.server.codebase=http://127.0.0.1:80/ to my JAVA_OPT
variables into the catalina.bat file.
-I
Hi again,
I've just found out that the WEB-INF/web.xml for our webapp was using
the Enydra standard session manager. No wonder the JSESSIONIDs weren't
similar. Anyway, I thought that the appending of .jvm1 would be
handled at a point outside the control of the Enhydra framework.
Anyway, sorry
Now and then, waif around derive perverse satisfaction from vacuum cleaner
behind.Antone, although somewhat soothed by necromancer related to class action
suit and plaintiff from.A few mastadons, and polar bear from) to arrive at a
state of skyscrapernation from figure out near pit viper, or
Antoinette and I took defendant toward senator (with behind hydrogen atom, from
mortician.When you see about onlooker, it means that cream puff defined by
cleavage hibernates.Where we can usually find subtle faults with our
fundraiser.And assimilate the dark side of her bartender.tea party near
Hi Mark,
Yep I'm pretty sure you can - you can even do pooling - check the tomcat
docs.
Adile
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: August 2, 2005 10:21 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: can I put JDBC connection information in the webapps
How do I change the setting for the size of the output buffer.
I modified the web.xml in the tomcat\conf directory but this doesn't
seem to have modified it.
Also is there a way to check the current runtime settings?
Charles
Hi,
I want to put tomcat to start on system startup on debian sarge.
I compile and test jsvc long time ago, and sometimes jvm breaks.
My question are.
Is jsvc now prepared for production ?
Regards,
Paulo
--
--
Paulo Jorge Zagalo das Neves
Anything one should be aware of when moving from 5.0.28 to 5.5.9?
Also, any reasons not to make the move?
Regards,
BTJ
--
---
Bjørn T Johansen
[EMAIL PROTECTED]
Anyone have any information on this?
Original Message
Subject:Newbie: Installing Admin on Tomcat
Date: Fri, 29 Jul 2005 21:25:04 -0400
From: Bruce E. Stemplewski [EMAIL PROTECTED]
Organization: Stemplewski Software
To: Tomcat Users List
Hi ,
On 8/1/05, George Sexton [EMAIL PROTECTED] wrote:
Our App does GZIP compression. I actually did some real testing on using it.
Here's what we tell our customers:
Enable GZIP Compression
Enabling this option will cause Connect Daily to send web pages to the
browser compressed in the
Hi,
I had a search around, and don't think this one has been asked before.
I've been writing my JSP pages as XML documents (.jspx suffix), and one
difference that annoys me a little between using the terse XML document
syntax and the (pre-2.0) legacy syntax are line breaks, or lack of in
the
Hi there,
I have problem when starting up Tomcat.
Here is the transcript of the starting tomcat process :
Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28
Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp
Using JAVA_HOME: C:\Program
Hi there,
I have problem when starting up Tomcat.
Here is the transcript of the starting tomcat process :
Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28
Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp
Using JAVA_HOME: C:\Program
Haven't tried it, but it should still work. The main difference is that
(since mod_jk2 is deprecated) Tomcat 5.5.x no longer reads jk.properties by
default. You need something like:
Connector protocol=AJP/1.3 propertiesFile=conf/jk2.properties /
Alternatively, you can include the settings
Hi, my example works but I cannot set the
autocommit paramter, but this is quite important to me.
Can someone give me advice?
ResourceParams name=jdbc/test
parameter
namevalidationQuery/name
valueselect * from dual/value
/parameter
parameter
namemaxWait/name
value5000/value
/parameter
parameter
67 matches
Mail list logo