RE: Per context access logs (Standalone 4.1.12)

2002-11-15 Thread Chris Campbell
Thanks Craig and Jon... Ok, I have this working now. I just changed the context declaration: from Context path=/ docBase=ROOT debug=0 reloadable=true to Context path=/chris docBase=ROOT debug=0 reloadable=true It seems that that context path / was never intended to be used to house a full-blown

Per context access logs (Standalone 4.1.12)

2002-11-14 Thread Chris Campbell
Hi, I have a context set up as below, taken from server.xml. There are no errors and the log file is created just fine, but the only accesses that ever get recorded are accesses to the url /. That is, no matter how many pages I access, the log becomes filled with the same line like this:

RE: startup/shutdown Tomcat on Linux

2002-08-26 Thread Chris Campbell
or if it is an option you might want to install the 4.0.4 rpm, it seems to install the rc.d scripts for you automatically Just use the .sh counterparts to the .bat files you used on Windows. If you want Tomcat to start when the system comes up (or, to use some jargon, enters the proper

RE: startup/shutdown Tomcat on Linux

2002-08-26 Thread Chris Campbell
hi neal with tomcat4.0.4 there are no default webapps. (Prior to this there was a root context pre-configured) If you are getting a page that says 'There is no context available to process this request' or something, then it's running. If you are getting the standard 'The page cannot be

RE: newbie question urgent plz

2002-06-11 Thread Chris Campbell
What files are in the context? Do you have a webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager list, and if so what is its status? -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 8:20 PM To: '[EMAIL PROTECTED]'

RE: Whats wrong with this code?

2002-06-10 Thread Chris Campbell
That part of the code looks ok. I suspect it is something after that which gives you the problem - what else do you do with p? Remember indexOf returns -1 if the substring is not found. This means that if you then use p to try checking the name of the email like: String namePart =

RE: starting tomcat from the service

2002-06-05 Thread Chris Campbell
Hello Chiharu I have environmental variables on tomcat_home, and java_home. Also, I have specified those in the wrapper.properties. wrapper.tomcat_home=c:\tomcat If you use additional jar files in WEB-INF\lib, try putting those into wrapper.properties as well (like

RE: deny access to folders

2002-06-05 Thread Chris Campbell
In %TOMCAT_HOME%\conf\web.xml you can change the 'listings' parameter to false like this. This will deny listings for all contexts though, maybe you want to change it in your contexts web.xml only... servlet servlet-namedefault/servlet-name

RE: How to get debug info

2002-06-02 Thread Chris Campbell
Surely there must be output in the server (System.err) log though? (or catalina.out) I don't think it's part of the specification that the error message need be displayed in the browser - this is more or less just a convenience. ChrisC -Original Message- From: Phillip Morelock

RE: Having a Newbie Delamere here.

2002-05-30 Thread Chris Campbell
I don't think you need to close the statement and result set between queries. In fact, I think you shouldn't. Try just having rs.close() and stmt.close() only once at the end of all the queries. ChrisC ps. these are not really tomcat questions -Original Message- From: Nicholas Orr

RE: Having a Newbie Delamere here.

2002-05-30 Thread Chris Campbell
Oh and I think TYPE_FORWARD_ONLY means the result set is limited in such a way that each row in the result set may only be visited once and the result set has to be traversed from front to end. The usual way of doing this in java is: rs = stmt.executeQuery(sQuery); while (rs.next()) {

thread race/data mixup/mystery

2002-05-30 Thread Chris Campbell
Here is a question which has been puzzling me for a while. In the admin section of our webapp, the customer can upload images to be shown in pages on the site. These images (so far all uploads are images) are stored as a file on the server and retrieved for display by putting a servlet url in

RE: thread race/data mixup/mystery

2002-05-30 Thread Chris Campbell
This may be important: I forgot to add that we use the bitmechanic package for database connection pooling, and we definitely have not ruled this out as the source of the problem (as it happens we are suspicious that 'select last_insert_id()' sometimes returns zero when it shouldn't ...) Thanks

RE: Dictate what happens when page loads based on the Querry String

2002-05-28 Thread Chris Campbell
You need to check for null parameter first: String sPage = request.getParameter(Page); if (sPage != null !.equals(sPage)) { ChrisC -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 12:41 PM To: Tomcat Users List Subject: Dictate what

RE: jsp:include page=%=page_name_string_variable% / fails!

2002-05-27 Thread Chris Campbell
JSP 1.1 spec says 'the flush attribute is mandatory and only accepts the value true' ChrisC -Original Message- From: Keith Glen Bjorndahl [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 12:19 AM To: [EMAIL PROTECTED] Subject: jsp:include page=%=page_name_string_variable% /

RE: startup and shutdown on Windows

2002-05-23 Thread Chris Campbell
There is no process running on 8080 nor process running on the shutdown port . then it would seem that the server is already shutdown... what error message do you get when you call startup? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: Problem in restarting Tomcat

2002-05-19 Thread Chris Campbell
We had this problem the other day. We fixed it by putting 'killall java' in the restart script before attempting to restart tomcat... of course this is no good if you want other java processes to keep running though. ChrisC -Original Message- From: Zhongwen Zhu (LMC) [mailto:[EMAIL

RE: ??? Sitewide JAR Files ???

2002-05-14 Thread Chris Campbell
definitely possible: put them in TOMCAT_HOME/common/lib ChrisC -Original Message- From: Tony LaPaso [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 1:36 PM To: Tomcat User Subject: ??? Sitewide JAR Files ??? Hello, I don't think this is possible but it can't hurt

RE: Problem: JSP calls singleton. Singleton's data changes, but JSP s till shows old data from that singleton

2002-05-07 Thread Chris Campbell
Assuming the browser is not just giving you a cached page, in the servlet, if you log the contents of _instance just before return _instance; do you see the new data? ChrisC -Original Message- From: Pykalainen, Eero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 8:34 PM

RE: Urgent send redirect

2002-05-07 Thread Chris Campbell
You could try just: response.sendRedirect(http://; + url + ? + querystring); ChrisC -Original Message- From: Laura [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 7:53 PM To: [EMAIL PROTECTED] Subject: Urgent send redirect Hi all, I have a problem and I don't know

RE: SSL Problem

2002-03-12 Thread Chris Campbell
hi. did you change the configuration in server.xml? You need to uncomment the section like this just checking. !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5

RE: Double-byte character support in TC 4.0.1

2002-03-04 Thread Chris Campbell
We use it for Japanese with no problems. ChrisC -Original Message- From: Kapasi, Mehjabin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 7:52 AM To: 'Tomcat Users List' Subject: Double-byte character support in TC 4.0.1 Hello, Can anyone tell me if Tomcat 4.0.1

RE: Why localhost:8080 NOT expanded to http://localhost:8080

2002-02-28 Thread Chris Campbell
This is not surprising really. In most URI addresses the protocol (http, ftp etc) is the part before the colon. If you leave 'http:' out of a URI with a colon in it, the part before the colon becomes the protocol, in this case 'localhost'. ChrisC -Original Message- From: Thomas

RE: Tomcat4 standalone keystore - existing private key problem

2002-02-26 Thread Chris Campbell
e key." Great. Looks like we will be going through apache then. ChrisC -Original Message----- From: Chris Campbell Sent: Monday, February 25, 2002 12:38 PM To: '[EMAIL PROTECTED]' Subject: Tomcat4 standalone keystore - existing private key problem Hi I am trying to setup To

RE: value of an parameter: too long ?

2002-02-25 Thread Chris Campbell
Tomcat 4 is more strict about strings passed as URL parameters. If there are any URL string type characters (ie. , ?, =) in the parameter you pass then tomcat may not interpret it as you expect. Try using URLEncoder.encode() on your tableName parameter, because it has an '=' in it. Or you could

RE: java.lang.IllegalStateException: Response has already been committed

2002-02-25 Thread Chris Campbell
Like Ken says, calling the servlet like that will generate a full HTTP response and close the output stream to the browser. Then your jsp will continue trying to write to that stream which gives you the error. As long as the service method of the servlet doesn't close the stream, you might be

Tomcat4 standalone keystore - existing private key problem

2002-02-24 Thread Chris Campbell
Hi I am trying to setup Tomcat 4.0.1 standalone to serve ssl pages certified by Verisign. I can use (self signed) certificates generated by keytool with no problem, but I can't set up the keystore to work with Verisign's. To explain a little more, the private key I have was generated by openssl