and then copy/paste that output into
your browser to see it exists.
Hope this helps.
Chris Ward
Hello,
I'm running Tomcat 5.5.7, and right now I have one
application ( the default application ). I just created a new
dir ( $CATALINA_HOME/webapps/cms ) for a new application
Dear All,
Due to a version upgrade of some third-party component accessed
through J-Integra (Java/COM bridge) I've been informed that I
need to run the new version in a different JVM to the rest of
my webapp (the earlier versions lived in harmony).
I know I could have a separate Tomcat on a
Hi,
One webapp can only run in one JVM. But if you are splitting
your webapp, you can use the CATALINA_BASE/CATALINA_HOME
approach QM referred to, or have an entirely new Tomcat
instance. It doesn't make that big a difference.
That's is what I thought, but thanks for
sets cookies to
do the remembering.
If you get your's going (I'm now on Tomcat 5.0.28, maybe there's
something new) I'd be interested in the details.
Good luck.
Best regards
Chris
--
Chris Ward, Horizon Asset Limited
mailto:[EMAIL PROTECTED]
Tel +44 (20) 7367 7028, Fax 7367 7029
--
THIS E
Hi all,
I've been using the manager application to deploy/undeploy my webapp.
I've put the context descriptor file (context.xml) in my META-INF
dir and everything *seems* to run just fine.
However, in the console window I'm getting a lot on noise - starting
with this... (note, my context is
toward Web
Services
- I don't know much about them.
Thanks again for your response - I'd be interested in hearing any other
pearls of wisdom.
Chris
On Wed, Sep 29, 2004 at 06:27:13PM +0100, Chris Ward wrote:
: Only having to release one file is great, but I've hit a problem
: of my own
Hi,
I've just started to use ANT to build my webapp and then deploy
it to Tomcat as a WAR file (using the catalina-ant.jar stuff).
Only having to release one file is great, but I've hit a problem
of my own making. My webapp writes various XML files to datestamped
dir within the webapp context.
Hi all,
Can anyone direct me to a user manual for the catalina-ant.jar
tasks that come with Tomcat?
I've read the documentation found under /tomcat-docs but I'd
really like to see something specifically detailing ANT interface
to the manager app.
Many thanks,
Chris
Hi,
I'm just switching my servlets to read files using URLs rather
than fully qualified filenames - which is fine - but I can't figure
out how to get the files last modified value. I can get a
lastModified
header value from the connection but I'm not reading HTML files (if this
makes any
XSD in web.xml, the EL is turned on by
default. Also
for jstl 1.1, tlds are already included in the jars, so no need to
copy them to your web-inf
On Tue, 31 Aug 2004 12:56:56 +0100, Chris Ward
[EMAIL PROTECTED] wrote:
make sure u modify your web.xml with something like
the ${XSL} to the
screen
in the first example.
Any thoughts gratefully received.
Chris
But does a simple
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core;
% c:set var=test value=hello/ ${test}
work!
On Wed, 1 Sep 2004 09:35:51 +0100, Chris Ward
[EMAIL PROTECTED
Hi,
I've upgraded from Tomcat 4.1.24 to Tomcat 5.0.27, most of my JSPs that
use
JSTL (1.0) work with the new setup, but none of the XML tags work.
Pages just
bomb out - nothing in the browser, nothing in the console, nothing in
the logs.
Even just using x:parse
Since the core and sql tags do
make sure u modify your web.xml with something like
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
Thanks for
Hi Mike,
Some thoughts. If anyone sees errors please let me know -
it may save me time in the long run!
Tomcat doing this, because my Application ran just fine,
using MySQL,
and JDBC driver in a Web Server called OmniCron in CGI
If I recall correctly, the CGI approach
making use of in my code.
If you have a 2.4 XSD in web.xml, the EL is turned on by
default. Also for jstl 1.1, tlds are already included in the
jars, so no need to copy them to your web-inf
On Tue, 31 Aug 2004 12:56:56 +0100, Chris Ward
[EMAIL PROTECTED] wrote:
make sure u modify
-examples webapp.
Any ideas? Do I need to include crimson.jar or something? I don't
think I do.
Best regards
Chris
--
Chris Ward, Horizon Asset Limited
mailto:[EMAIL PROTECTED]
Tel +44 (20) 7367 7028, Fax 7367 7029
--
THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.
IF YOU
Hi,
I've added
set JAVA_OPTS= -Xms128m -Xmx128m
to my catalina.bat file and Tomcat no longer starts.
Same happens if I set JAVA_OPT as an environment variable (Windows XP).
Anyone hit this? It works on my Tomcat 4.x catalina.bat file.
Best regards
Chris
(Tomcat 5.0.27)
There must be an error message somewhere. Either in
catalina.out or on the console. Put a pause in at the end of
catalina.bat so it stays on screen when you try to start tomcat.
-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]
Sent: 26 August
previous
mail)
(In catalina.bat)
Fails set JAVA_OPTS= -Xms128m -Xmx128m
Succeedsset JAVA_OPTS= -Xms128m -Xmx128m(note
trailing space still present)
Best regards
Chris
--
Chris Ward, Horizon Asset Limited
mailto:[EMAIL PROTECTED]
Tel +44 (20) 7367 7028, Fax
or something and just keeping a handle to that in the
HttpSessions? Should I be
using SAX in some clever way?
I'm sure it's a common task to handle medium-sized results from Tomcat.
Any input would be gratefully received.
Best regards
Chris
--
Chris Ward, Horizon Asset Limited
mailto:[EMAIL
Hi Jay,
I don't know if it's of any help at all, but I went through
something similar.
What I found to be my problem was that my URLs for invoking
JSPs/servlets did not always specify my Tomcat Context and
all the DataSource stuff was set up in my context (in server.xml
and the associated
? That hierarchy is totally unaware of the filter.
If that's the case then all is making sense now.
thanks again,
-joe
Chris Ward wrote:
Hi Joe,
I'm not sure exactly what your query is but the setup I have
is a /
and a /hal Context. The Filter I am using to direct any
requests
302 -- found (redirect), this is expected and good. 304 --
not modified, means it's in your browser's cache. Try
clearing your browser's cache.
Top tip. Cleared the cache and the gifs etc. turned up!
Thanks for that. I should take more notice of the codes.
I'm not
Hi all,
Sorry if this is a really dumb question, but how/where do I
set system properties when using Tomcat 4.1.24? I've searched
around but found nothing obvious.
Is it in an xml file rather than a .properties file?
Is it in the Java JDK?
Best regards
Chris
Thanks. That's just what I needed. I thought I'd done it at some
point in the past!
Best regards
Chris
If by system properties you mean JVM (Java Virtual Machine)
settings, then you can do this by setting the CATALINA_OPTS
variable in the catalina.sh (unix, linux) or catalina.bat
Hi Joe,
I'm not sure exactly what your query is but the setup I have is a /
and a /hal Context. The Filter I am using to direct any requests to
/ to /hal lives in the WEB-INF/classes dir of the / context.
In my case I used the Tomcat default dir of ../webapps/ROOT for the
/ docBase.
Further.
Hi all,
In my Tomcat setup I have a Context called hal which
contains all my applications, HTML everything.
Context path=/hal docBase=hal debug=0 privileged=true
reloadable=true
Therefore I run things with a URL such including /hal
Way back when I started with Tomcat I set the
or response.sendRedirct()?
I'm trying to do it in the best way.
Best regards
Chris
--
Chris Ward, Horizon Asset Limited
mailto:[EMAIL PROTECTED]
Tel +44 (20) 7367 7028, Fax 7367 7029
--
THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.
IF YOU ARE NOT THE INTENDED RECIPIENT
Howdy,
But he wants to redirect all requests, not just those for /.
Exactly. I did in fact have an index.html which did a redirect
to /hal so it looks like I'd tried that solution in the dim and
distant past.
Obviously once I had pointed / at /hal using it's docBase attribute
(in
in this case to have an index.html file
sitting at '/'
and
all it does is a meta refresh to the '/hal' context?
That way, once you're at /hal, you'll stay at /hal, and won't worry
about request parameters, etc.
-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED
I would use sendRedirect in this case for two reasons:
- To really make it look/act as if the request was for the /hal URL,
- To avoid getting a RequestDispatcher for a resource outside
your docBase
sendRedirect would preserve all the request parameters,
including POST data.
Hi Yoav,
Hmm, that's strange. Enable the AccessLogValve (in
server.xml) so that you can see what's actually being
requested from the server.
Seems to request both versions...
try
{
System.out.println( REQ : getRequestURI : +
request.getRequestURI()
);
Hmm, that's strange. Enable the AccessLogValve (in
server.xml) so that you can see what's actually being
requested from the server.
Seems to request both versions...
- - [23/Jan/2004:17:31:22 00] GET /images/buttons/Delete.gif HTTP/1.1
302 -
- - [23/Jan/2004:17:31:22 00] GET
Hi all,
Does anyone have a recommended way of displaying a
busy page while tomcat executes a servlet or JSP?
I've done this before using JavaScript to flip the
display to busy on the client, but I wondered if
there was a more generic way using Filters or something.
Many thanks as always,
snip I want to have a login link and a logout link.snip
snip how do you tell j_security_check where to go once the
user has logged in successfully. snip
If your application requires the click here to login
functionality, where would the user expect to go after
logging in? If it's to a
I thought sessions were essentially browser sessions.
For anything I've done that requires knowledge of user
state between different browsers (but same machine) I've
used cookies to save some form of user id.
I did turn on the Tomcat setting for persistent sessions
and found that preserved
Hi,
I'm using Xalan for XSL transformations. I can get the Xalan
extension redirect) to work from the command line test progs,
but fails when used within servlet.
The output file I'm trying to write has the full path.
Any ideas?
Best regards
Chris
Howdy,
Perhaps if you provided a bit more detail than just fails
when used within servlet then we could help some more ;)
Ah. Yes. Very good point.
Are there any errors in your log? Do you (i.e. the user
account running tomcat) have write permissions to the
directory/file you're
Correction to previous posting... (error message)
Howdy,
Perhaps if you provided a bit more detail than just fails
when used within servlet then we could help some more ;)
Ah. Yes. Very good point.
Are there any errors in your log? Do you (i.e. the user
account running
Howdy,
Perhaps a case-sensitivity issue? What happens if you use
Redirect instead of redirect?
I thought that, but the redirect is defined in the stylesheet
as...
extension-element-prefixes=redirect
My example is in the samples directory in the standard Xalan
download
Howdy,
I don't know Xalan well enough to answer, but it seems pretty
clear tomcat is looking for a class called Redirect, while
the stylesheet uses redirect. It seems like a
case-sensitivity issue, but I can't help much beyond that ;)
Yoav Shapira
I agree. Anyway, a few Googles
Hi,
I was asking about this subject on this list a while back
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg111700.h
tml
but I've not managed to get it working yet.
In short. I'm working on an intranet application and I want
my users to only have to log in once.
Thanks.
I should have mentioned that I am running Tomcat 4.1.24 with
jdk1.3.0_02.
I did want to make use of the Tomcat features for authentication
(i.e. FROM method, Realm using user/roles DB tables, web.xml
configuration
etc.) to replace existing code that I wrote for the task. I'm losing
the
I guess you could get the desired result using JavaScript
locally to count down from when the page is last sent.
Just a suggestion.
Best regards
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi,
Just a quickie. Can I use the DataSources I have set up in my
Server.xml/Web.xml
files for my web application in standalone/command line java apps?
Assuming Tomcat is running of course.
Or do I have to set up a separate JNDI thing for this (I'm new to JNDI
- can you tell?).
Best regards
of a
Get:
http://tinyurl.com/xl80
HTH,
Matt
On Dec 3, 2003, at 12:52 PM, Chris Ward wrote:
Hi Matt,
Sorry for sending unsolicited email but I've been looking
at some of
your postings to Tomcat-User and wondered if I could ask
a couple of
questions. I've tried posting to list
On Dec 3, 2003, at 12:52 PM, Chris Ward wrote:
Hi Matt,
Sorry for sending unsolicited email but I've been looking at some
of your postings to Tomcat-User and wondered if I could ask a
couple of questions. I've tried posting to list but had
no response
from anyone
Dear all,
I'm implementing remember me login functionality using
FORM authentication, a LoginServlet and a Filter.
It's very much based on the code in an earlier posting to
this list
From: Raible, Matt
Subject: RE: Form based security and Remember Me
Date: Fri, 21 Feb
I'm not sure if it makes a difference but try putting the
ResourceLinks before the Realm definition in server.xml.
Liem
Thanks for the suggestion Liem - doesn't seem to make any
difference. I'm still getting the same response in
my browesr...
org.apache.jasper.JasperException: Unable to
Hi,
For the record, I solved my problem regarding the message...
org.apache.jasper.JasperException:
Unable to get connection, DataSource invalid: Cannot load JDBC
driver class 'null'
... from my JSPs.
For anyone who is interested, here's what worked for me...
I was not always
Hi all,
Please excuse any going over of old ground with this question, I have
searched every archive
I can find. I have recently started using DataSources from JSPs using
the JSTL taglib (I think
this is a Tomcat rather than taglib question).
I've got a Context for my apps and initially had
Not sure if Tomcat will take care of this automaticly for you. What I do is have the
object I set in the session add it's self to a list in the sever context, and remove
it's self when the session expires. Then you will have a list of all sessions in one
place.
Chris
-Original
If you are XML based, how about the Apache Cocoon project. I have only read about it,
not tried it.
Chris
-Original Message-
From: Robert Simmons [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 11:04 AM
To: Tomcat Users List
Subject: Re: Single Servlet vs Multiple Servlet
I have more than one app, each in their own context, with a single secure login in the
ROOT context. The web site has one domain name, and it points to ROOT. I have been
able to get to other contexts, but I can't seem to 'get back' to my login page in the
ROOT context. This is the code I have
JServ is dead code. Don't use it. Tomcat is
that same code's successor.
Also, you'll need "mod_jk" to glue Tomcat to Apache.
I only mention it because I spent two days finding
this out! Most of that time was spent hunting for
mod_jserv. D'oh!
Look at
Hi,
I've been looking for anything in the archive but couldn't see anything
to help me. Feel free to ignore this but I'm puzzled so anything would
be a step forward!
Basically, I'm trying to get Tomcat up and running on a Pentium IV
PC - does anyone know of any reason why this would fail? I
Ignore me - I was being an idiot. All better now!
Thanks anyway,
Chris
Thanks for this suggestion. I had been doing
just this then someone suggested a Restart of
my PC. Since I had not done this since installing
my new Visual Cafe, the PC was confused about the
Java environment. The restart sorted it all out.
Thanks again,
Chris
-Original Message-
and solve. Usually this is either a badly configured
TOMCAT/JAVA_HOME or something else is using one of Tomcat's ports (8080
and
8007 by default).
Randy
-Original Message-----
From: Chris Ward [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 10:53 AM
To: Tomcat Users (E-mail)
Subje
These errors are coming from html pages, or a JSP page in the case of the
applet class, with the propper html tags. Some of these images are then
displaying correctly under JSP pages.
Chris
-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 9
Make sure that your classpath is being set up properly, and that any of your
own classes are in a directory that is in your classpath. I had this, but
can't remember exactly which thing I had to add to the classpath.
Chris
-Original Message-
From: Mariano Kamp (by way of Mariano Kamp
.
How can I set this up to actually created to documentation.
Chris
--
Chris Ward - Developer
@ integral business solutions
tel: 651.631.3144
fax: 651.631.2544
email: [EMAIL PROTECTED]
web: www.go-integral.com
to
"/myservlet", it always runs from the webapps/ROOT context, even if it was
called from a html page under webapps/test that I got to from
www.my.server/test/index.html.
Do I have to code something in the jsp pages to make them context aware?
Chris
------
Chris Ward -
]]
Sent: Tuesday, February 06, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: to switch contexts, do you have to change all your JSP
URL's?
%= request.getRequestURI() % will return current URL.
Original Message
On 2/6/01, 11:18:04 AM, "Chris Ward" [EMAIL PROTECTED] wrote
regarding
--
Chris Ward - Developer
@ integral business solutions
tel: 651.631.3144
fax: 651.631.2544
email: [EMAIL PROTECTED]
web: www.go-integral.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL
I am trying to run an application in ROOT, and have changed several JSP
pages to look at a different images directory, but none of them have
actually changed.
I noticed that there is no context for ROOT in server.xml, which is where I
thought that maybe the reloadable=false was set.
Any ideas?
66 matches
Mail list logo