Re: Tomcat-user

2003-03-19 Thread Remy Maucherat
Ignacio J. Ortega wrote:
Hola a todos:

As any of you know i'm currently one the moderators ( well i'm mostly
the human spamwatch, but this another history :)..
Tomcat-user is becoming bigger and bigger over time, and more and more
devoted to jk/jk2, general user questions are becoming more and more
rare  this is a exageration of course, but those that lurk there know
what i'm saying :).. 

I wonder if it's time to split up the user list ? the split should be
tomcat-connectors-user and tomcat-user.. 

Comments?
Ouch, the amount of spam on tc-user must be huge ...
Personally, I would set the list to automatically deny. It seems too 
huge to be managed by one person.

Remy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 10419] - Session-ID grabbing from Request accepts invalid session cookies in presense of valid URL sessions

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10419

Session-ID grabbing from Request accepts invalid session cookies in presense of valid 
URL sessions

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2003-03-20 07:04 ---
*** Bug 14354 has been marked as a duplicate of this bug. ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/valve DeleteValvesAction.java

2003-03-19 Thread amyroh
amyroh  2003/03/19 21:56:22

  Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin/valve
DeleteValvesAction.java
  Log:
  This file didn't get checked in with earlier commit.
  
  Revision  ChangesPath
  1.3   +5 -5  
jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/valve/DeleteValvesAction.java
  
  Index: DeleteValvesAction.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/valve/DeleteValvesAction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeleteValvesAction.java   18 Mar 2003 10:48:26 -  1.2
  +++ DeleteValvesAction.java   20 Mar 2003 05:56:22 -  1.3
  @@ -173,7 +173,7 @@
   for (int i = 0; i < valves.length; i++) {
   values[0] = valves[i];
   String domain = (new ObjectName(valves[i])).getDomain();
  -ObjectName fname = TomcatTreeBuilder.getMBeanFactory(domain);
  +ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
   mBServer.invoke(fname, operation,
   values, removeValveTypes);
   if (control != null) {
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session ManagerBase.java

2003-03-19 Thread amyroh
amyroh  2003/03/19 21:43:49

  Modified:catalina/src/share/org/apache/catalina/loader
WebappLoader.java
   catalina/src/share/org/apache/catalina/mbeans
MBeanFactory.java MBeanUtils.java
mbeans-descriptors.xml
   catalina/src/share/org/apache/catalina/session
ManagerBase.java
  Log:
  Set empty path to "/" so ObjectName for loader and manager gets created
  successfully without MalformedObjectNameException.  Change MBeanFactory
  to create service and engine together so service knows its domain during 
initialization.
  
  Revision  ChangesPath
  1.12  +6 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappLoader.java
  
  Index: WebappLoader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappLoader.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- WebappLoader.java 17 Mar 2003 19:22:37 -  1.11
  +++ WebappLoader.java 20 Mar 2003 05:43:48 -  1.12
  @@ -684,8 +684,12 @@
   try {
   StandardContext ctx=(StandardContext)container;
   Engine eng=(Engine)ctx.getParent().getParent();
  +String path = ctx.getPath();
  +if (path.equals("")) {
  +path = "/";
  +}   
   oname=new ObjectName(eng.getName() + ":type=Loader,path=" +
  -ctx.getPath() + ",host=" + ctx.getParent().getName());
  +path + ",host=" + ctx.getParent().getName());
   Registry.getRegistry().registerComponent(this, oname, null);
   controller=oname;
   } catch (Exception e) {
  
  
  
  1.7   +38 -11
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java
  
  Index: MBeanFactory.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MBeanFactory.java 20 Sep 2002 21:22:31 -  1.6
  +++ MBeanFactory.java 20 Mar 2003 05:43:48 -  1.7
  @@ -65,6 +65,7 @@
   
   import java.lang.reflect.Constructor;
   import java.lang.reflect.Method;
  +import java.util.Vector;
   import javax.management.MBeanException;
   import javax.management.MBeanServer;
   import javax.management.ObjectName;
  @@ -431,7 +432,7 @@
   // Return the corresponding MBean name
   ManagedBean managed = registry.findManagedBean("CoyoteConnector");
   ObjectName oname =
  -MBeanUtils.createObjectName(managed.getDomain(), (Connector)retobj);
  +MBeanUtils.createObjectName(pname.getDomain(), (Connector)retobj);
   return (oname.toString());
   
   }
  @@ -868,18 +869,44 @@
   // Add the new instance to its parent component
   ObjectName pname = new ObjectName(parent);
   Server server = ServerFactory.getServer();
  -Service service = server.findService(pname.getKeyProperty("name"));
  +Service service = server.findService(name);
   service.setContainer(engine);
   
   // Return the corresponding MBean name
  -ManagedBean managed = registry.findManagedBean("StandardEngine");
  +//ManagedBean managed = registry.findManagedBean("StandardEngine");
   ObjectName oname =
  -MBeanUtils.createObjectName(managed.getDomain(), engine);
  +MBeanUtils.createObjectName(name, engine);
   return (oname.toString());
   
   }
   
   
  +public Vector createStandardEngineService(String parent, 
  +String engineName, String defaultHost, String serviceName)
  +throws Exception {
  +
  +// Create a new StandardService instance
  +StandardService service = new StandardService();
  +service.setName(serviceName);
  +// Create a new StandardEngine instance
  +StandardEngine engine = new StandardEngine();
  +engine.setName(engineName);
  +engine.setDefaultHost(defaultHost);
  +service.setContainer(engine);
  +// Add the new instance to its parent component
  +Server server = ServerFactory.getServer();
  +server.addService(service);
  +Vector onames = new Vector();
  +ObjectName oname =
  +MBeanUtils.createObjectName(engineName, engine);
  +onames.add(0, oname);
  +oname = MBeanUtils.createObjectName(engineName, service);
  +onames.add(1, oname);
  +return (onames);
  +
  +}
  +
  +
   /**
   

cvs commit: jakarta-tomcat-catalina/webapps/admin/server server.jsp

2003-03-19 Thread amyroh
amyroh  2003/03/19 21:40:11

  Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin
Lists.java TomcatTreeBuilder.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector
DeleteConnectorsAction.java
SaveConnectorAction.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/context
DeleteContextsAction.java EditContextAction.java
SaveContextAction.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/defaultcontext
DeleteDefaultContextsAction.java
SaveDefaultContextAction.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host
DeleteHostAction.java DeleteHostsAction.java
SaveHostAction.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger
DeleteLoggersAction.java SaveLoggerAction.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm
DeleteRealmsAction.java SaveJDBCRealmAction.java
SaveJNDIRealmAction.java SaveMemoryRealmAction.java
SaveUserDatabaseRealmAction.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/server
EditServerAction.java SaveServerAction.java
ServerForm.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/service
AddServiceAction.java DeleteServicesAction.java
EditServiceAction.java SaveServiceAction.java
ServiceForm.java
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin/valve
ValveUtil.java
   webapps/admin/server server.jsp
  Log:
  Admin update.
  
  Revision  ChangesPath
  1.6   +63 -46
jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/Lists.java
  
  Index: Lists.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/Lists.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Lists.java18 Mar 2003 10:48:14 -  1.5
  +++ Lists.java20 Mar 2003 05:40:09 -  1.6
  @@ -237,8 +237,8 @@
   String hostPrefix = "//"+host.getKeyProperty("host");
   String hostAttr = null;
   while (names.hasNext()) {
  -name = names.next().toString();
  -oname = new ObjectName(name);
  +name = names.next().toString();
  +oname = new ObjectName(name);
   hostAttr = oname.getKeyProperty("name");
   if (hostAttr.startsWith(hostPrefix)) {
   contexts.add(name);
  @@ -285,6 +285,7 @@
   public static List getDefaultContexts(MBeanServer mbserver, ObjectName 
   container) throws Exception {
   
  +// FIXME
   StringBuffer sb = new StringBuffer(container.getDomain());
   sb.append(":type=DefaultContext");
   String type = container.getKeyProperty("type");
  @@ -381,23 +382,7 @@
   public static List getLoggers(MBeanServer mbserver, ObjectName container)
   throws Exception {
   
  -StringBuffer sb = new StringBuffer(container.getDomain());
  -sb.append(":type=Logger");
  -String type = container.getKeyProperty("type");
  -String path = container.getKeyProperty("path");
  -if (path != null) {
  -sb.append(",path=");
  -sb.append(path);
  -}
  -String host = container.getKeyProperty("host");
  -if ("Host".equals(type)) {
  -host = container.getKeyProperty("host");
  -}
  -if (host != null) {
  -sb.append(",host=");
  -sb.append(host);
  -}
  -ObjectName search = new ObjectName(sb.toString());
  +ObjectName search = getSearchObject(container, "Logger");
   ArrayList loggers = new ArrayList();
   Iterator names = mbserver.queryNames(search, null).iterator();
   while (names.hasNext()) {
  @@ -440,23 +425,7 @@
   public static List getRealms(MBeanServer mbserver, ObjectName container)
   throws Exception {
   
  -StringBuffer sb = new StringBuffer(container.getDomain());
  -sb.append(":type=Realm");
  -String type = container.getKeyProperty("type");
  -String path = container.getKeyProperty("path");
  -if (path != null) {
  -sb.append(",path=");
  -sb.append(path);
  -}
  -String host = container.getKeyProperty("host");
  -if ("Host".equals(type)) {
  -host = container.getKeyP

RE: [4.1.23] Deprecating mod_webapp

2003-03-19 Thread George Sexton
>From a purely practical standpoint, that would be terribly complicated.
Mod_webapp would have to read and fully understand the web.xml and all of
the servlet mappings. This is made even more impossible by the addition of
filters to the Servlet API. How can mod_webapp even begin to guess at the
hidden logic contained within a filter? It is totally impossible. It's not
clear to me that you could feasibly implement this kind of front end and
incur less overhead that simply passing the request to the servlet engine.
Even if you could, at the end of the day, it would still be non-compliant
because the last sentence of the second paragraph of section 3.1 of the
Servlet API 2.3 Spec says:

"all requests that begin with the /catalog request path, known as the
context path, are routed to the web application associated with the servlet
context."

I quoted this exact spec to a client because they wanted to do what you
propose, only their engine is not smart enough to parse the web.xml. they
wanted me to rename all of my pages to end in ".jsp" so that it would get
forwarded.

To be compliant, the spec must be fulfilled. ALL requests for the context
path must be forwarded to the application. To do otherwise is not compliant
with the spec. A specification is like a map through a mine field. You must
do precisely what it says, without expansion, or interpolation. If you do
otherwise, you will at the least blow your foot off. In our case, by
scrupulously following the spec, we have an application that has been tested
on 6-8 servlet engines with only one small tweak to work around a bug in one
of them.

Deviation from the specification, even in the name of imagined efficiency is
not acceptable. This is particularly true of Tomcat since it has the role of
"Reference Implementation".

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585

-Original Message-
From: Endre Stølsvik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 2:06 AM
To: Tomcat Developers List
Subject: Re: [4.1.23] Deprecating mod_webapp


On Mon, 17 Mar 2003, George Sexton wrote:

| It's also horribly broken and not compliant with the servlet API.
| Specifically, it doesn't forward all requests within the context to the
| servlet engine, but attempts to let Apache fulfill static requests.

Isn't that one of the good reasons for having Apache as frontend? Serving
(largish) images and other static files (e.g. stylesheets, XML, dtds etc)
could be much mor effectively done by Apache, instead of using IPC of some
kind to an Java engine, which had to parse and serve the request.. I mean,
there are _large_ overheads that could be avoided..

If the mod_webapp served static requests, but honored the web.xml file
_completly_, then it would be great, right?


--
Mvh,
Endre Stølsvik   M[+47 93054050] F[+47 51625182]
Developer @ CoreTrek AS -  http://www.coretrek.com/
CoreTrek corporate portal / EIP -  http://www.corelets.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp SimpleTcpCluster.java

2003-03-19 Thread fhanik
fhanik  2003/03/19 16:19:27

  Modified:modules/cluster/src/share/org/apache/catalina/cluster/tcp
SimpleTcpCluster.java
  Log:
  added in empty methods for compilations
  
  Revision  ChangesPath
  1.7   +80 -6 
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java
  
  Index: SimpleTcpCluster.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SimpleTcpCluster.java 15 Mar 2003 00:20:56 -  1.6
  +++ SimpleTcpCluster.java 20 Mar 2003 00:19:27 -  1.7
  @@ -101,9 +101,11 @@
   
   import org.apache.commons.logging.Log;
   
  -
  +import java.io.IOException;
  +import java.net.URL;
   /**
  - * A Cluster implementation using JavaGroups. Responsible for setting
  + * A Cluster implementation using simple multicast.
  + * Responsible for setting
* up a cluster and provides callers with a valid multicast receiver/sender.
*
* @author Filip Hanik
  @@ -669,6 +671,78 @@
   //
   //}//end if
   }
  +
  +// - Cluster Wide 
Deployments
  +/**
  + * Start an existing web application, attached to the specified context
  + * path in all the other nodes in the cluster.
  + * Only starts a web application if it is not running.
  + *
  + * @param contextPath The context path of the application to be started
  + *
  + * @exception IllegalArgumentException if the specified context path
  + *  is malformed (it must be "" or start with a slash)
  + * @exception IllegalArgumentException if the specified context path does
  + *  not identify a currently installed web application
  + * @exception IOException if an input/output error occurs during
  + *  startup
  + */
  +public void startContext(String contextPath) throws IOException {
  +return;
  +}
  +
  +
  +/**
  + * Install a new web application, whose web application archive is at the
  + * specified URL, into this container with the specified context path.
  + * A context path of "" (the empty string) should be used for the root
  + * application for this container.  Otherwise, the context path must
  + * start with a slash.
  + * 
  + * If this application is successfully installed, a ContainerEvent of type
  + * PRE_INSTALL_EVENT will be sent to registered listeners
  + * before the associated Context is started, and a ContainerEvent of type
  + * INSTALL_EVENT will be sent to all registered listeners
  + * after the associated Context is started, with the newly created
  + * Context as an argument.
  + *
  + * @param contextPath The context path to which this application should
  + *  be installed (must be unique)
  + * @param war A URL of type "jar:" that points to a WAR file, or type
  + *  "file:" that points to an unpacked directory structure containing
  + *  the web application to be installed
  + *
  + * @exception IllegalArgumentException if the specified context path
  + *  is malformed (it must be "" or start with a slash)
  + * @exception IllegalStateException if the specified context path
  + *  is already attached to an existing web application
  + * @exception IOException if an input/output error was encountered
  + *  during installation
  + */
  +public void installContext(String contextPath, URL war) {
  +return;
  +}
  +
  +
  +/**
  + * Stop an existing web application, attached to the specified context
  + * path.  Only stops a web application if it is running.
  + *
  + * @param contextPath The context path of the application to be stopped
  + *
  + * @exception IllegalArgumentException if the specified context path
  + *  is malformed (it must be "" or start with a slash)
  + * @exception IllegalArgumentException if the specified context path does
  + *  not identify a currently installed web application
  + * @exception IOException if an input/output error occurs while stopping
  + *  the web application
  + */
  +public void stop(String contextPath) throws IOException {
  +return;
  +}
  +
  +
  +
   // -  Inner Class
   
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina Cluster.java

