RE: Web Application Question

2005-07-26 Thread Chris Ward
the filter 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

RE: Mulitple JVMs

2004-10-22 Thread Chris Ward
> > 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 ver

Mulitple JVMs

2004-10-22 Thread Chris Ward
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 diff

RE: Form Based Authentication with Cookies?

2004-10-12 Thread Chris Ward
The login page 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 P

WAR deploy problem

2004-10-05 Thread Chris Ward
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

RE: WAR file deployment snag - any suggestions?

2004-09-30 Thread Chris Ward
is a move 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

WAR file deployment snag - any suggestions?

2004-09-29 Thread Chris Ward
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 . When

catalina-ant info

2004-09-28 Thread Chris Ward
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 ---

Getting lastModified() from a (relative) URL

2004-09-06 Thread Chris Ward
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 sense

RE: JSTL 11 with Tomcat 5.0.27

2004-09-01 Thread Chris Ward
uot; uri="http://java.sun.com/jsp/jstl/core"; > %> ${test} > > work! > > On Wed, 1 Sep 2004 09:35:51 +0100, Chris Ward > <[EMAIL PROTECTED]> wrote: > > > > I tried adding the XML element suggested but it made no > difference. I > > still find t

RE: JSTL 11 with Tomcat 5.0.27

2004-09-01 Thread Chris Ward
urrently 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

RE: JSTL 11 with Tomcat 5.0.27

2004-08-31 Thread Chris Ward
ng I'm not currently 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 +0

RE: Tomcat Holding Database Open??????

2004-08-31 Thread Chris Ward
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 thr

RE: JSTL 11 with Tomcat 5.0.27

2004-08-31 Thread Chris Ward
> make sure u modify your web.xml with something like > > 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

JSTL 11 with Tomcat 5.0.27

2004-08-31 Thread Chris Ward
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 Since the "core" and "sql" tags do work I

