Re: NPE when setting executor on AJP Connector

2007-05-24 Thread Mirko Nasato

Rémy Maucherat wrote:

I was disappointed when I saw the performance results of the current
executors. At the moment, you should not be using them.

Alright. I would suggest putting an EXPERIMENTAL! or similar warning in 
the docs and conf files in that case.


Kind regards

Mirko


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NPE when setting executor on AJP Connector

2007-05-24 Thread Mirko Nasato

Hi,

I've just installed Tomcat 6.0.13 and noticed in conf/server.xml that 
there is a new Executor element - commented out by default - saying "The 
connectors can use a shared executor, you can define one or more named 
thread pools".


So tried and enabled it, using the same executor for both the HTTP and 
the AJP Connectors:


   
   protocol="HTTP/1.1" .../>
   protocol="AJP/1.3" ... />


However I then get an exception when starting Tomcat:
--
May 24, 2007 3:14:34 PM org.apache.tomcat.util.digester.Digester 
startElement

SEVERE: Begin event threw exception
java.lang.NullPointerException
   at 
org.apache.catalina.startup.ConnectorCreateRule._setExecutor(ConnectorCreateRule.java:61)
   at 
org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:54)

   at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
   at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)

--

The executor seems to work only with the HTTP Connector, not the AJP 
one. However according to the docs the standard AJP implementation 
should support 'executor' as well


 http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html

Should I file a bug report?

Thanks

Mirko



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]