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
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:
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
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
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]'
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 =
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
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
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
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
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()) {
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
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
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
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% /
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
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
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
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
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
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
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
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
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
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
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
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
27 matches
Mail list logo