Tomcat 5 : JSTL (x:transform> fails silently

2004-08-27 Thread Chris Ward
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 ARE NOT THE INTENDED RECIPIENT (OR HAVE RECEIVED THIS E-MAI

RE: JAVA_OPTS in catalina.bat (Tomcat 5.0.27)

2004-08-26 Thread Chris Ward
e there (see my 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 PROTEC

RE: JAVA_OPTS in catalina.bat (Tomcat 5.0.27)

2004-08-26 Thread Chris Ward
sers List > Subject: RE: JAVA_OPTS in catalina.bat (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. > > -O

JAVA_OPTS in catalina.bat (Tomcat 5.0.27)

2004-08-26 Thread Chris Ward
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

Mid-size dynamic XML (DOM) result handling in Tomcat.

2004-08-23 Thread Chris Ward
I be serializing the Document to a DB 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 --

RE: JDBC/DBCP problems

2004-01-28 Thread Chris Ward
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 and all the DataSource stuff was set up in my context (in server.xml and the associated web.xml). Si

RE: Setting system properties in standalone Tomcat 4.1.24

2004-01-26 Thread Chris Ward
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 > (wi

Setting system properties in standalone Tomcat 4.1.24

2004-01-26 Thread Chris Ward
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 -

RE: Repeated "load-on-startup" niggle

2004-01-26 Thread Chris Ward
> 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

RE: Repeated "load-on-startup" niggle

2004-01-26 Thread Chris Ward
is not even mentioned anywhere in the webapps/hal heirarchy, > right? 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, > > > &g

RE: Repeated "load-on-startup" niggle

2004-01-25 Thread Chris Ward
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 "/" docBas

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > 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

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > 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() > >); >

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > 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. H

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
CTED] > > >Sent: Friday, January 23, 2004 10:10 AM > > >To: 'Tomcat Users List' > > >Subject: RE: Repeated "load-on-startup" niggle > > > > > >Is it simpler in this case to have an index.html file > sitting at '/' > > and &g

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > 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

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
g a request dispatcher 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. I

Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
Hi all, In my Tomcat setup I have a Context called "hal" which contains all my applications, HTML everything. Therefore I run things with a URL such including "/hal" Way back when I started with Tomcat I set the "Tomcat Root Context" to point to the same docBase directory so any re

Displaying "busy page" while servlet/JSP running

2004-01-19 Thread Chris Ward
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, C

RE: criteria for a session

2004-01-08 Thread Chris Ward
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 se

RE: Forms Authentication

2004-01-08 Thread Chris Ward
> I want to have a login link and a logout link. > how do you tell j_security_check where to go once the > user has logged in successfully. 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 generic welcome/

RE: Xalan redirect (to file) within Tomcat

2004-01-07 Thread Chris Ward
> 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 Google

RE: Xalan redirect (to file) within Tomcat

2004-01-07 Thread Chris Ward
> > 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 d

RE: Xalan redirect (to file) within Tomcat

2004-01-07 Thread Chris Ward
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 > > acco

RE: Xalan redirect (to file) within Tomcat

2004-01-07 Thread Chris Ward
> 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 y

Xalan redirect (to file) within Tomcat

2004-01-07 Thread Chris Ward
Hi, I'm using Xalan for XSL transformations. I can get the Xalan extension

RE: Warning of session timeout.

2004-01-06 Thread Chris Ward
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, e-mail:

RE: Persistent User Login

2004-01-06 Thread Chris Ward
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

Persistent User Login

2004-01-06 Thread Chris Ward
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. If

Tomcat DataSources in non-Tomcat programs.

2003-12-09 Thread Chris Ward
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

RE: servlet sendRedirect() to j_security_check problem (remember me)

2003-12-05 Thread Chris Ward
nd > >> form-error-page into a "security" folder and then set my > cookies for > >> the /appname/security path rather than / - this makes it so the > >> user/pass cookies are more secure and can only be retrieved when > >> logging in, rather t

RE: servlet sendRedirect() to j_security_check problem (remember me)

2003-12-04 Thread Chris Ward
> Because of this, I changed to using an HTTP Post with Jakarta > >>> Common's HttpClient. I also moved my form-login-page and > >>> form-error-page into a "security" folder and then set my > cookies for > >>> the /appname/security p

servlet sendRedirect() to j_security_check problem

2003-12-03 Thread Chris Ward
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 F

RE: Intermittent failures using DataSources

2003-11-27 Thread Chris Ward
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 invo

RE: Intermittent failures using DataSources

2003-11-27 Thread Chris Ward
> 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

Intermittent failures using DataSources

2003-11-26 Thread Chris Ward
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 for my apps and initially had my bunch

RE: Single Servlet vs Multiple Servlet

2003-01-24 Thread Chris Ward
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 Ac

RE: how do I detect alive sessions at this moment?

2003-01-24 Thread Chris Ward
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 Message-

Forward to ROOT context?

2003-01-23 Thread Chris Ward
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 tr

RE: Tomcat vs JServ

2001-04-19 Thread Chris Ward
> 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 http://jakarta.apache.org/tomcat/ja

RE: Pentium IV - any known problems?????

2001-04-17 Thread Chris Ward
ve. 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

RE: Pentium IV - any known problems?????

2001-04-17 Thread Chris Ward
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- From

RE: Pentium IV - any known problems?????

2001-04-17 Thread Chris Ward
Ignore me - I was being an idiot. All better now! Thanks anyway, Chris

Pentium IV - any known problems?????

2001-04-17 Thread Chris Ward
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

RE: errors displaying graphics

2001-02-19 Thread Chris Ward
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

errors displaying graphics

2001-02-19 Thread Chris Ward
is called from most JSP pages in /JSP. Does anyone know what causes these error messages? Chris -- Chris Ward - Developer @ integral business solutions tel: 651.631.3144 fax: 651.631.2544 email: [EMAIL PROTECTED] web: www.go-integral.com

RE: jsp could not be loaded on winnt

2001-02-14 Thread Chris Ward
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 to use JavaDoc with ANT?

2001-02-08 Thread Chris Ward
rrors. 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-integra

RE: to switch contexts, do you have to change all your JSP URL's?

2001-02-06 Thread Chris Ward
ECTED]] 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 Me

to switch contexts, do you have to change all your JSP URL's?

2001-02-06 Thread Chris Ward
I change the context that it is run from, or want to have both running? Chris -- Chris Ward - Developer @ integral business solutions tel: 651.631.3144 fax: 651.631.2544 email: [EMAIL PROTECTED] web: www.go-integral.com

how to write servlet to use multiple contexts

2001-02-06 Thread Chris Ward
nt 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 W

how to USE differnet contexts

2001-02-05 Thread Chris Ward
Chris -- 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: [

JSP pages in webapps/ROOT will not 'recompile'

2001-02-02 Thread Chris Ward
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?