You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cr...@locus.apache.org on 2000/08/13 04:57:27 UTC
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpRequestBase.java
craigmcc 00/08/12 19:57:27
Modified: catalina/src/share/org/apache/catalina/connector
HttpRequestBase.java
Log:
In the getSession() method, just return null (instead of throwing a
NullPointerException) if no Manager has been configured -- which means
that sessions are not being supported in this instance of Catalina.
Reported by: Vivek Nagar <Vi...@eng.sun.com>
Revision Changes Path
1.2 +7 -5 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java
Index: HttpRequestBase.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpRequestBase.java 2000/08/11 22:40:18 1.1
+++ HttpRequestBase.java 2000/08/13 02:57:26 1.2
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java,v 1.1 2000/08/11 22:40:18 craigmcc Exp $
- * $Revision: 1.1 $
- * $Date: 2000/08/11 22:40:18 $
+ * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java,v 1.2 2000/08/13 02:57:26 craigmcc Exp $
+ * $Revision: 1.2 $
+ * $Date: 2000/08/13 02:57:26 $
*
* ====================================================================
*
@@ -95,7 +95,7 @@
* be implemented.
*
* @author Craig R. McClanahan
- * @version $Revision: 1.1 $ $Date: 2000/08/11 22:40:18 $
+ * @version $Revision: 1.2 $ $Date: 2000/08/13 02:57:26 $
*/
public class HttpRequestBase
@@ -946,7 +946,9 @@
// Return the requested session if it exists and is valid
Manager manager = context.getManager();
- if ((manager != null) && (requestedSessionId != null)) {
+ if (manager == null)
+ return (null); // Sessions are not supported
+ if (requestedSessionId != null) {
try {
session = manager.findSession(requestedSessionId);
} catch (IOException e) {
configure apache1.3.12 for tomcat 3.1- sos
Posted by Syed Mahmoods <ma...@magnum-tech.com>.
When I try to start apache I get following message, please help me get over
this:
Invalid command 'Order', perhaps mis-spelled or defined by a module not
included
in the server configuration
./apachectl start: httpd could not be started
The line of the httpd.conf where I receive the error is:
Order allow,deny
Thanks,
Syed