2003-03-19 Thread fhanik
fhanik  2003/03/19 16:11:05

  Modified:catalina/src/share/org/apache/catalina Cluster.java
  Log:
  added methods for cluster wide deployments
  
  Revision  ChangesPath
  1.3   +71 -8 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java
  
  Index: Cluster.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Cluster.java  5 Dec 2002 12:22:15 -   1.2
  +++ Cluster.java  20 Mar 2003 00:11:05 -  1.3
  @@ -63,8 +63,8 @@
   
   package org.apache.catalina;
   
  -
  -
  +import java.io.IOException;
  +import java.net.URL;
   /**
* A Cluster works as a Cluster client/server for the local host
* Different Cluster implementations can be used to support different
  @@ -76,6 +76,7 @@
*
* @author Bip Thelin
* @author Remy Maucherat
  + * @author Filip Hanik
* @version $Revision$, $Date$
*/
   
  @@ -151,12 +152,74 @@
   // - Public Methods
   
   /**
  - * Create a new manager which will use this cluster to replicate its 
  + * Create a new manager which will use this cluster to replicate its
* sessions.
  - * 
  + *
* @param name Name (key) of the application with which the manager is
* associated
*/
   public Manager createManager(String name);
  +
  +// - Cluster Wide 
Deployments
  +/**
  + * Start an existing web application, attached to the specified context
  + * path in all the other nodes in the cluster.
  + * Only starts a web application if it is not running.
  + *
  + * @param contextPath The context path of the application to be started
  + *
  + * @exception IllegalArgumentException if the specified context path
  + *  is malformed (it must be "" or start with a slash)
  + * @exception IllegalArgumentException if the specified context path does
  + *  not identify a currently installed web application
  + * @exception IOException if an input/output error occurs during
  + *  startup
  + */
  +public void startContext(String contextPath) throws IOException;
  +
  +
  +/**
  + * Install a new web application, whose web application archive is at the
  + * specified URL, into this container with the specified context path.
  + * A context path of "" (the empty string) should be used for the root
  + * application for this container.  Otherwise, the context path must
  + * start with a slash.
  + * 
  + * If this application is successfully installed, a ContainerEvent of type
  + * PRE_INSTALL_EVENT will be sent to registered listeners
  + * before the associated Context is started, and a ContainerEvent of type
  + * INSTALL_EVENT will be sent to all registered listeners
  + * after the associated Context is started, with the newly created
  + * Context as an argument.
  + *
  + * @param contextPath The context path to which this application should
  + *  be installed (must be unique)
  + * @param war A URL of type "jar:" that points to a WAR file, or type
  + *  "file:" that points to an unpacked directory structure containing
  + *  the web application to be installed
  + *
  + * @exception IllegalArgumentException if the specified context path
  + *  is malformed (it must be "" or start with a slash)
  + * @exception IllegalStateException if the specified context path
  + *  is already attached to an existing web application
  + * @exception IOException if an input/output error was encountered
  + *  during installation
  + */
  +public void installContext(String contextPath, URL war);
  +
  +/**
  + * Stop an existing web application, attached to the specified context
  + * path.  Only stops a web application if it is running.
  + *
  + * @param contextPath The context path of the application to be stopped
  + *
  + * @exception IllegalArgumentException if the specified context path
  + *  is malformed (it must be "" or start with a slash)
  + * @exception IllegalArgumentException if the specified context path does
  + *  not identify a currently installed web application
  + * @exception IOException if an input/output error occurs while stopping
  + *  the web application
  + */
  +public void stop(String contextPath) throws IOException;
   
   }
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 18174] New: - "servlet instance for Invoker.scroll unavailable" continuously logged by Tomcat

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18174

"servlet instance for Invoker.scroll unavailable" continuously logged by Tomcat

   Summary: "servlet instance for Invoker.scroll unavailable"
continuously logged by Tomcat
   Product: Tomcat 4
   Version: 4.1.12
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I had been running Tomcat 4.1.12 on an NT4.0 sp6+, for about one month when 
Tomcat began producing the following error in its log files. It occurs 
continuously each day while the web apps using servlets are being accessed. 
NOWHERE in my apps is there a servlet "scroll", nor is there any reference to 
one. Additionally, I have set debug="0" in the config .xml files. 

I have installed Tomcat 4.1.12 onto my Win2000 PC but only sporadically get 
this message. While the occurrence of this does not interrupt my web apps, I'm 
concerned that the log files are daily growing to 8 - 14mb. Also, it is not 
normal behaviour.

Is there a servlet in Catalina called "scroll" or is this somehow a problem in 
my apps or my Sun Java packages? Any help that could be provided would be 
greatly appreciated.

Thanks
Tom


2003-01-29 16:14:38 StandardWrapper[:org.apache.catalina.INVOKER.scroll]: 
Marking servlet org.apache.catalina.INVOKER.scroll as unavailable
2003-01-29 16:14:38 invoker: Cannot allocate servlet instance for 
path /servlet/scroll
javax.servlet.ServletException: Wrapper cannot find servlet class scroll or a 
class it depends on
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:880)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:658)
at org.apache.catalina.servlets.InvokerServlet.serveRequest
(InvokerServlet.java:408)
at org.apache.catalina.servlets.InvokerServlet.doGet
(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:260)

. . . text removed for brevity . . .

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.ClassNotFoundException: scroll
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1428)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1274)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:874)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:658)
at org.apache.catalina.servlets.InvokerServlet.serveRequest
(InvokerServlet.java:408)
at org.apache.catalina.servlets.InvokerServlet.doGet
(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:260)
. . . text removed for brevity . . .
at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:484)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Whee!! It's good to be back!

2003-03-19 Thread Jeff Tulley
How are you packaging it?  Are you putting it in a certain context, or
what?
How are you trying to view it?  Through Port 8080, or through a web
server?
It seems that your web.xml is fine.  Where are you putting the compiled
.class file in your web app's directory structure?

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 3/19/03 12:26:18 PM >>>

It's very good indeed to be back in your "midst" again, and believe me,
I will try hard to "mind my manners" and try to use this list for the
most knowledgeable insight that I can posssibly get about how to execute
certain jsp's/servlets with the Tomcat web container!!

Case in point: I am having problems with trying to see this
"TodayServlet.java" servlet of mine. It just flat doesn't show up in my
browser when I try to look at it, sad to say. It is just the most simple
and basic servlet, so it shouldn't be too much of a "big deal" to
correct whatever problem it has, so I could then see it. I naturally
have attached it to my posting, and again, it's good to be back "in your
good graces" again. 

