Matt,
Using JAVA_HOME: c:\jdk1.2.1
I'd recommend trying a 1.3.x or 1.4.x JDK, rather than this one. (The 1.4.1
I'm using works fine for me.)
Alternatively, if you already have a later JDK, but it's not being used,
create a file in Tomcat install directory/bin called 'setenv.bat',
Steve,
Certainly worth a go - computers have the advantage over other experimental
sciences in that you can try things, and not risk laying waste to entire
city blocks if they go wrong.
As we discussed before, the JSP compiler is messing up the structure of your
switch statements - take a look
For Tomcat 4.x (Servlet 2.3), you can use
ServletContext.getServletContextName()
You could also use HttpServletRequest.getContextPath(), if that's suited to
what you want to do.
Dan.
-Original Message-
From: Etienne [mailto:[EMAIL PROTECTED]]
Sent: 11 February 2003 12:31
To:
Steve,
This isn't really the best forum in which to find help in debugging JSPs -
one of the more painful processes that everyone goes through when getting to
grips with Java and JSP/Servlets is to learn how to debug effectively. And
the only way to do that is to read through the manuals, read
Arbitrarily changing a POST to a GET can also end up in your customers
ordering two sets of football tickets, rather than one.
A repeat of a POST requires that the user be prompted, as POSTs are
non-idempotent. Browsers can issue as many GET requests as they like in
order to get the page
But 2000 *was* a leap year...?
http://world.std.com/~dpbsmith/leapyearfaq.txt
-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2003 11:50
To: Tomcat Users List
Subject: bug in java api? (ot)
Take a look at the following code
The simple answer is 'no'.
For the more complex answer, read the 'Double-Checked Locking is Broken'
declaration at:
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
To complicate matters even further, check out the JavaDoc to the Fast*
utilities in the Jakarta commons. For
it'll probably be called million
of times in my app
On Wed, 2003-02-05 at 09:42, Daniel Brown wrote:
The simple answer is 'no'.
For the more complex answer, read the 'Double-Checked Locking is Broken'
declaration at:
http://www.cs.umd.edu/~pugh/java/memoryModel
Cookies can be set 'secure' (Cookie.setSecure(true)). Secure cookies are
only sent to servers by browsers over a secure connection.
When Tomcat starts a new session, it sets the cookie to be secure if the
session is opened over a secure connection.
This seems to fit with everything so far
The code to implement the shutdown process (at least in 4.0.6) is in
org.apache.catalina.core.StandardServer
You modify the await() method to implement the security mechanism you need.
Currently, it accepts connections on localhost to port 8005, and waits until
it can read the magic word
Affan,
The encoding is set just fine. If I copy and paste your JSP, and run it
here, I get the following as the content type in the HTTP headers:
Content-Type: text/html; charset=UTF-8
You're seeing empty squares where you'd expect characters for a couple of
reasons:
The Unicode escape for
Richard,
You could use HttpServletRequest.getPathInfo() to read the extra path
information after servlet name, read the corresponding object from disk, set
an appropriate MIME type, and then send the object back in the response.
But it's a lot of new code for something that doesn't seem like a
This was news to me too. But, from the horse's mouth:
RFC 2616HTTP/1.1 June 1999
If the 302 status code is received in response to a request other
than GET or HEAD, the user agent MUST NOT automatically redirect the
request unless it can be
That would depend on if the constructor actually *does* something.
If it needs to set up a connection pool, parse an XML configuration file, or
whatever, then you have the choice of,
- doing this once, reliably, in the constructor, or
- making sure that every single last static method checks to
Klavs,
From the error message, it sounds like:
/opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar
cannot be created, probably because the directory structure required isn't
there.
If you canonicalise the path, you end up with the following:
Alternatively, if you can find an OS that implements process/file
capabilities, you should be able to grant the JVM the capability to bind to
ports below 1024.
The doco. for the 2.4 Linux kernels suggests this might be in there - anyone
know if it's sufficiently mainstream, and suitable for this
Santosh,
This sounds like a character set problem. When the content is decoded, you
need to make sure it's decoded using the character set used to encode it.
Tomcat assumes ISO-8859-1 when decoding URL parameters.
When you encode the data, use URLEncoder.encode(string, UTF-8), and decode
it
Henry,
HttpSessionBindingListener enables you to be notified when an object is
bound into a session, or when the object is removed from the session (either
progammatically, or when the session itself is invalidated or expired).
If you'd like an object stored in the session to be notified in this
Dave,
There is a known issue with IIS in which it binds to all available IP
addresses, rather than the one specified, when socket pooling is in use (the
default). It's described here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;259349
Generally, IIS will start before Tomcat when
Nate,
When installing Tomcat as a service, you can specify extra options to the
JVM using the 'jvm_option' flag. catalina.bat isn't used for this, as you
rightly suspect.
Try using tomcat.exe to uninstall the service, and then reinstalling it with
your extra JVM options specified - hopefully
Adrian,
Here's a starter:
Normally, the servlet container maintains only one instance of each servlet,
(one instance per servlet per JVM is required by the servlet spec. in a
non-distributed environment) and passes all requests received concurrently
through the service method of that instance.
or 2?
On Thu, 2003-01-23 at 09:36, Daniel Brown wrote:
If, however, the servlet implements SingleThreadModel, then the
container
has two choices:
1. serialise all requests through the single instance
2. create a pool of servlet instances, and share out requests
amongst the
pool
John,
One (somewhat superstitious) thing:
I have the following as my 2.3 DTD:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
and this works for me.
In the past, I've found all sorts of wierd things happen
It's just a crazy, ever changing world. Thanks for the pointer :)
-Original Message-
From: Lorenti, John [mailto:[EMAIL PROTECTED]]
Sent: 23 January 2003 19:52
To: 'Tomcat Users List'
Subject: RE: java.lang.NoClassDefFoundError: javax/servlet/Filter
Daniel,
If you follow your
Francis,
The HTML (4.01) spec says that browsers 'may' use the page encoding as the
encoding to use when submitting form data. If you're assuming UTF-8, then
you might want to consider something like the following,
FORM accept-charset=UTF-8 ...
...
/FORM
to force conforming browsers do the
When the session is created, you could store an object that implements the
'javax.servlet.http.HttpSessionBindingListener' interface.
When the session is invalidated, that object will receive an event,
according to the doco, just after the session has been invalidated, or
expired. The interface
Roger,
It sounds like you've created a web application to hold these servlets, and
Tomcat is inserting the name of the web application when creating the path
to the 'exit.htm's that you're trying to replace.
If you try this using the ROOT web application, it should do what you're
wanting.
27 matches
Mail list logo