Jimi,
try /manager/html
PJ
[EMAIL PROTECTED] wrote:
Hi all,
I have been using Tomcat for some time now, but I still feel like a newbie in
most regards. At least when it comes to configuring it.
Tomcat has been working great, together with Apache 2, for several months now.
But now, I find mys
t;
tcpSelectorTimeout="100"
printToScreen="false"
expireSessionsOnShutdown="false"/>
PJ
Sivaram Kumar wrote:
Hi peter,
for you information this is my cluster code.it working fine for me.
Hi All,
I am getting an NPE on cluster start with 5.0.30-beta any ideas?
ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to
start cluster.
java.lang.NullPointerException
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
at
I can get a session to persist but there is a delay. Is there a way of
forcing Tomcat to flush the session to the DB on every change? The goal
is use the DB for session replication rather than multicasting.
Thanks,
Peter Johnson
Peter Johnson wrote:
Hi All,
Does anyone have a working
Hi All,
Does anyone have a working config for JDBC persisted sessions that I
could look at as the information in the docs seems a little disjointed.
Also, for those that have it working, what has been their experience
with it?
Thanks,
Peter Johnson
Not exactly. Apache itself can't do load balancing. You could use a
dedicated Tomcat instance to loadbalance to backend Tomcats in the same
way as you described using Apache however either way you are still left
with a single point of failure. Neither Tomcat nor Apache can
loadbalance by themse
Or write a valve/filter to do the same thing
PJ
Antony Paul wrote:
You use Tomcat standalone or along with Apache.
In Tomcat stand alone you can
1, In index.jsp or whatever be the welcome page check
response.isSecure() then redirect.
2. There is an option in web.xml in security element
transport-
As shown in the examples
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/rofDB");
Parsons Technical Services wrote:
Try "jdbc/rofDB"
Doug
- Original Message - From:
not find the document in the normal public_html space.
Can you do something with this info?
Thanks a lot for your hints.
Klaus
Peter Johnson schrieb:
Klaus,
Taking a tone with people gives you less chance of a response.
Are you doing any url rewriting in Apache?
PJ
Klaus-F. Kaal wrote:
_In my Tomca
Klaus,
Taking a tone with people gives you less chance of a response.
Are you doing any url rewriting in Apache?
PJ
Klaus-F. Kaal wrote:
Hi,
I tired to get an answer to my serious questions for quite a while ( I
assume, if a question is not answered within a few days, it will be
lost ).
This mai
Hi all,
how would one go about mapping say /images/* to the default servlet to
override an application mapping of /* to appServlet?
PJ
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
I've run Tomcat 5.0.x and 5.5.x on the 1.5 version of JRockit however it
is worth noting that it breaks anything using CGLIB e.g. Hibernate so
use with care. Apart from that though, I have found it to run very nicely.
PJ
Allistair Crossley wrote:
Hi,
I've run Tomcat 5.0.x without any trouble on
Filter --> Servlet --> Servlet ---|
<--- Filter <-- Servlet <---|
However, after the response if filtered the first time it isn't applied
again on the second round so hence it would appear not to be being applied.
Can't see why it is doing a second round th
Correction it is doing
context1 context2
|--| |--|
--> Filter --> Servlet --> Servlet |
<-- Servlet <--------|
Peter Johnson wrote:
Hi all,
I am including another context's servle
Hi all,
I am including another context's servlet output however the filter that
should be applied isn't.
e.g. seems to be doing
context1 context2
|--| |--|
--> Filter --> Servlet --> Servlet |
<-
It is me ... I wasn't calling the other context rather just a resource
within the context
Peter Johnson wrote:
Ok, I gave this a test run, so from app1 I called
req.getRequestDispatcher("/app2").include(req,res);
However, it seems that doing this loops i.e. re-requests app1 rathe
Ok, I gave this a test run, so from app1 I called
req.getRequestDispatcher("/app2").include(req,res);
However, it seems that doing this loops i.e. re-requests app1 rather
than passing the request to app2. It this an error with Tomcat or a
misunderstanding by me?
PJ
Peter Johnson wrote
x27;m sure you'll get it running. :)
On Wed, 02 Mar 2005 13:52:26 +1100, Peter Johnson <[EMAIL PROTECTED]> wrote:
4.1.30 ... I read that but it was in relation to 4.0.x
Jason Bainbridge wrote:
On Wed, 02 Mar 2005 12:31:50 +1100, Peter Johnson <[EMAIL PROTECTED]> wrote:
4.1.30 ... I read that but it was in relation to 4.0.x
Jason Bainbridge wrote:
On Wed, 02 Mar 2005 12:31:50 +1100, Peter Johnson <[EMAIL PROTECTED]> wrote:
That was it ... it needed to be between the taglib and
security-constraint elements. Now I am getting the ol' Cannot create
JDB
it would seem to be as simple as
req.getRequestDispatcher().include(req,res);
PJ
Peter Johnson wrote:
Thanks for the quick reply QM ...
I'd be writing both the "parent" and "child" apps. Basically the
parent would act as a broker to the child apps and perform the
"
do
this so that all "child" apps may have a common look-n-feel and there
would be a global navigation.
I will look into RequestDispatcher#include() as it sounds similar to
what I'd be after.
PJ
QM wrote:
On Wed, Mar 02, 2005 at 11:53:52AM +1100, Peter Johnson wrote:
: I was ju
That was it ... it needed to be between the taglib and
security-constraint elements. Now I am getting the ol' Cannot create
JDBC driver of class '' for connect URL 'null' error.
classes12.jar is in common/lib so it should be able to find it
Jason Bainbridge wrote:
Does your web.xml have it's
Tomcat 5.5.7
Hi all,
I was just wondering if it was possible to pass a request to another
context within the same host and capture the output. If it is, any
suggestions on the best way to do so?
Basically, I am planning to use SiteMesh for site templating however
would prefer to deploy many of
Hi All,
Just wondering if I could borrow ppls eyes to see if someone else can
spot what I've missed
common/lib/ --
activation.jar
commons-collections.jar
commons-pool-1.1.jar
jdbc2_0-stdext.jar
jta.jar
naming-factory.jar
ant.jar
commons-dbcp-1.1.jar
jasper-compiler.jar
I haven't really come across hardening documents for Tomcat or any Java
container for that matter. That is probably because Java by design is
relatively secure as it runs within a virtual machine so it isn't
possible to escape code etc and breakout into the OS kernel space.
So basically run Tom
the META-INF is only valid within a WAR file.
PJ
Tony LaPaso wrote:
All,
I'm using TC 5.0.30.
I'm looking at this quote regarding META-INF/context.xml from the TC docs
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html):
"Instead, put them in the META-INF/context.xml directory of
Define the connection pool in either META-INF/context.xml (if using a
WAR) or ${catalina_home}/conf///.xml
And the link by the usual resource ref in the web.xml
Remember that the JDBC drivers need to be in common/lib
PJ
Sumpter, Chuck wrote:
Environment = Tomcat 5.5.7, Java 1.5_01, IIS (win2k)
e:
PJ,
I'm not sure what you are suggesting, but I did try turning off
HTTP 1.1 in IE and still get the same behavior.
Thanks,
Joe Hunt
-Original Message-----
From: Peter Johnson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 2:48 PM
To: Tomcat Users List
I think that is HTTP/1.1 for you ... but the details are a little foggy
PJ
Hunt, Joseph (OVBU- Ft.Collins) wrote:
Ladies and Gentlemen,
I have created an html document that contains several s
that all refer to the same JSP page. The JSP simply
waits(Thread.sleep()) 5 seconds and then retur
The admin app appears to be broken in 5.5.4. I have tried 5.5.6 but it
also seems to be having issues commiting changes. If you are just
starting out try using 5.0.30 which is likely to be voted stable next week.
PJ
Troy Simpson wrote:
I am using Tomcat 5.5.4 with jdk1.5.0_01.
I am currently rea
Hi Srinivas,
What you are after is a shared / networked filesystem like NFS Coda for
*nix.
PJ
Srinivas Rao Ch wrote:
Hi,
I successfully configured my clustering setup with mod_jk2 and it is running
fine. Now the problem is I have some properties files in my tomcat web
application which gets modi
Ok so it looks like it has always been called test
PJ
Peter Johnson wrote:
I have 5.5.4 and the admin apps tree navigation appears unusable.
Could it have something to do with the following
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get
module name for path /setUpTree.do
Ok so it looks like it has always been called test
PJ
Peter Johnson wrote:
I have 5.5.4 and the admin apps tree navigation appears unusable.
Could it have something to do with the following
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get
module name for path /setUpTree.do
I have 5.5.4 and the admin apps tree navigation appears unusable. Could
it have something to do with the following
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get
module name for path /setUpTree.do
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Module
name
idn't confuse things too much.
Doug
www.parsonstechnical.com
- Original Message - From: "Peter Johnson"
<[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 07, 2004 5:18 PM
Subject: Re: simplest way to cache jsp pages in
I was looking into this option as well but one must be careful about
session IDs if they are used as the cached page will contain the cookie
header.
We use a background process on the server to generate files every 60s
and use a "-s" rewrite condition and then rewrite rule to serve.
PJ
Tim Fun
Sarah,
I recall a post a week or so ago regarding the contentType string losing
the space after the ;
This may be causing the issue.
PJ
Sarah wrote:
Hi,
I need to use jsp to display some data in Japanese character from MS SQL
server database. I have already set the encoding in jsp to be:
<%@
Sounds like a DoS vulnerability and given the age of the software in
question the best suggestion that can be offered would be to upgrade to
a minimum of Tomcat 4.1.x and Apache 1.3.x, However, you would be better
off going to Tomcat 5.0.28 and Apache 2.0.52.
If you are going to need to do some
Depending on how many you are talking about you could have a dedicated
image host (or virtual host) which solely serves images.
PJ
D. Stimits wrote:
I'm looking for a "good" or "best" practice to deal with site-wide
logo type files...things that will never change, and that every app
will want a
Use clustering.
Lee Chin Khiong wrote:
How to validate a session created on one server ?
Means if I have an apps running on 1st server then another apps runnning on
the other server, of course I don't want them to re-login.
Any idea ?
-
Joseph,
Our site runs using Apache (1.3.x) and Tomcat (4.1.x) on 5 servers using
LVS (www.linuxvirtualserver.org) for load balancing. This setup performs
over 20M page impressions per month although we do cheat slightly by
caching the front page every 60s and letting Apache serve it as a static
ket option at the top.
Thanks,
Troy
Peter Johnson wrote:
Troy,
When they are running does
/global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist?
Why not just use a TCP socket as it allows for easier separation
later (i.e. just change IP address).
PJ
Troy Simpson wrote:
This appears to be a
Troy,
When they are running does
/global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist?
Why not just use a TCP socket as it allows for easier separation later
(i.e. just change IP address).
PJ
Troy Simpson wrote:
This appears to be a common problem in the mail archives.
I have having this
Hi Peter,
Your *application* is "LearningTree" so all class files go into
LearningTree/WEB-INF/classes
HWS is just a directory. If you want HelloWorldServlet to display there
as well you'll need to configure a
in web.xml with /HWS/
PJ
Peter Fogg wrote:
Trying to learn how to develop applicatio
This is really a question for the Apache mailing list.
but to disable caching remove (or comment out) all directives relating
to it.
The CacheEnable and CacheDisable work together so that if you did the
following
CacheEnable /
CacheDisable /foobar
The the caching would be performed on all URIs
Steven J. Owens wrote:
Peter,
On Tue, Nov 09, 2004 at 08:42:34AM +1100, Peter Johnson wrote:
We run 5 Tomcat servers (still on 4.1.x so not clustered) and use
CVS with two tags: 'stage' and 'prod'.
I'm a little unclear on what this means - do you mean branch
So are you saying that I could run ActiveX on my Linux FireFox browser?
A java serialised object should be secure enough, the next step would be
to add some sort of encryption.
Frank W. Zammetti wrote:
No, there are actually plug-ins for other browsers to run ActiveX
controls. I don't know if t
But ActiveX is an IE only element is it not?
For that case why not just use an applet and serialise the data from
Tomcat to the applet then either have JavaScript construct the page by
querying the applet or have the applet be the interface.
Sunitha --- in short don't try.
PJ
Frank W. Zammetti w
i.e. web.xml ?
It seems like thats what you are saying below - just want to be sure I
understand clearly.
Thanks
On Tue, 09 Nov 2004 10:11:27 +1100, Peter Johnson <[EMAIL PROTECTED]> wrote:
Hi,
You need both. You define the resource in the context of the app and
then link to the resource fro
Is that 3-4 connections or 3-4 queries? If it isn't a DNS resolution
issue or another task running on a server (both as mentioned in another
response) I would suggest you review you DB connection strategy.
Does the slowdown occur at the same time as a higher than normal volume
of hits?
Conside
Hi,
You need both. You define the resource in the context of the app and
then link to the resource from the app.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
PJ
Nishant Deshpande wrote:
When I set up a db resource in web.xml and create it, for some reasons
i
Hi Steven,
We run 5 Tomcat servers (still on 4.1.x so not clustered) and use CVS
with two tags: 'stage' and 'prod'. When a push script is executed the
server pulls the appropriate version from cvs and then performs an ant
task to deploy the app, compiling any changed classes. We find that this
Hi Vaneet,
Rather than reiterate Yoav's comments I will simply suggest that you
learn a little about HTML and HTTP or even better RTFM.
Your site is operating within a frameset thus the URL in the browser
stays the same whilst the underlying URL for each page changes within a
frame. When someon
Well here is what works for me (both Tomcat instances are running locally)
[workerEnv]
logger=logger.apache2
sslEnable=0
timing=1
#forwardURICompat
forwardURICompatUnparsed
#forwardURIEscaped
noRecoveryIfRequestSent
noRecoveryIfHeaderSent
disabled=0
debug=5
version=1
# Comment out in production
[lo
Use a filter ... I believe there was a discussion regarding it last week.
PJ
Jaynika Barot wrote:
I'm using tomcat 5.x. And after some research we decided to let tomcat
serve the static content as well, as there were many issues with the
IIS connector and Apache connector.
I can make tomcat server
I am using Apache2, jk2 and Tomcat5 but I do so because I want to
offload the SSL and compression onto a first tier leaving the second
just to generate the content. I also use the first tier for uri
rewriting using mod_rewrite.
If you don't need uri rewriting I would consider using Tomcat stand
Try
It has been a while since I touched jk2 but try
group=lb:balanced
PJ
Stephan Müller wrote:
Hallo!
My Enviroment:
Suse Linux 9.1
Tomcat 5.0.28
JK2 Connector 2.0.4
Apache2 2.0.50
I've configured the jk2-connctor to load balance. Here my
worker2.properties:
# Set a Logger
[logger.apache2]
file=/us
Justin,
Have a read of http://www.mnot.net/cache_docs/
If you have access to the apache config then you should be able to add a
header like the ones below using mod_headers
Cache-Control: max-age=60, must-revalidate
to expire content after 60 seconds or use
Cache-Control: no-cache
to force
*.jsp
But I think that you'll find that this is defined in the core web.xml to
go to the JSP servlet.
What are you trying to achieve?
On Thu, 2004-10-07 at 15:22, Fred Blaise wrote:
> any possible way i can achieve this in my web.xml ? Bc it wont the app
> won't start with this... (tomcat 5.0.2
LoggerBase
> stop
> INFO: unregistering logger
> Catalina:type=Logger,path=/admin,host=localhost
>
>
> On 29 Sep 2004 at 9:16, Peter Johnson wrote:
>
> > Stewart,
> >
> > Try enabling the RequestDumperValve in server.xml. I think you'll find
> >
Stewart,
Try enabling the RequestDumperValve in server.xml. I think you'll find
it has something to do with the difference between
"com.datatel.server.servlets.webadvisor.WebAdvisor" and
"datatel/openweb" ... well that is my first thought anyway.
PJ
On Wed, 2004-09-29 at 08:28, Stewart Walker wr
Justin,
Client Side:
This will present a broswe button and text box for the user to select
the file.
Server Side:
Look at FileUpload http://jakarta.apache.org/commons/fileupload/. If
using Struts (http://struts.apache.org/) then you already have access to
FileUpload so look at the JavaDocs
v for looking into it.
PJ
On Tue, 2004-09-21 at 08:00, Peter Johnson wrote:
> Yoav,
>
> Thanks for replying,
>
> long timeLeft = session.getLastAccessedTime() +
> session.getMaxInactiveInterval() * 1000 - System.currentTimeMillis();
>
> PJ
>
> On Mon, 2004-
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Peter Johnson [mailto:[EMAIL PROTECTED]
> >Sent: Monday, September 20, 2004 12:24 AM
> >To: Tomcat Users List
> >Subject: is out by factor of 100?
> >
> >Hi,
Hi,
Is anyone successfully using the web.xml session timeout configuration
with Tomcat 5.0.25? Testing seems to indicate that this setting is out
by a factor of 100 however using session.setMaxInactiveInterval seems to
yield the desired result.
E.g. Printing the time remaining (in ms) in a sessio
Always the way, you think of something else just as you hit send.
The other option would be to have a background process which checks the
upload directory and then moves the files as appropriate.
PJ
On Fri, 2004-04-02 at 15:06, Peter Johnson wrote:
> Kay,
>
> I would have thought
Kay,
I would have thought that you could use commons-fileupload to do this
with a little form preprocessing to determine location.
PJ
On Fri, 2004-04-02 at 14:49, Kayley Ma wrote:
> Hi,
>
> Is it possible to copy/move uploaded files in Tomcat5 to different
> directories on the machine outside o
he request and see what code is taking so long
> to execute.
> - Duncan
>
> - Original Message -
> From: "Peter Johnson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 30, 2004 2:00 AM
> Subj
Duncan,
I believe (and could be wrong) that this is intended behaviour. The work
directory is like Tomcat's cache of all the webapps it is currently
serving. When a request comes in for a page it tries to serve from this
directory, if the class file does not exist it generates the .java files
from
Has anyone else experienced this issue when adding DBCP functionality?
My research has only returned the following
http://www.mail-archive.com/[EMAIL PROTECTED]/msg11276.html
Any help is appreciated.
Thanks in advance,
PJ
INFO: Processing Context configuration file URL
file:/home/pjohnson/apach
directive instead of the mod_proxy directive?
>
> -Yan
>
> -Original Message-
> From: Peter Johnson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 23, 2004 2:41 PM
> To: [EMAIL PROTECTED]
> Subject: JK2 Connections from Apache2 URL Rewriting
>
I have been reading through
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/ and other sources
via google trying to work out the best way of mapping live URLs to
specific webapps. e.g.
Map www.mydomain.com/myshortcut -> www.domain.com/mywebapp/subpath/url
My environment is Apache2 mod_jk2 an
k-navigate:
> - - [06/Mar/2002:16:27:14 -0600] "GET
> /examples/images/execute.gif HTTP/1.1" 304 0
>
> Sorry I failed to mention the Windows 2000.
>
>
>> From: "Peter Johnson" <[EMAIL PROTECTED]>
>> Reply-To: "Tomcat Users List" <[EMAI
I just downloaded the .tar.gz binary and copied them across works fine
although I understand that SendMailServlet must be downloaded and compiled
separately due to some problem with the build scripts.
Peter
On 00:01 09-03-2002 Julien OIX wrote:
>
>
> hi everyone,
>
> I'm using these
I followed the site below and all works ok. Basically it describes some simple changes
to
be made in server.xml
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
Peter
> Set up these as per this URL, JSP will be functional but no gifs in examples:
> http://www.webmasterbase.com/article.ph
75 matches
Mail list logo