p.s.: excuse my absolute ignorance about how servlet creation is done
successfully, but I was wondering if I possibly need a HTML file to go
along with this servlet as a helper file.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 18165] New: - Cannot access my project folder , but can from examples in webapps

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18165

Cannot access my project folder , but can from examples in webapps

   Summary: Cannot access my project folder , but can from examples
in webapps
   Product: Tomcat 4
   Version: 4.0 Beta 1
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Webapps:Administration
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hello,

I am trying to create a folder in webapps and have created WEB-INF and WEB-
INF/classes directory in that and when I am trying to access this folder from 
browser it says a tomcat error and says it is not able to reach this directory.

For the time being I have created a folder in /webapps/examples and its 
working fine.

I have worked previously with tomcat4.0.4 and tomcat4.0.6 on windows 2000, 
this is my first time working on XP and this is the first time I am facing 
this kind of a problem.

For the time being I am doing my testing from examples.

Thanks
Sunder

Can you suggest?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jasper?] jsp:getProperty converts null to ""

2003-03-19 Thread Morten Primdahl
Hi. Running Tomcat 4.1.17.  outputs the empty
string rather than null which is what gets returned from the bean, why?
I see no reason for this in the JSP 1.2 spec.

BR,

Morten



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources messages.properties jsp12.dtd

2003-03-19 Thread kinman
kinman  2003/03/19 12:51:35

  Modified:jasper2/src/share/org/apache/jasper/compiler Compiler.java
Generator.java JspUtil.java Node.java PageInfo.java
Validator.java
   jasper2/src/share/org/apache/jasper/resources
messages.properties
  Added:   jasper2/src/share/org/apache/jasper/compiler
ELFunctionMapper.java ELNode.java ELParser.java
  Removed: jasper2/src/share/org/apache/jasper/compiler
FunctionMapperImpl.java
   jasper2/src/share/org/apache/jasper/resources jsp12.dtd
  Log:
  - Remove FunctionMapperImpl.java since parseExpression does not validate
functions.
  - Implement a EL expression parser.  It only parses functions now, but
can be expanded to be a full parser, in the future.
  - Modify Generator to output a function mapper for each invokation of
EL expression evaluation.  The namespace for functions can now be reused,
if the page is in XML syntax.
  
  Revision  ChangesPath
  1.59  +4 -1  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java
  
  Index: Compiler.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- Compiler.java 27 Feb 2003 22:51:38 -  1.58
  +++ Compiler.java 19 Mar 2003 20:51:34 -  1.59
  @@ -253,7 +253,7 @@
   
// Generate FunctionMapper (used for validation of EL expressions and
// code generation)
  - pageInfo.setFunctionMapper(new FunctionMapperImpl(this));
  + // pageInfo.setFunctionMapper(new FunctionMapperImpl(this));
   
// Validate and process attributes
Validator.validate(this, pageNodes);
  @@ -278,6 +278,9 @@
// Optimizations by Tag Plugins
TagPluginManager tagPluginManager = options.getTagPluginManager();
tagPluginManager.apply(pageNodes, errDispatcher, pageInfo);
  +
  + // Generate static funciton mapper codes.
  + ELFunctionMapper.map(this, pageNodes);
   
// generate servlet .java file
Generator.generate(writer, this, pageNodes);
  
  
  
  1.174 +7 -74 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java
  
  Index: Generator.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.173
  retrieving revision 1.174
  diff -u -r1.173 -r1.174
  --- Generator.java8 Mar 2003 00:58:09 -   1.173
  +++ Generator.java19 Mar 2003 20:51:34 -  1.174
  @@ -435,10 +435,6 @@
   out.printil("}");
   out.println();
   }
  -
  -// Static data for EL function and prefix maps:
  -generateELFunctionMap();
  -generateFunctionMapper();
   }
   
   /**
  @@ -613,70 +609,6 @@
}
   }
   
  -/**
  - * Generates EL Function map section
  - */
  -private void generateELFunctionMap() 
  -throws JasperException
  -{
  -FunctionMapperImpl fnMap = pageInfo.getFunctionMapper();
  -
  -out.printil("private static 
org.apache.jasper.runtime.ProtectedFunctionMapper _jspx_fnmap;");
  -if (!fnMap.isEmpty()) {
  -Iterator iter = fnMap.keySet().iterator();
  -out.println();
  -out.printil("static {");
  -out.pushIndent();
  - out.printil("_jspx_fnmap = 
org.apache.jasper.runtime.ProtectedFunctionMapper.getInstance();");
  -while (iter.hasNext()) {
  -String key = (String) iter.next();
  - out.printin("_jspx_fnmap.mapFunction(");
  - out.print(quote(key));
  - out.print(", ");
  - out.print(fnMap.getFunctionClass(key) + ".class, ");
  - out.print(quote(fnMap.getMethodName(key)));
  - out.print(", ");
  - Class[] args = fnMap.getParameterTypes(key);
  - if (args != null) {
  - out.print("new Class[] {" );
  - for( int j = 0; j < args.length; j++ ) {
  - out.print( args[j].getName() + ".class" );
  - if( j < (args.length - 1) ) {
  - out.print( ", " );
  - }
  - }
  - out.print("} ");
  - } else {
  - out.print("null");
  - }
  - out.println(");");
  - }
  - out.popIndent();
  - out.printil("}");
  - out.println();
  - }
  -}
  -
  -/**
  - * Generates the method needed to implement FunctionMapper
  - */
 

DO NOT REPLY [Bug 18161] New: - ServerCookie class is throwing an exception based on a cookie value

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18161

ServerCookie class is throwing an exception based on a cookie value

   Summary: ServerCookie class is throwing an exception based on a
cookie value
   Product: Tomcat 4
   Version: 4.1.18
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Connector:Other
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


A 3rd party vendor is assigning a cookie to the request and 


org.apache.coyote.tomcat4.CoyoteResponseFacade


is throwing the exception below.




As an "on the fly" fix I modified the maybeQuote to the following and it now is 
working correctly.




public static void maybeQuote (int version, StringBuffer buf,


String value)


{


// special case - a \n or \r  shouldn't happen in any case


if ( isToken (value))


  buf.append (value);


else {


  //  if(version==0)


//  throw new IllegalArgumentException( value );


 //   else {


buf.append ('"');


buf.append (value);


buf.append ('"');


 //   }


}


}




// log


static final int dbg=1;


public static void log(String s ) {


System.out.println("ServerCookie: " + s);


}




}






java.lang.IllegalArgumentException: 011English&m%2Fd%2Fyy&%2E&,&,


at


org.apache.tomcat.util.http.ServerCookie.maybeQuote(ServerCookie.java:315)


at


org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java


:248)


at


org.apache.coyote.tomcat4.CoyoteResponse.addCookie(CoyoteResponse.java:864)


at


org.apache.coyote.tomcat4.CoyoteResponseFacade.addCookie(CoyoteResponseFacad


e.java:278)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Whee!! It's good to be back!

2003-03-19 Thread Steve Burrus
It's very good indeed to be back in your "midst" again, and believe me, I will try hard to "mind my manners" and try to use this list for the most knowledgeable insight that I can posssibly get about how to execute certain jsp's/servlets with the Tomcat web container!!
Case in point: I am having problems with trying to see this "TodayServlet.java" servlet of mine. It just flat doesn't show up in my browser when I try to look at it, sad to say. It is just the most simple and basic servlet, so it shouldn't be too much of a "big deal" to correct whatever problem it has, so I could then see it. I naturally have attached it to my posting, and again, it's good to be back "in your good graces" again. 
p.s.: excuse my absolute ignorance about how servlet creation is done successfully, but I was wondering if I possibly need a HTML file to go along with this servlet as a helper file.import java.io.*;
import java.util.Date;
import javax.servlet.*;
import javax.servlet.http.*;

public class TodayServlet extends HttpServlet {

   public void doGet( HttpServletRequest request, 
  HttpServletResponse response )
 throws IOException, ServletException {
  response.setContentType( "text/HTML" );
  response.setHeader( "Pragma", "no cache" ); 
  response.setHeader( "Cache-Control", "no cache" );
  response.setHeader( "Expires", "0" );
  PrintWriter out = response.getWriter();
  out.println( "" );
  out.println( "" );
  out.println( "Today" );
  out.println( "" );
  out.println( "" );
 out.println("The Date and Time, if u didn't know,is:" );
  Date today = new Date(); 
  out.println( "" + today + "" );
  out.flush();
  out.println( "" );
  out.println( "" );
   }
}
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>

 

 
 How to program servlet examples 
   

 
this is the web app. in which we show our servlets/jsp's. 
 

 
today
TodayServlet
 

 
today
/today
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Xerces Question

2003-03-19 Thread Bill Barker
I didn't try the command line, but from within Tomcat it certainly didn't
like it :).  Strangely, I get a different error with DataSourceRealm (not
that it helps, since DSR doesn't support CLIENT-CERT).

Costin's suggestion of hacking MemoryRuleSet to take elements sounds like
the easiest way to go.

- Original Message -
From: "Jean-Francois Arcand" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 7:19 AM
Subject: Re: Xerces Question


> From your description, everything seems fine. Does the error occurs
> only inside Tomcat or if you parse your file using the command line if
> also choke?
>
> -- Jeanfrancois
>
> Bill Barker wrote:
>
> >I've been trying to set up a CLIENT-CERT authentication for MemoryRealm
(one
> >of the few that handles it :).  The CN for the cert has embedded "
> >characters in it.  It seems that xerces chokes on attributes that have
> >" embedded in them (which I had learned was the only reason to have
> >" defined in the first place :).  I've tried all of the XML tricks
that
> >I know (e.g. ), but nothing works.  Any
hints
> >on how to embed " into an attribute?
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SingleThreadModel and multiple servlet instance

2003-03-19 Thread Bill Barker

- Original Message -
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 5:43 AM
Subject: Re: SingleThreadModel and multiple servlet instance


> Razvan Dani wrote:
> > Hi
> >
> > I recently noticed that some of my servlets have a strange behaviour
> > when concurential requests are made to them (mainly becase there are
> > some variables defined in those servlets).
> >
> > I also recently found that by using "implements SingleThreadModel" i
> > avoid this problem (pretty much by synchronizing the doGet and doPost).
> > But this raises to me the problem that i won't be able to serve more
> > request from that servlet at (almost) the same time. The second request
> > will wait for the first one to completelly finish ...
> >
> > Due to this, i'd like to combine "implements SingleThreadModel" with the
> > ability to somehow have multiple servlet instances, instead of just one.
> >
> > By surfing the Interned i was driven to the conclusion that some servlet
> > engines have some configurations available in order to specify the max
> > number of instances for a single servlet class.
> >
> > My question is if there is any version of Tomcat that have such a
> > feature available or not. If not, a simple answer saying so would be
> > good enough for me. If yes, i would apreciate a lot any guidelines that
> > you could have to drive me to the right direction.
>
> All Tomcat 4.1.x releases have that.
>

As does Tomcat 3.3.1.

> Remy
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat - JBoss integration and clustering of course :)

2003-03-19 Thread Filip Hanik
thanks for the explanation, I will definitely have to learn more about how JMX is 
implemented, that is probably why you don't have so much feedback yet :)

Filip

> -Original Message-
> From: Costin Manolache [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 19, 2003 10:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat - JBoss integration and clustering of course :)
> 
> 
> Filip Hanik wrote:
> 
>  
> > So for Tomcat 5, I'd like to learn more on how this is 
> changed so that all
> > the features in clustering are still usuable in an embedded 
> environment.
> 
> For tomcat5 the "recomended" way to embed will be JMX.
> 
> The embedding app ( jboss for example ) will need to create 
> at least the
> MBean for an Engine, and create and configure mbeans for 
> contexts and all 
> components they want to fine tune.
> 
> Tomcat will create all the other components that it needs - 
> using reasonable
> defaults.
> 
> To set a different manager for a context - you should create 
> an mbean named:
>   DOMAIN:type=Manager,host=localhost,path=/
> with "code" beeing your favorite manager.
> 
> ( that's the current naming - it may change if anyone cares 
> to start sending 
> feedback:-)
> 
> Each component must support 2 use cases:
> - when it is loaded via JMX - it should use preRegister to 
> record its name
> and init() to locate the parent and register itself. In this case the
> parent will be the context
>   DOMAIN:j2eeType=WebModule,name=//localhost/,...
> ( for Contexts and servlets you'll need to search - I'm still 
> trying to
> figure how to do it easily, probably some helper methods in 
> ContainerBase )
> And you will set the JMX attribute "manager". 
> This will be implemented in the base manager - so you don't 
> need to worry
> about it in the custom impl.
> 
> - when it is loaded via API ( new FooManager(), 
> context.setManager( foo ) ), 
> it must register itself in the JMX console during init(). 
> That's done by
> first checking if oname is not set and creating an object name.
> 
> 
> Costin
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat - JBoss integration and clustering of course :)

2003-03-19 Thread Costin Manolache
Filip Hanik wrote:

 
> So for Tomcat 5, I'd like to learn more on how this is changed so that all
> the features in clustering are still usuable in an embedded environment.

For tomcat5 the "recomended" way to embed will be JMX.

The embedding app ( jboss for example ) will need to create at least the
MBean for an Engine, and create and configure mbeans for contexts and all 
components they want to fine tune.

Tomcat will create all the other components that it needs - using reasonable
defaults.

To set a different manager for a context - you should create an mbean named:
  DOMAIN:type=Manager,host=localhost,path=/
with "code" beeing your favorite manager.

( that's the current naming - it may change if anyone cares to start sending 
feedback:-)

Each component must support 2 use cases:
- when it is loaded via JMX - it should use preRegister to record its name
and init() to locate the parent and register itself. In this case the
parent will be the context
  DOMAIN:j2eeType=WebModule,name=//localhost/,...
( for Contexts and servlets you'll need to search - I'm still trying to
figure how to do it easily, probably some helper methods in ContainerBase )
And you will set the JMX attribute "manager". 
This will be implemented in the base manager - so you don't need to worry
about it in the custom impl.

- when it is loaded via API ( new FooManager(), context.setManager( foo ) ), 
it must register itself in the JMX console during init(). That's done by
first checking if oname is not set and creating an object name.


Costin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat-user

2003-03-19 Thread Craig R. McClanahan


On Wed, 19 Mar 2003, Mladen Turk wrote:

> Date: Wed, 19 Mar 2003 18:45:05 +0100
> From: Mladen Turk <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: 'Tomcat Developers List' <[EMAIL PROTECTED]>
> Subject: RE: Tomcat-user
>
>
>
> > -Original Message-
> > From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]
> > Sent: 19. o?ujak 2003 16:23
> > To: '[EMAIL PROTECTED]'
> > Subject: Tomcat-user
> >
> >
> > Hola a todos:
> >
> > As any of you know i'm currently one the moderators ( well
> > i'm mostly the human spamwatch, but this another history :)..
> >
> > Tomcat-user is becoming bigger and bigger over time, and more
> > and more devoted to jk/jk2, general user questions are
> > becoming more and more rare  this is a exageration of
> > course, but those that lurk there know what i'm saying :)..
> >
> > I wonder if it's time to split up the user list ? the split
> > should be tomcat-connectors-user and tomcat-user..
> >
> > Comments?
> >
>
> +1.
>
> I'm not sure about list naming perhaps just tomcat-connectors?
>

My experience has been that splitting lists like this has many more
negative consequences than positive ones.

* Newbies don't know where to post anyway, so they post to the
  wrong list (or, worse, double post)

* People answering questions have to subscribe to two lists
  (and wade through those double posts twice instead of once)

* People ask questions on one list that have already been
  answered ad nauseum on the other.

Questions related to the connectors have always been the large majority of
the issues raised on TOMCAT-USER.  Having two lists isn't going to change
that.  As one of the several people here who *does* subscribe to
TOMCAT-USER and tries to answer the occasional question (although not
about connectors; they're black magic to me :-), I'm -1 on splitting.

> MT.
>

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat - JBoss integration and clustering of course :)

2003-03-19 Thread Filip Hanik
Remy and all others, 
who is currently working on the Tomcat/JBoss integration. I've been getting some 
inquiries about running the Tomcat session replication instead of JBoss session 
replication on the Tomcat/JBoss platform.

I looked into the jboss-3.0.6-tomcat-4.1.18 bundle and the code for JBoss is 
incorrect. They have set up an invalid way of parsing for their tomcat-service.xml 
ruleset, which disallows you to override the manager to use. 

So for Tomcat 5, I'd like to learn more on how this is changed so that all the 
features in clustering are still usuable in an embedded environment.

Filip

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat-user

2003-03-19 Thread Mladen Turk


> -Original Message-
> From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED] 
> Sent: 19. ožujak 2003 16:23
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat-user
> 
> 
> Hola a todos:
> 
> As any of you know i'm currently one the moderators ( well 
> i'm mostly the human spamwatch, but this another history :)..
> 
> Tomcat-user is becoming bigger and bigger over time, and more 
> and more devoted to jk/jk2, general user questions are 
> becoming more and more rare  this is a exageration of 
> course, but those that lurk there know what i'm saying :).. 
> 
> I wonder if it's time to split up the user list ? the split 
> should be tomcat-connectors-user and tomcat-user.. 
> 
> Comments?
> 

+1.

I'm not sure about list naming perhaps just tomcat-connectors?

MT.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 17401] - Symbolic links not handled properly

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17401

Symbolic links not handled properly

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
   Severity|Normal  |Major



--- Additional Comments From [EMAIL PROTECTED]  2003-03-19 16:35 ---
Though the symbolic link approach mentioned by Stan is non-standard, it is 
absolutely necessary to avoid egregious duplication of resources in large web 
apps where resources are shared between multiple tiers, e.g. applet clients and 
servlets.

Please fix this!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 14064] - Symbolic links broken

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14064

Symbolic links broken





--- Additional Comments From [EMAIL PROTECTED]  2003-03-19 16:33 ---
As this is filed many times as a bug, what makes it "INVALID"?

I understand that the spec does not require symbolic link handling.

On the other hand it is very, very helpful in many real world situations!

Any chance this could be reconsidered?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 18147] New: - Using HttpServletResponse.sendRedirect() with a mailto loses the 'to' information

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18147

Using HttpServletResponse.sendRedirect() with a mailto loses the 'to' information

   Summary: Using HttpServletResponse.sendRedirect() with a mailto
loses the 'to' information
   Product: Tomcat 4
   Version: 4.1.18
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Major
  Priority: Other
 Component: Servlet & JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


>From a servlet, in doGet - redirect the response like so:
  public void doGet(HttpServletRequest req, HttpServletResponse res) {
//lot of stuff snipped
 res.sendRedirect("mailto:[EMAIL PROTECTED]") ;
//...
  } 

The browser gets "mailto:?subject=test";.  Notice the 'to' address is missing.
Happens without parameters (?subject...) as well, will just get "mailto:"; in 
the browser.

This is not a browser issue, happens with multiple browsers:
- IE 5.5, 6 on Windows 2000:  A blank browser window results with "mailto:"; in 
the address bar, an email message composer pops up with nothing in the "to" 
field.
- Konqueror 3.0.5a Using KDE 3.0.5a on Linux:  browser returns the 
message "Access denied to mailto:?subject=test";

Tomcat is running on Linux (RH7.1)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat-user

2003-03-19 Thread Ignacio J. Ortega
Hola a todos:

As any of you know i'm currently one the moderators ( well i'm mostly
the human spamwatch, but this another history :)..

Tomcat-user is becoming bigger and bigger over time, and more and more
devoted to jk/jk2, general user questions are becoming more and more
rare  this is a exageration of course, but those that lurk there know
what i'm saying :).. 

I wonder if it's time to split up the user list ? the split should be
tomcat-connectors-user and tomcat-user.. 

Comments?

Saludos, 
Ignacio J. Ortega 

PS: it's a fact that we, jk/jk2 people, should think of :).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Xerces Question

2003-03-19 Thread Costin Manolache
Bill Barker wrote:

> I've been trying to set up a CLIENT-CERT authentication for MemoryRealm
> (one
> of the few that handles it :).  The CN for the cert has embedded "
> characters in it.  It seems that xerces chokes on attributes that have
> " embedded in them (which I had learned was the only reason to have
> " defined in the first place :).  I've tried all of the XML tricks
> that
> I know (e.g. ), but nothing works.  Any
> hints on how to embed " into an attribute?

Just don't embed it in the attribute :-), add an element and make it 
normal CDATA.

Costin




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Xerces Question

2003-03-19 Thread Jean-Francois Arcand
From your description, everything seems fine. Does the error occurs 
only inside Tomcat or if you parse your file using the command line if 
also choke?

-- Jeanfrancois

Bill Barker wrote:

I've been trying to set up a CLIENT-CERT authentication for MemoryRealm (one
of the few that handles it :).  The CN for the cert has embedded "
characters in it.  It seems that xerces chokes on attributes that have
" embedded in them (which I had learned was the only reason to have
" defined in the first place :).  I've tried all of the XML tricks that
I know (e.g. ), but nothing works.  Any hints
on how to embed " into an attribute?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 18135] - mod_jk: sticky_session defaults to 0 and not to 1 as documented.

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18135

mod_jk: sticky_session defaults to 0 and not to 1 as documented.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-03-19 14:29 ---
Thanks for reporting this.  Bug fix patch applied and committed to CVS.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-connectors/jk/native/common jk_util.c

2003-03-19 Thread glenn
glenn   2003/03/19 06:25:40

  Modified:jk/native/common jk_util.c
  Log:
  Bug 18135 fix, thanks to Gabriele Garuglieri
  
  Revision  ChangesPath
  1.21  +2 -2  jakarta-tomcat-connectors/jk/native/common/jk_util.c
  
  Index: jk_util.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_util.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- jk_util.c 28 Feb 2003 17:58:39 -  1.20
  +++ jk_util.c 19 Mar 2003 14:25:40 -  1.21
  @@ -504,7 +504,7 @@
   if (m && wname) {
   int value;
   sprintf(buf, "%s.%s.%s", PREFIX_OF_WORKER, wname, STICKY_SESSION);
  -value = map_get_int(m, buf, 0);
  +value = map_get_int(m, buf, 1);
   if (!value) rc = JK_FALSE;
   }
   return rc;
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SingleThreadModel and multiple servlet instance

2003-03-19 Thread Glenn Nielsen
I would recommend refactoring the code for the servlet so that it is
thread safe and no longer needs to use SingleThreadModel.
Glenn

Razvan Dani wrote:
Hi

I recently noticed that some of my servlets have a strange behaviour
when concurential requests are made to them (mainly becase there are
some variables defined in those servlets).
I also recently found that by using "implements SingleThreadModel" i
avoid this problem (pretty much by synchronizing the doGet and doPost).
But this raises to me the problem that i won't be able to serve more
request from that servlet at (almost) the same time. The second request
will wait for the first one to completelly finish ...
Due to this, i'd like to combine "implements SingleThreadModel" with the
ability to somehow have multiple servlet instances, instead of just one.
By surfing the Interned i was driven to the conclusion that some servlet
engines have some configurations available in order to specify the max
number of instances for a single servlet class.
My question is if there is any version of Tomcat that have such a
feature available or not. If not, a simple answer saying so would be
good enough for me. If yes, i would apreciate a lot any guidelines that
you could have to drive me to the right direction.
Thanks in advance
Razvan Dani
--
Razvan Dani
ARoBS Transilvania Software
- the outsourcing solution for your company !
11 Donath Str , M4 - 28
3400 Cluj-Napoca, Romania
Main:   +40 264 198 204
Fax: +40 264 198 426
email:  [EMAIL PROTECTED]
www.ARoBS.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SingleThreadModel and multiple servlet instance

2003-03-19 Thread Remy Maucherat
Razvan Dani wrote:
Hi

I recently noticed that some of my servlets have a strange behaviour
when concurential requests are made to them (mainly becase there are
some variables defined in those servlets).
I also recently found that by using "implements SingleThreadModel" i
avoid this problem (pretty much by synchronizing the doGet and doPost).
But this raises to me the problem that i won't be able to serve more
request from that servlet at (almost) the same time. The second request
will wait for the first one to completelly finish ...
Due to this, i'd like to combine "implements SingleThreadModel" with the
ability to somehow have multiple servlet instances, instead of just one.
By surfing the Interned i was driven to the conclusion that some servlet
engines have some configurations available in order to specify the max
number of instances for a single servlet class.
My question is if there is any version of Tomcat that have such a
feature available or not. If not, a simple answer saying so would be
good enough for me. If yes, i would apreciate a lot any guidelines that
you could have to drive me to the right direction.
All Tomcat 4.1.x releases have that.

Remy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SingleThreadModel and multiple servlet instance

2003-03-19 Thread Razvan Dani
Hi

I recently noticed that some of my servlets have a strange behaviour
when concurential requests are made to them (mainly becase there are
some variables defined in those servlets).

I also recently found that by using "implements SingleThreadModel" i
avoid this problem (pretty much by synchronizing the doGet and doPost).
But this raises to me the problem that i won't be able to serve more
request from that servlet at (almost) the same time. The second request
will wait for the first one to completelly finish ...

Due to this, i'd like to combine "implements SingleThreadModel" with the
ability to somehow have multiple servlet instances, instead of just one.

By surfing the Interned i was driven to the conclusion that some servlet
engines have some configurations available in order to specify the max
number of instances for a single servlet class.

My question is if there is any version of Tomcat that have such a
feature available or not. If not, a simple answer saying so would be
good enough for me. If yes, i would apreciate a lot any guidelines that
you could have to drive me to the right direction.

Thanks in advance
Razvan Dani
--
Razvan Dani
ARoBS Transilvania Software
- the outsourcing solution for your company !

11 Donath Str , M4 - 28
3400 Cluj-Napoca, Romania

Main:   +40 264 198 204
Fax: +40 264 198 426
email:  [EMAIL PROTECTED]
www.ARoBS.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] Tomcat 4.1.24 Alpha released

2003-03-19 Thread Remy Maucherat
Tomcat 4.1.24 Alpha is now available for testing.

Changes over 4.1.23 include:
- Fix for a security issue introduced in 4.1.23.
- Robust handling of bad cookies.
- Properly commit the response after a forward, sendError, and sendRedirect.
- Properly set the context classloader when using JspC.
The release notes include the full list of changes.

Downloads:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24-alpha/
Remy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 18141] New: - Multiple parameter values are disregarded on CGI POST

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18141

Multiple parameter values are disregarded on CGI POST

   Summary: Multiple parameter values are disregarded on CGI POST
   Product: Tomcat 4
   Version: 4.1.18
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Servlets:CGI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The CGI Servlet implementation in 4.1.18 does not allow multiple values per
request parameter. This is only true for the post operation as the get operation
does not make use of the CGIRunner.params hashtable.

This means the following form cannot be submitted correctly if more than one
option is selected:


1
2
3



Selecting 1 and 2 generates a bigsel=1&bigsel=2 request but only the bigsel=1
association is saved in the params hashtable.

The params hashtable should save a String[] of all values instead of a simple
String of the first value.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[4.1.24] New tag

2003-03-19 Thread Remy Maucherat
Hi,

Because of a security bug which was introduced in 4.1.23 (prior releases 
are not affected), that release will join the long list of abandoned 
alpha releases.

I have tagged a new 4.1.24 release, and am in the process of uploading it.

The only risky change is a fix to have the response be committed after a 
forward, a sendRedirect or a sendError. I don't think the fix can break 
anything, but you never know.

Remy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[GUMP] Build Failure - jakarta-tomcat-jk

2003-03-19 Thread Craig McClanahan

This email is autogenerated from the output from:



Buildfile: build.xml

detect:
 [echo]  jakarta-tomcat-connectors 

prepare:
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/conf
 [copy] Copying 8 files to 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/conf
 [copy] Copying 1 file to 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/lib
Overriding previous definition of reference to xml-apis.classpath

report:
 [echo] Tomcat33: ${tomcat33.detect} 
/home/rubys/jakarta/jakarta-tomcat/build/tomcat/lib/common/tomcat_core.jar
 [echo] Tomcat40:  true /home/rubys/jakarta/jakarta-tomcat-4.0/build
 [echo] Tomcat41: ${tomcat41.detect} /home/rubys/jakarta/jakarta-tomcat-4.1/build
 [echo] Tomcat5:  ${tomcat5.detect} 
/home/rubys/jakarta/jakarta-tomcat-catalina/build
 [echo] Apache13: ${apache13.detect} ${apache13.home}
 [echo] Apache2: ${apache2.detect} ${apache2.home}
 [echo] iPlanet:  ${iplanet.detect} ${iplanet.home}
 [echo] IIS:  ${iis.detect} ${iis.home}
 [echo] jmx:  /opt/jmx-1_0_1-ri_bin/jmx/lib/jmxri.jar true 
/home/rubys/jakarta/jakarta-commons/modeler/dist/commons-modeler.jar true

jkjava:
[javac] Compiling 45 source files to 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/classes
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:61:
 package org.apache.catalina does not exist
[javac] import org.apache.catalina.*;
[javac] ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:64:
 package javax.servlet does not exist
[javac] import javax.servlet.*;
[javac] ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/BaseJkConfig.java:61:
 package org.apache.catalina does not exist
[javac] import org.apache.catalina.*;
[javac] ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/BaseJkConfig.java:125:
 cannot resolve symbol
[javac] symbol  : class LifecycleListener 
[javac] location: class org.apache.ajp.tomcat4.config.BaseJkConfig
[javac] public class BaseJkConfig  implements LifecycleListener {
[javac]   ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:333:
 cannot resolve symbol
[javac] symbol  : class Host 
[javac] location: class org.apache.ajp.tomcat4.config.ApacheConfig
[javac] protected void generateVhostHead(Host host, PrintWriter mod_jk) {
[javac]  ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:355:
 cannot resolve symbol
[javac] symbol  : class Host 
[javac] location: class org.apache.ajp.tomcat4.config.ApacheConfig
[javac] protected void generateVhostTail(Host host, PrintWriter mod_jk) {
[javac]  ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:386:
 cannot resolve symbol
[javac] symbol  : class Context 
[javac] location: class org.apache.ajp.tomcat4.config.ApacheConfig
[javac] protected void generateStupidMappings(Context context,
[javac]   ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:425:
 cannot resolve symbol
[javac] symbol  : class Context 
[javac] location: class org.apache.ajp.tomcat4.config.ApacheConfig
[javac] protected void generateContextMappings(Context context, PrintWriter 
mod_jk )
[javac]^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:497:
 cannot resolve symbol
[javac] symbol  : class Context 
[javac] location: class org.apache.ajp.tomcat4.config.ApacheConfig
[javac] private void generateWelcomeFiles(Context context, PrintWriter mod_jk 
) {
[javac]   ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:512:
 cannot resolve symbol
[javac] symbol  : class Context 
[javac] location: class org.apache.ajp.tomcat4.config.ApacheConfig
[javac] private void generateStaticMappings(Context context, PrintWriter 
mod_jk ) {
[javac] ^
[javac] 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java:584:
 cannot reso

[GUMP] Build timed out - jk2

2003-03-19 Thread Craig McClanahan

This email is autogenerated from the output from:



Buildfile: build.xml

init.taskdef:

guess.os:
 [echo] build.properties i386.Linux
 [echo] Linux:true Win32:${win32} Netware:${netware} Solaris:${solaris} 
HPUX:${hpux}

init.win32.properties:

init.win32.mc:

init.win32:

init.netware:

init.os:

guess.server:
 [echo] Apache2 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/${env.APACHE2_HOME} 
${apache2.detect}
 [echo] Apache13 /usr true
 [echo] IIS ${iis.home} ${iis.detect}
 [echo] Iplanet ${iplanet.home} ${iplanet.detect}
 [echo] JNI ${build.jni}


init:
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk2

apache20:

apache13:
[mkdir] Created dir: 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk2/apache13
   [so] Compiling 39 out of 39
Compiling 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_channel_jni.c
Compiling /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_channel.c
Compiling 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_logger_file.c
Compiling /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_env.c
Compiling 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_channel_apr_socket.c
Compiling 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_channel_socket.c
Compiling 
/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_channel_un.c
Compiling /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native2/common/jk_config.c
/home/rubys/bin/timeout: timed out

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 18135] New: - mod_jk: sticky_session defaults to 0 and not to 1 as documented.

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18135

mod_jk: sticky_session defaults to 0 and not to 1 as documented.

   Summary: mod_jk: sticky_session defaults to 0 and not to 1 as
documented.
   Product: Tomcat 4
   Version: 4.1.21
  Platform: Sun
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Connector:JK/AJP (deprecated)
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Tomcat 4.1.21
connectors 4.1.21
Apache/2.0.44 (Unix) mod_jk/1.2.3-dev


If sticky_session property is not declared it defaults to 0 and not 1 as documented.
Migrating a working load balancing 4.1.12 configuration to mod_jk/1.2.3-dev gets
calls distributed between the workers group members, breaking the session,
unless i declare sticky_session=1 in the load balancer worker.

You can easily see in the code that if the property is not declared it defaults
to JK_FALSE.

int jk_get_is_sticky_session(jk_map_t *m,
   const char *wname) {
   int rc = JK_TRUE;
   char buf[1024];
   if (m && wname) {
   int value;
   sprintf(buf, "%s.%s.%s", PREFIX_OF_WORKER, wname, STICKY_SESSION);
   value = map_get_int(m, buf, 0);
   if (!value) rc = JK_FALSE;
   }
   return rc;
}


Putting line
value = map_get_int(m, buf, 0);
to
value = map_get_int(m, buf, 1);
makes everything working as documented.

Regards, Gabriele.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [4.1.23] Deprecating mod_webapp

2003-03-19 Thread Endre Stølsvik
On Mon, 17 Mar 2003, George Sexton wrote:

| It's also horribly broken and not compliant with the servlet API.
| Specifically, it doesn't forward all requests within the context to the
| servlet engine, but attempts to let Apache fulfill static requests.

Isn't that one of the good reasons for having Apache as frontend? Serving
(largish) images and other static files (e.g. stylesheets, XML, dtds etc)
could be much mor effectively done by Apache, instead of using IPC of some
kind to an Java engine, which had to parse and serve the request.. I mean,
there are _large_ overheads that could be avoided..

If the mod_webapp served static requests, but honored the web.xml file
_completly_, then it would be great, right?


-- 
Mvh,
Endre Stølsvik   M[+47 93054050] F[+47 51625182]
Developer @ CoreTrek AS -  http://www.coretrek.com/
CoreTrek corporate portal / EIP -  http://www.corelets.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 6983] - SSL + Mac + IE5 = no session cookies

2003-03-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983

SSL + Mac + IE5 = no session cookies





--- Additional Comments From [EMAIL PROTECTED]  2003-03-19 09:01 ---
The analysis by Anders Rundgren is slightly incorrect, although he is on the
right track.  It would be good to see this issue resolved as I suspect it
affects a larger number of people than anyone realises - IE5 is the default
browser on MacOS 9.x, of which there are many installations out there.

As suggested in the patch from Jay Sissom, the problem is that IE5/Mac needs a
space between the ';' after the last parameter and 'Secure' parameter in the
cookie.  (The actual value of JSESSIONID that Anders suggested is irrelevent).

Although not expected by default, RFC2109 states that "White space is permitted
between tokens".  Therefore it will not affect other browsers, and we have
tested to confirm this.  We apply this patch to our live servers whenever
updating them, and it has fixed past reported problems, and not affected other
browsers.

So, please could this patch be folded into the main source tree?  It would make
my life a lot easier.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]