Re: Multiple tomcat Instances on Same Server and One Apache Instance

2012-05-14 Thread André Warnier

Pid * wrote:

On 13 May 2012, at 20:33, André Warnier a...@ice-sa.com wrote:


Pid wrote:

On 11/05/2012 18:53, Vickie Troy-McKoy wrote:

Hi, I am in need of a little help.
I have 2 tomcat instances running on the same machine and one apache instance 
running on a different machine.  I configured jk_mod to access the 1st tomcat 
instance.  Now, I have a second tomcat instance running on the same server as 
the 1st instance.  I would like to access both tomcat instances via the one 
apache webserver instance.  Because some requests are referenced by the same 
name, there is a conflict.
On the tomcat server in server.xml, one instance is running on port 8009 and 
the 2nd instance (in another directory structure) is running on 7009.

On the apache server in httpd.conf, I have the following:

Listen 80
.
.
.
LoadModule jk_module modules/mod_jk.so

#
JkWorkersFile conf/workers.properties
JkMount /abc* instance1
JkMount /xyz* instance2

In workers.properties, I have the following:

worker.list=instance1, instance2
#
worker.instance1.port=8009
worker.instance1.host=server..com
worker.instance1.type=ajp13
worker.instance1.lbfactor=1
worker.instance1.socket_keepalive=1
#
worker.instance2.port=7009
worker.instance2.host=server..com
worker.instance2.type=ajp13
worker.instance2.lbfactor=1
worker.instance2.socket_keepalive=1

When I call abc*, it goes to instance1; and when I call xyz*, it goes to instance2.  However, both 
instances have apps that start with tsa.  How do I configure the apache webserver to 
service the tsa app for both tomcat instances?

configure a load balancer (worker) that uses the (other) two workers, in 
addition to the
two workers, and add it to the worker list.

I think that rather than be added to the workers list, the load-balancer worker 
must be the only one in the list.  You then tell the balancer to balance the 
two other workers.


Then the two individual apps won't work, as they're not present on both servers.


Oh. I did not read the OP's requirements carefully enough.  Apologies, your instructions 
were correct for the OP.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: IE caching problem-

2012-05-14 Thread André Warnier

chris derham wrote:

never had this problem when i deployed to SolarisI'll try again
tommorrow when i have a REAL Operating System to deploy my webapp



So you have a web app, serving up web pages, that are being cached in a
browser. The browser is not refreshing, for reasons unknown. You say that
the clock was incorrect, but now I assume the problem is still occurring.
Yet you think that moving the webapp to a real os will help?

Browsers cache pages only if they are told to. 


That's not entirely accurate.  It's more like browsers (and proxies) are allowed to cache 
response content for re-use, except when they are told otherwise.
Roughly.  The final truth is here : 
http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13


Have you used some kind of

technique to check the headers? Fiddler or live http headers? Why are the
pages being cached?


That is the real question indeed.  And indeed it may have something to do with the HTTP 
response headers (Expires, ETag, etc..) and/or with non-compliant browsers and proxies, 
and/or browser settings.

So having a look at the HTTP headers would be a logical first step.



Once you know that, perhaps you can resolve the issue. If I had a car that
wouldn't start, I know nothing about cars but I'm reasonably confident that
changing the garage won't help the issue that much


:-)
This thread started reasonably enough, which will certainly have surprised some, 
considering the OP's historical record on this list.

But I am afraid that it has now veered into matters of little relevance to 
Tomcat per se.

In any case, I am fairly sure that Tomcat does not single out IE 9 among browsers, to 
sneakily introduce HTTP headers that would cause it to misbehave.  Given IE's own 
historical record, I would rather think that the suspicion should be the other way around.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Cluster and SSO

2012-05-14 Thread Riccardo Venittelli
Hello to all,

i'm using apache tomcat 7.0.25 with cluster configuration, apache server
2.2 for load balancing and SSO (tomcat) for authentication.

With SimpleTcpCluster, DeltaManager and ClusterSingleSignOn configuration
all works fine but if i use BackupManger SSO authentication fail.

I attach my server.xml config file.

Can you please give me an idea about what am I doing wrong?

Thanks in advance.

Riccardo



-- 
Riccardo Venittelli

ObjectWay S.p.A.
Via Flavio Domiziano, 10 - 00145 Roma
Tel: +39 0659604235
Fax: +39 0659605107
e-mail: riccardo.venitte...@objectway.it
http://www.objectway.it
Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli
sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente
il mittente e, tenuto conto delle responsabilita' connesse all'indebito
utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso
contenute, voglia cancellare l'originale e distruggere le varie copie o
stampe.

The receiver of this message is required to check if he/she has received it
erroneously. If so, the receiver is requested to immediately inform the
sender and - in consideration of the responsibilities arising from undue use
and/or disclosure of the message and/or the information contained therein -
destroy the original message and any copy or printout thereof. 

?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves at this level.
 Documentation at /docs/config/server.html
 --
Server port=8105 shutdown=SHUTDOWN
  !-- Security listener. Documentation at /docs/config/listeners.html
  Listener className=org.apache.catalina.security.SecurityListener /
  --
  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- Prevent memory leaks due to use of particular java/javax APIs--
  Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener className=org.apache.catalina.core.ThreadLocalLeakPreventionListener /

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container,
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina

!--The connectors can use a shared executor, you can define one or more named thread pools--
!--
Executor name=tomcatThreadPool namePrefix=catalina-exec-
maxThreads=150 minSpareThreads=4/
--


!-- A Connector represents an endpoint by which requests are received
 and responses are returned. Documentation at :
 Java HTTP Connector: /docs/config/http.html (blocking  non-blocking)
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port 8080
--
Connector address=172.30.6.21 port=8081 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
!-- A Connector using the shared thread pool--
!--
Connector executor=tomcatThreadPool
   port=8080 protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /
--
!-- Define a SSL HTTP/1.1 Connector on port 8443
 This connector 

Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread rohit patil
Hi All,
I have written the below piece of code (NewServlet.java) to try the Servlet
3.0 async feature.
But it is failing by throwing up the below mentioned error.

Tomcat Version: 7.0.27 (32 bit)
OS: Windows 7

java.lang.IllegalStateException: Not supported.
at org.apache.catalina.connector.Request.startAsync(Request.java:1664)
at
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1030)
at
javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379)

code snippet:
   try{
boolean asynSupported = request.isAsyncSupported();
System.out.println(asynSupported: +asynSupported);
AsyncContext async = request.startAsync(request,
response);   *//exception
is thrown at this point
*messageSender.addConnection(async);
AlertListener alertListener = new AlertListener(messageSender);
async.start(alertListener);

} catch (Throwable thr){
thr.printStackTrace();
}

web.xml snippet:

servlet
servlet-nameNewServlet/servlet-name

servlet-classsample.comet.NewServlet/servlet-class
async-supportedtrue/async-supported
/servlet


server.xml snippet :

Connector connectionTimeout=2 port=8084
protocol=org.apache.coyote.http11.Http11NioProtocol redirectPort=8443/

Even the sample program AsyncRequest that comes with tomcat does not
work. :-(   it also throws the same exception.


Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread Konstantin Kolinko
2012/5/14 rohit patil sparkb...@gmail.com:
 Hi All,
 I have written the below piece of code (NewServlet.java) to try the Servlet
 3.0 async feature.
 But it is failing by throwing up the below mentioned error.

 Tomcat Version: 7.0.27 (32 bit)
 OS: Windows 7

 java.lang.IllegalStateException: Not supported.
    at org.apache.catalina.connector.Request.startAsync(Request.java:1664)
    at
 org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1030)
    at
 javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379)

 code snippet:
   try{
            boolean asynSupported = request.isAsyncSupported();
            System.out.println(asynSupported: +asynSupported);
            AsyncContext async = request.startAsync(request,
 response);   *//exception
 is thrown at this point
 *            messageSender.addConnection(async);
            AlertListener alertListener = new AlertListener(messageSender);
            async.start(alertListener);

        } catch (Throwable thr){
            thr.printStackTrace();
        }

 web.xml snippet:

    servlet
        servlet-nameNewServlet/servlet-name

 servlet-classsample.comet.NewServlet/servlet-class
        async-supportedtrue/async-supported
    /servlet


1. You must have the same setting for all all filters in your request
processing chain.

Your stacktrace from IllegalStateException should have mentioned them.

All the valves in the chain should also support async processing (that
is declared programmatically, via Valve.isAsyncSupported() ).

2. Your web.xml (and conf/web.xml) should mark themselves as adhering
to the Sevlet 3.0 specification (with version and probably with
xsi:schemaLocation attributes on the root element).

 server.xml snippet :

 Connector connectionTimeout=2 port=8084
 protocol=org.apache.coyote.http11.Http11NioProtocol redirectPort=8443/

 Even the sample program AsyncRequest that comes with tomcat does not
 work. :-(   it also throws the same exception.

You mean those listed at the bottom of the following page:
http://localhost:8080/examples/jsp/

I've just tested and those examples work with Nio connector in 7.0.27.
I am on WinXP.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread rohit patil
Thanks for replying,

1. I do not have any filters configured.
2. Yes my web.xml does mark themselves as adhering to the Sevlet 3.0
specification
3. Yes apps under http://localhost:8080/examples/jsp/ also does NOT work,
they also throw up the same exception.

Here is the stack trace

java.lang.IllegalStateException: Not supported.
at org.apache.catalina.connector.Request.startAsync(Request.java:1664)
at
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1030)
at
javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379)
at test.comet.NewServlet.processRequest(NewServlet.java:75)
at test.comet.NewServlet.doGet(NewServlet.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)


web.xml complete contents:

?xml version=1.0 encoding=UTF-8?
web-app version=3.0 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:j2ee=http://java.sun.com/xml/ns/javaee; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;
servlet
servlet-nameNewServlet/servlet-name
servlet-classtest.comet.NewServlet/servlet-class
async-supportedtrue/async-supported
/servlet
servlet-mapping
servlet-nameNewServlet/servlet-name
url-pattern/NewServlet/url-pattern
/servlet-mapping
session-config
session-timeout
30
/session-timeout
/session-config
/web-app




On Mon, May 14, 2012 at 4:55 PM, Konstantin Kolinko
knst.koli...@gmail.comwrote:

 2012/5/14 rohit patil sparkb...@gmail.com:
  Hi All,
  I have written the below piece of code (NewServlet.java) to try the
 Servlet
  3.0 async feature.
  But it is failing by throwing up the below mentioned error.
 
  Tomcat Version: 7.0.27 (32 bit)
  OS: Windows 7
 
  java.lang.IllegalStateException: Not supported.
 at org.apache.catalina.connector.Request.startAsync(Request.java:1664)
 at
 
 org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1030)
 at
 
 javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379)
 
  code snippet:
try{
 boolean asynSupported = request.isAsyncSupported();
 System.out.println(asynSupported: +asynSupported);
 AsyncContext async = request.startAsync(request,
  response);   *//exception
  is thrown at this point
  *messageSender.addConnection(async);
 AlertListener alertListener = new
 AlertListener(messageSender);
 async.start(alertListener);
 
 } catch (Throwable thr){
 thr.printStackTrace();
 }
 
  web.xml snippet:
 
 servlet
 servlet-nameNewServlet/servlet-name
 
  servlet-classsample.comet.NewServlet/servlet-class
 async-supportedtrue/async-supported
 /servlet


 1. You must have the same setting for all all filters in your request
 processing chain.

 Your stacktrace from IllegalStateException should have mentioned them.

 All the valves in the chain should also support async processing (that
 is declared programmatically, via Valve.isAsyncSupported() ).

 2. Your web.xml (and 

Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread Konstantin Kolinko
2012/5/14 rohit patil sparkb...@gmail.com:
 Thanks for replying,

 1. I do not have any filters configured.
 2. Yes my web.xml does mark themselves as adhering to the Sevlet 3.0
 specification
 3. Yes apps under http://localhost:8080/examples/jsp/ also does NOT work,
 they also throw up the same exception.

 Here is the stack trace

 java.lang.IllegalStateException: Not supported.
    at org.apache.catalina.connector.Request.startAsync(Request.java:1664)
    at
 org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1030)
    at
 javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379)
    at test.comet.NewServlet.processRequest(NewServlet.java:75)
    at test.comet.NewServlet.doGet(NewServlet.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
    at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
    at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
    at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
    at
 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
    at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)


 web.xml complete contents:

 ?xml version=1.0 encoding=UTF-8?
 web-app version=3.0 xmlns=http://java.sun.com/xml/ns/javaee;
 xmlns:j2ee=http://java.sun.com/xml/ns/javaee; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
 http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;
    servlet
        servlet-nameNewServlet/servlet-name
        servlet-classtest.comet.NewServlet/servlet-class
        async-supportedtrue/async-supported
    /servlet
    servlet-mapping
        servlet-nameNewServlet/servlet-name
        url-pattern/NewServlet/url-pattern
    /servlet-mapping
    session-config
        session-timeout
            30
        /session-timeout
    /session-config
 /web-app


1. Note, that you have to check Tomcat's conf/web.xml as well

2. I recommend you to add metadata-complete=true to the root element
of your web.xml. Otherwise your application can pull annotated
components from elsewhere. It will also start faster if you set that
attribute.

3. What is org.netbeans.modules.web.monitor.server.MonitorFilter in
your stacktrace? It is likely the culprit.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: IE caching problem-

2012-05-14 Thread Pid
On 14/05/2012 02:37, Martin Gainty wrote:
 
 i plan to run the windows IE code in Solaris thru WINE

Eh?! How will that help? /rhetorical


p


 thanks again,
 Martin 
 
 
 
 
 From: mgai...@hotmail.com
 To: users@tomcat.apache.org
 Subject: RE: IE caching problem-
 Date: Sun, 13 May 2012 21:21:11 -0400


 isolating the code from the browser is the logical first step
  at least with solaris If i dont want pages cached then I can disable access 
 (with chmod and .htaccess) to the Temporary Internet Files folder and then 
 when IE tosses up error messages I can react appropriately
 changing out browsers from IE to FF will further isolate and determine any 
 'tricks' that IE is playing ..without access to hidden folders and
 unknown registry settings the IE caching problem can finally be determined

 Many Thanks for your thoughtful response,
 Martin--
 __ 
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte 
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht 
 dient lediglich dem Austausch von Informationen und entfaltet keine 
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von 
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire 
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie 
 de ceci est interdite. Ce message sert à l'information seulement et n'aura 
 pas n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.


 From: ch...@derham.me.uk
 Date: Sun, 13 May 2012 20:37:02 -0300
 Subject: Re: IE caching problem-
 To: users@tomcat.apache.org


 never had this problem when i deployed to SolarisI'll try again
 tommorrow when i have a REAL Operating System to deploy my webapp


 So you have a web app, serving up web pages, that are being cached in a
 browser. The browser is not refreshing, for reasons unknown. You say that
 the clock was incorrect, but now I assume the problem is still occurring.
 Yet you think that moving the webapp to a real os will help?

 Browsers cache pages only if they are told to. Have you used some kind of
 technique to check the headers? Fiddler or live http headers? Why are the
 pages being cached?

 Once you know that, perhaps you can resolve the issue. If I had a car that
 wouldn't start, I know nothing about cars but I'm reasonably confident that
 changing the garage won't help the issue that much

 Chris

 


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
Hi!

I configured the Manager's maxActiveSessions attribute in context.xml. If the 
configured value is exceeded an IllegalStateException createSession: Too many 
active sessions is thrown in ManagerBase class. In our application we catch 
this exception around httpServletRequest.getSession(true) and redirect to an 
customized error page. Works!

Now I activated form based authentication via securiy constraint in web.xml. If 
I try to open the web application with my browser by sending the first request, 
the response is empty (status 200 OK).

Is there any way to map a static customized error page in this scenario?

If not: Is there any other approach to limit the number of sessions?

Thanks!
Thomas

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Manager activeSessions and customized error page

2012-05-14 Thread Konstantin Kolinko
2012/5/14 Thomas Rohde t...@ordix.de:
 Hi!

 I configured the Manager's maxActiveSessions attribute in context.xml. If the 
 configured value is exceeded an IllegalStateException createSession: Too 
 many active sessions is thrown in ManagerBase class. In our application we 
 catch this exception around httpServletRequest.getSession(true) and redirect 
 to an customized error page. Works!

 Now I activated form based authentication via securiy constraint in web.xml. 
 If I try to open the web application with my browser by sending the first 
 request, the response is empty (status 200 OK).

 Is there any way to map a static customized error page in this scenario?


It depends on where ErrorReportValve is in the request processing
chain in your situation. There were several changes to that (read:
fixes) in different Tomcat 7.0.x versions. You did not wrote which
version you do use.

If it is reproducible in latest 7.0.27, feel free to create a bug
report and attach a simple sample web application + steps to
reproduce.

It might be that it is already reproducible with the standard example
app [1], but I have not tried.

[1] http://localhost:8080/examples/jsp/security/protected/index.jsp

 If not: Is there any other approach to limit the number of sessions?

I think it is possible with a Filter, Valve or with a SessionListener.
It should be also be possible with a custom o.a.c.Manager.
YMMV.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



How to start a continuous java application in tomcat

2012-05-14 Thread Rishad Ali
Hi,

The scenario is: 

I have a java application which collects some data from sensors and
stores in the database. This java application has to run continuously.
On the other hand I have a web application which I am running on tomcat
which collects the data from database and display it on the web.

Database is same for both applications. I don't mind whether the
application runs inside tomcat or outside tomcat.

 

I've tried to make a jar file of the java application and created a
simple web application which uses some classes of the jar file. But it
is not working.

 

Can anyone please tell me how do I do this.

I am sure there should be an easy way to do that.

Thank you.

 

Regards.

 




Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread rohit patil
Hi
I undid the changes i had done in server.xml and that seems to fix the
issue.

Connector connectionTimeout=2 port=8084 protocol=HTTP/1.1
redirectPort=8443/
!--Connector connectionTimeout=2 port=8084
protocol=org.apache.coyote.http11.Http11NioProtocol
redirectPort=8443/--

could you help me understand what could be happening ?


On Mon, May 14, 2012 at 5:19 PM, Konstantin Kolinko
knst.koli...@gmail.comwrote:

 2012/5/14 rohit patil sparkb...@gmail.com:
  Thanks for replying,
 
  1. I do not have any filters configured.
  2. Yes my web.xml does mark themselves as adhering to the Sevlet 3.0
  specification
  3. Yes apps under http://localhost:8080/examples/jsp/ also does NOT
 work,
  they also throw up the same exception.
 
  Here is the stack trace
 
  java.lang.IllegalStateException: Not supported.
 at org.apache.catalina.connector.Request.startAsync(Request.java:1664)
 at
 
 org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1030)
 at
 
 javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379)
 at test.comet.NewServlet.processRequest(NewServlet.java:75)
 at test.comet.NewServlet.doGet(NewServlet.java:98)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
 at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
 at
 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
 at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
 at
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
 at
 
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
 at
 
 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
 at
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at
 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)
 
 
  web.xml complete contents:
 
  ?xml version=1.0 encoding=UTF-8?
  web-app version=3.0 xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:j2ee=http://java.sun.com/xml/ns/javaee; xmlns:xsi=
  http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
  http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;
 servlet
 servlet-nameNewServlet/servlet-name
 servlet-classtest.comet.NewServlet/servlet-class
 async-supportedtrue/async-supported
 /servlet
 servlet-mapping
 servlet-nameNewServlet/servlet-name
 url-pattern/NewServlet/url-pattern
 /servlet-mapping
 session-config
 session-timeout
 30
 /session-timeout
 /session-config
  /web-app
 

 1. Note, that you have to check Tomcat's conf/web.xml as well

 2. I recommend you to add metadata-complete=true to the root element
 of your web.xml. Otherwise your application can pull annotated
 components from elsewhere. It will also start faster if you set that
 attribute.

 3. What is org.netbeans.modules.web.monitor.server.MonitorFilter in
 your stacktrace? It is likely the culprit.

 Best regards,
 Konstantin Kolinko

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




AW: Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
-Ursprüngliche Nachricht-
Von:Konstantin Kolinko knst.koli...@gmail.com
Gesendet:   Mo 14.05.2012 15:00
Betreff:Re: Manager activeSessions and customized error page
An: Tomcat Users List users@tomcat.apache.org; 
 2012/5/14 Thomas Rohde t...@ordix.de:
  Hi!
 
  I configured the Manager's maxActiveSessions attribute in context.xml. If 
  the 
 configured value is exceeded an IllegalStateException createSession: Too 
 many 
 active sessions is thrown in ManagerBase class. In our application we catch 
 this exception around httpServletRequest.getSession(true) and redirect to an 
 customized error page. Works!
 
  Now I activated form based authentication via securiy constraint in 
  web.xml. 
 If I try to open the web application with my browser by sending the first 
 request, the response is empty (status 200 OK).
 
  Is there any way to map a static customized error page in this scenario?
 
 
 It depends on where ErrorReportValve is in the request processing
 chain in your situation. There were several changes to that (read:
 fixes) in different Tomcat 7.0.x versions. You did not wrote which
 version you do use.

Sorry! I tested with 7.0.8.

 
 If it is reproducible in latest 7.0.27, feel free to create a bug
 report and attach a simple sample web application + steps to
 reproduce.
 
 It might be that it is already reproducible with the standard example
 app [1], but I have not tried.
 
 [1] http://localhost:8080/examples/jsp/security/protected/index.jsp

Now I tried with the standard example and 7.0.27. I get the default 500 error 
page. Would be great to have a possibiltiy to make a distinguish between this 
error and any other error.

 
  If not: Is there any other approach to limit the number of sessions?
 
 I think it is possible with a Filter, Valve or with a SessionListener.
 It should be also be possible with a custom o.a.c.Manager.
 YMMV.

A Filter was my first approach. But the filter is invoked after authentication 
has taken place. And for authentication a session is needed. ;-)

A HttpSessionListener is invoked AFTER a session is created.

It seems that every approach has some ugly pitfalls. :(

 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

Thomas

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to start a continuous java application in tomcat

2012-05-14 Thread Hassan Schroeder
On Mon, May 14, 2012 at 6:46 AM, Rishad Ali
rishad@turnkey-instruments.com wrote:

 I have a java application which collects some data from sensors and
 stores in the database. This java application has to run continuously.
 On the other hand I have a web application which I am running on tomcat
 which collects the data from database and display it on the web.

They sound like 2 independent applications then, which should *run*
independently.

The fact that they're using the same DB, or sharing some classes, is
not really a good enough reason to mash them together, IMO.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How to start a continuous java application in tomcat

2012-05-14 Thread Rishad Ali
Hi Hassan,
I don't want to run mash them. I just want to run the java application.
On the local server it is working fine but when I try it in the
dedicated linux server it does not work.
Thank you

-Original Message-
From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] 
Sent: 14 May 2012 15:30
To: Tomcat Users List
Subject: Re: How to start a continuous java application in tomcat

On Mon, May 14, 2012 at 6:46 AM, Rishad Ali
rishad@turnkey-instruments.com wrote:

 I have a java application which collects some data from sensors and 
 stores in the database. This java application has to run continuously.
 On the other hand I have a web application which I am running on 
 tomcat which collects the data from database and display it on the
web.

They sound like 2 independent applications then, which should *run*
independently.

The fact that they're using the same DB, or sharing some classes, is not
really a good enough reason to mash them together, IMO.

--
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to start a continuous java application in tomcat

2012-05-14 Thread Hassan Schroeder
On Mon, May 14, 2012 at 7:33 AM, Rishad Ali
rishad@turnkey-instruments.com wrote:

 I don't want to run mash them. I just want to run the java application.
 On the local server it is working fine but when I try it in the
 dedicated linux server it does not work.

WTF does not work mean?

This apparently has nothing to do with Tomcat, so you should look
for a more appropriate forum for your question, but asking for help
while providing zero actual information, e.g. it does not work, will
assuredly not get you far.

Good luck,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

On 5/12/12 6:24 PM, Konstantin Kolinko wrote:
 I remember seeing someone adding a few KBs of HTML comments into
 the error page, because that suppresses this behaviour of IE.

+1

Looks like 512 bytes of response is the magic number for MSIE 5 and
6[1]. Researching later versions like MSIE 9 is left asan exercise for
the reader.

[1] http://support.microsoft.com/kb/294807

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xJl4ACgkQ9CaO5/Lv0PBrmQCfTJXdGwClcWNmk5DE1oWrlqsJ
n3sAnRSyL6jAYuFAdyCesg3ryL2gmpOf
=Lsr1
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Slow downloads through mod_jk on Windows XP

2012-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy,

On 5/10/12 6:36 PM, Andy Wang wrote:
 Direct to apache http: Transfer rate:  21925.90
 [Kbytes/sec] received
 
 Through AJP: Transfer rate:  36732.95 [Kbytes/sec]
 received
 
 Direct to tomcat http: Transfer rate:  30968.31
 [Kbytes/sec] received

Am I reading this right: httpd+AJP outperforms both direct-to-httpd
and direct-to-Tomcat? That seems like one of the following are true:

1. The laws of physics don't behave as we expect them to in this case,
and you should donate your rig to CERN.

2. Your data is so sensitive to some other external conditions that
this is a meaningless test.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xKLIACgkQ9CaO5/Lv0PDBiACffaCipEkfYg2kEQrPEpeyvUfY
dQEAn0xoRq9LCdUVcI4FXBEEbHcWXpIq
=B/8N
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: AW: Manager activeSessions and customized error page

2012-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thomas,

On 5/14/12 9:44 AM, Thomas Rohde  wrote:
 A Filter was my first approach. But the filter is invoked after 
 authentication has taken place. And for authentication a session
 is needed. ;-)

Right: the form authenticator is in a Valve and Valves run before Filters.

 A HttpSessionListener is invoked AFTER a session is created.

Hrm.

 It seems that every approach has some ugly pitfalls. :(

Agreed. Perhaps a different exception type could be used? We are using
IllegalStateException but there's no particular reason a different
subclass of RuntimeException couldn't be used in this case: something
that could then be mapped in web.xml using error-page.

Since it would technically be a change to the API to throw something
other than IllegalStateException, you might get some push-back on a
solution like this.

Please file a bug in bugzilla and we'll hash it out over there.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xK40ACgkQ9CaO5/Lv0PAC7QCfRZTH+jxiw97jNt3oAhyCTGsk
yqoAn2ztvQuphobb0VyINu89J9h3YBYg
=Dozm
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Slow downloads through mod_jk on Windows XP

2012-05-14 Thread Andy Wang

On 05/11/2012 04:51 AM, Mladen Turk wrote:


I was following this tread and was hoping that someone will say:
Do not use workstation grade software for server applications
but no. XP (Win7 falls in the same category) has good network stack
but focused on client applications.
There is a good reason why MS charges extra $$ for server versions
since they make sure your server application don't perform well on
workstation software.

The problem is, we've seen the behaviour reported sporadically from 
customers on windows 2003 server.  The only case I've been able to find 
to reproduce it was this XP system.


I'm not sure what to make of the customer reports of the slow downs 
but at this point, I'm going to have to ask them to use something 
like ab.exe to do the downloads instead of Internet Explorer (most of 
them use IE to do it). Maybe there's some stupidity

with IE.



IE tries to open several concurrent connection at once (RFC says that 
number is max 3)

I'm sure you can simulate that with 'ab -c 10 -k -n 1 ...'

I'm not sure how this would be relevant though as the behavior is 
reproducible with a single connection to download a large file (no 
concurrenct connections to this site or any other site.


There is nothing wrong with tomcat, mod_jk or httpd.
It's just your use case.


I'm not convinced that there isn't something odd going on but for now 
I'll ignore it.  I may have a stupid use case, but we have had reports 
out in the field of what appear to be perfectly sane use cases that 
don't perform.  i just can't reproduce them.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: AW: Manager activeSessions and customized error page

2012-05-14 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/05/2012 16:58, Christopher Schultz wrote:
 Thomas,
 
 On 5/14/12 9:44 AM, Thomas Rohde  wrote:
 A Filter was my first approach. But the filter is invoked after 
 authentication has taken place. And for authentication a session 
 is needed. ;-)
 
 Right: the form authenticator is in a Valve and Valves run before
 Filters.
 
 A HttpSessionListener is invoked AFTER a session is created.
 
 Hrm.
 
 It seems that every approach has some ugly pitfalls. :(
 
 Agreed. Perhaps a different exception type could be used? We are
 using IllegalStateException but there's no particular reason a
 different subclass of RuntimeException couldn't be used in this
 case: something that could then be mapped in web.xml using
 error-page.
 
 Since it would technically be a change to the API to throw
 something other than IllegalStateException, you might get some
 push-back on a solution like this.

A change to a new sub-class of IllegalStateException shouldn't break
anything.

Mark

 
 Please file a bug in bugzilla and we'll hash it out over there.
 
 -chris
 
 -

 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPsTIDAAoJEBDAHFovYFnnjYEP/ibbVSvXy1T22zHo/ZPeDuOJ
p/AwNGgyafsv/FExSDFVTWiRJNPRpImaVmVnc9JzRj7DQJC1xjQzp0SsCYh9Gu58
ZGyz6U9psDZYbSW6cfNToVdbgJZWEdBXo5jb0s/kU1GHqfKx1ZzwrcKCHc2OAYZ+
XZvMNb29ouCPF7kVdFYyXZm/WVLrw5ZQ1KL60f65iIvZDaBrBCNgnhh7Fhxq2PU+
NzRwWiGWVAPWxk1VcBxZuJQz+qsRqp22FBkaEM8A7mDBTfbJvK+rszBqPNk/YGGq
MHRg5DysjTEWizfmRySSw9cSHtQfHq2cQxuxVMfgfMVt67BqeW+r7GB5kUNK/Dpt
fKTFw5AkmJDXYSE0tKOgVq1eECiybSP5co/DFrtnNmVQI/AXePrJ+G8lLdC9KYV/
UyjuT8jPl5JUTA6mKUafGCxL1RYDPFZ3KYpeu9mRDW4gMMmVIsp5xUPMZvPRyfBq
l6O3zjYGMNtFaedcOColeJuXQTvYqiizB2fPzzJdh10Mmb8G1PMlB0cHjhO3/j/F
kQ1W4aQxr4gipQWj0zTqrwZYTkndia0v4VqctbiYJmyHTKAeb6z/Ks9z9yya3vF9
TnvgG+Sf0KEP7zB01MI07UDXP/IdKIyeEhhqIJJ/U4ixSHtBui9MkjfMzjE3V6lw
SCucYHY0sZUFwRMg+Mp1
=b/Sy
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



AW: Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
-Ursprüngliche Nachricht-
Von:Mark Thomas ma...@apache.org
Gesendet:   Mo 14.05.2012 18:25
Betreff:Re: AW: Manager activeSessions and customized error page
An: Tomcat Users List users@tomcat.apache.org; 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 14/05/2012 16:58, Christopher Schultz wrote:
  Thomas,
  
  On 5/14/12 9:44 AM, Thomas Rohde  wrote:
  A Filter was my first approach. But the filter is invoked after 
  authentication has taken place. And for authentication a session 
  is needed. ;-)
  
  Right: the form authenticator is in a Valve and Valves run before
  Filters.
  
  A HttpSessionListener is invoked AFTER a session is created.
  
  Hrm.
  
  It seems that every approach has some ugly pitfalls. :(
  
  Agreed. Perhaps a different exception type could be used? We are
  using IllegalStateException but there's no particular reason a
  different subclass of RuntimeException couldn't be used in this
  case: something that could then be mapped in web.xml using
  error-page.
  
  Since it would technically be a change to the API to throw
  something other than IllegalStateException, you might get some
  push-back on a solution like this.

There it is: https://issues.apache.org/bugzilla/show_bug.cgi?id=53230

 
 A change to a new sub-class of IllegalStateException shouldn't break
 anything.
 
 Mark
 
  
  Please file a bug in bugzilla and we'll hash it out over there.
  
  -chris
  
  -
 
  
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
  
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iQIcBAEBAgAGBQJPsTIDAAoJEBDAHFovYFnnjYEP/ibbVSvXy1T22zHo/ZPeDuOJ
 p/AwNGgyafsv/FExSDFVTWiRJNPRpImaVmVnc9JzRj7DQJC1xjQzp0SsCYh9Gu58
 ZGyz6U9psDZYbSW6cfNToVdbgJZWEdBXo5jb0s/kU1GHqfKx1ZzwrcKCHc2OAYZ+
 XZvMNb29ouCPF7kVdFYyXZm/WVLrw5ZQ1KL60f65iIvZDaBrBCNgnhh7Fhxq2PU+
 NzRwWiGWVAPWxk1VcBxZuJQz+qsRqp22FBkaEM8A7mDBTfbJvK+rszBqPNk/YGGq
 MHRg5DysjTEWizfmRySSw9cSHtQfHq2cQxuxVMfgfMVt67BqeW+r7GB5kUNK/Dpt
 fKTFw5AkmJDXYSE0tKOgVq1eECiybSP5co/DFrtnNmVQI/AXePrJ+G8lLdC9KYV/
 UyjuT8jPl5JUTA6mKUafGCxL1RYDPFZ3KYpeu9mRDW4gMMmVIsp5xUPMZvPRyfBq
 l6O3zjYGMNtFaedcOColeJuXQTvYqiizB2fPzzJdh10Mmb8G1PMlB0cHjhO3/j/F
 kQ1W4aQxr4gipQWj0zTqrwZYTkndia0v4VqctbiYJmyHTKAeb6z/Ks9z9yya3vF9
 TnvgG+Sf0KEP7zB01MI07UDXP/IdKIyeEhhqIJJ/U4ixSHtBui9MkjfMzjE3V6lw
 SCucYHY0sZUFwRMg+Mp1
 =b/Sy
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to start a continuous java application in tomcat

2012-05-14 Thread Pid
On 14/05/2012 15:41, Hassan Schroeder wrote:
 On Mon, May 14, 2012 at 7:33 AM, Rishad Ali
 rishad@turnkey-instruments.com wrote:
 
 I don't want to run mash them. I just want to run the java application.
 On the local server it is working fine but when I try it in the
 dedicated linux server it does not work.
 
 WTF does not work mean?
 
 This apparently has nothing to do with Tomcat, so you should look
 for a more appropriate forum for your question, but asking for help
 while providing zero actual information, e.g. it does not work, will
 assuredly not get you far.

.oO( another chance to post the smart questions link )


p

-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: How to start a continuous java application in tomcat

2012-05-14 Thread Hassan Schroeder
On Mon, May 14, 2012 at 11:48 AM, Pid p...@pidster.com wrote:

 .oO( another chance to post the smart questions link )

Now that mail clients are smart enough e.g. to prompt the user if the
message contains the word attachment but nothing is attached,
maybe we should lobby for a check against (variants of) the phrase
does not work that raises a Have you read this? prompt with the
http://www.catb.org/~esr/faqs/smart-questions.html link...   :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat - Slowloris

2012-05-14 Thread Peter Zola
1. Is Apache Tomcat version 7.0.27 (or any version) susceptible to
Slowloris (Dos) attack?
2. If tomcat is susceptible to Slowloris, how to fix it.

Thanks.


Re: Tomcat - Slowloris

2012-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter,

On 5/14/12 3:20 PM, Peter Zola wrote:
 1. Is Apache Tomcat version 7.0.27 (or any version) susceptible to 
 Slowloris (Dos) attack? 2. If tomcat is susceptible to Slowloris,
 how to fix it.

I believe all web servers are vulnerable to Slowloris attack. The best
you can do is mitigate the attack -- you can't actually prevent it
because it's hard to tell the difference between an attacking client
and a legitimate client with a really slow connection.

You ought to be able to mitigate a lot of these types of attacks using
QoS and per-client-IP-limits which are typically configured entirely
independently of a web server (although httpd specifically -- and I'm
sure others, too -- has modules that can help you do these kinds of
things). Look at what your firewall or load-balancer can do for you in
this area.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xXbAACgkQ9CaO5/Lv0PCACwCfTUD5ES4mvuYzxe7rCXZEjxL4
1xwAmwZVP1W72CTpM2g9rR2ft5I/L8ad
=rm1w
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Multiple tomcat Instances on Same Server and One Apache Instance

2012-05-14 Thread Vickie Troy-McKoy

 
 Date: Mon, 14 May 2012 10:37:07 +0200
 From: a...@ice-sa.com
 To: users@tomcat.apache.org
 Subject: Re: Multiple tomcat Instances on Same Server and One Apache Instance
 
 Pid * wrote:
  On 13 May 2012, at 20:33, André Warnier a...@ice-sa.com wrote:
  
  Pid wrote:
  On 11/05/2012 18:53, Vickie Troy-McKoy wrote:
  Hi, I am in need of a little help.
  I have 2 tomcat instances running on the same machine and one apache 
  instance running on a different machine.  I configured jk_mod to access 
  the 1st tomcat instance.  Now, I have a second tomcat instance running 
  on the same server as the 1st instance.  I would like to access both 
  tomcat instances via the one apache webserver instance.  Because some 
  requests are referenced by the same name, there is a conflict.
  On the tomcat server in server.xml, one instance is running on port 8009 
  and the 2nd instance (in another directory structure) is running on 7009.
 
  On the apache server in httpd.conf, I have the following:
 
  Listen 80
  .
  .
  .
  LoadModule jk_module modules/mod_jk.so
 
  #
  JkWorkersFile conf/workers.properties
  JkMount /abc* instance1
  JkMount /xyz* instance2
 
  In workers.properties, I have the following:
 
  worker.list=instance1, instance2
  #
  worker.instance1.port=8009
  worker.instance1.host=server..com
  worker.instance1.type=ajp13
  worker.instance1.lbfactor=1
  worker.instance1.socket_keepalive=1
  #
  worker.instance2.port=7009
  worker.instance2.host=server..com
  worker.instance2.type=ajp13
  worker.instance2.lbfactor=1
  worker.instance2.socket_keepalive=1
 
  When I call abc*, it goes to instance1; and when I call xyz*, it goes to 
  instance2.  However, both instances have apps that start with tsa.  
  How do I configure the apache webserver to service the tsa app for 
  both tomcat instances?
  configure a load balancer (worker) that uses the (other) two workers, in 
  addition to the
  two workers, and add it to the worker list.
  I think that rather than be added to the workers list, the load-balancer 
  worker must be the only one in the list.  You then tell the balancer to 
  balance the two other workers.
  
  Then the two individual apps won't work, as they're not present on both 
  servers.
 
 Oh. I did not read the OP's requirements carefully enough.  Apologies, your 
 instructions 
 were correct for the OP.
--- 

Thank you all for your suggestions.  I tried configuring a load balancer 
worker; however,  I'm getting HTTP 500 messages--Internal Server Error.  I 
reviewed the reference page; however, apparently, I'm missing something.  Also 
in the mod_jk.log, there's an error stating:   Could not find worker with name 
'instance2' in uri map post processing.  Any ideas?  Thank you...

On the apache server in httpd.conf, I changed the JKMount statements because I 
wanted to access all content.

 Listen 80
 .
 .
 .
 LoadModule jk_module modules/mod_jk.so

 #
 JkWorkersFile conf/workers.properties
 JkMount /* instance1
 JkMount /* instance2

 In workers.properties, added the load balancer information; it reflects the 
following:

 worker.balance1.type=lb
 worker.balance1.balance_workers=instance1, instance2
 #
 worker.instance1.port=8009
 worker.instance1.host=server..com
 worker.instance1.type=ajp13
  
 #
 worker.instance2.port=7009
 worker.instance2.host=server..com
 worker.instance2.type=ajp13


On the tomcat server (which is the same server), I added the jvmRoute setting 
in server.xml.  For instance one, I added:

 Engine name=Catalina defaultHost=localhost jvmRoute=instance1

For instance two, I added:   Engine name=Catalina defaultHost=localhost 
jvmRoute=instance2
  

Re: How to start a continuous java application in tomcat

2012-05-14 Thread André Warnier

Rishad Ali wrote:

Hi Hassan,
I don't want to run mash them. I just want to run the java application.
On the local server it is working fine but when I try it in the
dedicated linux server it does not work.
Thank you


Ali,
you have not so far provided much information that would enable anyone to help 
you.
I do not have Pid's crystal ball and he does not grant licenses yet for the usage of 
InternetTelepathy[TM]. But I am either of a more charitable and forgiving nature than 
other people on this list, or else just more rabidly curious, so I will try to pry the 
information out of you.


As I understand it so far :
- you have created a stand-alone Java program, which works well and uses a database to 
store some information
- you also try to create a (separate) Tomcat webapp which should access the same database 
information and display it to a user

- to make it easier to create that webapp, you have
- packed together your stand-alone program's classes, in a jar-file
- tried to install that jar-file somewhere along with your webapp, under Tomcat, so 
that your webapp would have access to those classes

- but for some reason, your webapp does not find the classes contained in that 
jar-file

and that is what you mean when you say it does not work. (*)

Is that a good summary of your problem ?

If yes, then you should :
- let us know which version of Tomcat you are using, under which Java JVM version, on 
which OS platform
- find out what is the catalina base of your Tomcat (you can see all that by executing 
the version.sh or version.bat script that is in tomcat_install_directory/bin/). Copy 
and paste the output here.

- let us know where, relative to that catalina_base, your webapp is installed
- let us know where, relative to that cataline_base, you have installed that 
jar-file
- show us what appears in the Tomcat logs, which shows that your webapp is not working 
(*) (copy the relevant log lines here).


(You should provide this information anyway, even if my effort above is not a good 
description of your problem.  And also correct my summary then.)


Note # 1 : copy-and-paste the requested information inside your response. Do not send it 
as attachments, because this list strips most attachments.
Note # 2 : for even more sympathy from the list than what you got so far, do not 
top-post.  Write your answers *below* the relevant questions, not all on top of your 
message. (Just so that questions and answers can be read logically and naturally, without 
having to scroll up and down to understand what is relevant to what.)




(*) no popup dialog there yet. it does not work; my app doesn't work; its not 
working;
Nope, nothing.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat Instances on Same Server and One Apache Instance

2012-05-14 Thread André Warnier

Apologies, I probably confused you too. See below.

Vickie Troy-McKoy wrote:
...



When I call abc*, it goes to instance1; and when I call xyz*, it goes to instance2.  However, both 
instances have apps that start with tsa.  How do I configure the apache webserver to 
service the tsa app for both tomcat instances?

configure a load balancer (worker) that uses the (other) two workers, in 
addition to the
two workers, and add it to the worker list.

I think that rather than be added to the workers list, the load-balancer worker 
must be the only one in the list.  You then tell the balancer to balance the 
two other workers.

Then the two individual apps won't work, as they're not present on both servers.
Oh. I did not read the OP's requirements carefully enough.  Apologies, your instructions 
were correct for the OP.
--- 


Thank you all for your suggestions.  I tried configuring a load balancer worker; however, 
 I'm getting HTTP 500 messages--Internal Server Error.  I reviewed the reference page; 
however, apparently, I'm missing something.  Also in the mod_jk.log, there's an error 
stating:   Could not find worker with name 'instance2' in uri map post 
processing.  Any ideas?  Thank you...

On the apache server in httpd.conf, I changed the JKMount statements because I 
wanted to access all content.

 Listen 80
 .
 .
 .
 LoadModule jk_module modules/mod_jk.so

 #
 JkWorkersFile conf/workers.properties
 JkMount /* instance1
 JkMount /* instance2


That is probably not what you want (and the one contradicts the other).
You should probably have instead :

# forward /abc* requests to Tomcat instance1 only
JkMount /abc instance1
JkMount /abc* instance1

# forward /xyz* requests to Tomcat instance2 only
JkMount /xyz instance2
JkMount /xyz* instance2

# forward /tsa* requests to either Tomcat, as selected by the balancer worker
JkMount /tsa balance1
JkMount /tsa* balance1

Note: if you really want to forward everything to Tomcat, and it doesn't matter which 
Tomcat, and you want to let the balancer decide when to forward any request to either 
Tomcat-1 or Tomcat-2, then just use the single line :

JkMount /* balance1






 In workers.properties, added the load balancer information; it reflects the 
following:


You seem to be missing :

workers.list=instance1,instance2,balance1

(as per Pid's earlier instructions, not as per my erroneous comment)


 worker.balance1.type=lb
 worker.balance1.balance_workers=instance1, instance2  -- mod_jk may not like 
the space after comma
 #
 worker.instance1.port=8009
 worker.instance1.host=server..com
 worker.instance1.type=ajp13
  
 #

 worker.instance2.port=7009
 worker.instance2.host=server..com
 worker.instance2.type=ajp13


On the tomcat server (which is the same server), I added the jvmRoute setting 
in server.xml.  For instance one, I added:

 Engine name=Catalina defaultHost=localhost jvmRoute=instance1

For instance two, I added:   Engine name=Catalina defaultHost=localhost 
jvmRoute=instance2
 		 	   		  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-14 Thread Kiran Badi


Thanks everyone, I added lot of comments and now my custom error page is 
close to 1kb and this resolved my issue.


Now I am battling another weird issue,maybe again I need help of 
community till I come to some speed.


On 5/14/2012 9:05 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

On 5/12/12 6:24 PM, Konstantin Kolinko wrote:

I remember seeing someone adding a few KBs of HTML comments into
the error page, because that suppresses this behaviour of IE.

+1

Looks like 512 bytes of response is the magic number for MSIE 5 and
6[1]. Researching later versions like MSIE 9 is left asan exercise for
the reader.

[1] http://support.microsoft.com/kb/294807

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xJl4ACgkQ9CaO5/Lv0PBrmQCfTJXdGwClcWNmk5DE1oWrlqsJ
n3sAnRSyL6jAYuFAdyCesg3ryL2gmpOf
=Lsr1
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Links not resolving to their correct path in TC 7.0.27

2012-05-14 Thread Kiran Badi

Hi,

I have installed tomcat 7.0.27 on Windows Home premium 32 bit system 
with JDK 1.6.32. The tomcat is running successfully as service.I can 
access the home page of tomcat along with manager application.


I deployed my application war file via manager application.The war file 
was pulled from netbeans dist folder.


Now when I access my this application via IE,I do below steps,

1. I open this http://localhost:8082/xxx/index.jsp in IE. it works fine, 
In index page I have several links, for example testservice.jsp


2. so when I click on testservice link, it looks like 
http://localhost:8082/xxx/testservice.jsp in address bar and page opens 
fine in IE.No issues in IE.


Now the real problem comes when I try to repeat the steps in Firefox and 
chrome,


Step 1 works fine,no issues everything works as expected and index page 
comes up,but when it comes to step 2, the address changes to


http://localhost:8080/xxx/testservice.jsp .

now I am not sure as why FF /Chrome are not sticking to the same ports 
as IE.


I have 8080 tied up with netbean and it has Tomcat 7.0.11 but its not 
running as service.


Also I have static custom error page 404 which resolves correctly in 
7.0.27 in all three browsers.


Can some one tell me what that I am missing now ?

PS: This is how I have links in index page,

lia href='testservice.jsp'testservice/a/li


and all jsp resides in web pages folder.I know this gives direct access 
to JSP and is bad practice,but thats the seperate task to do in my list.


- Kiran





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Multiple tomcat Instances on Same Server and One Apache Instance

2012-05-14 Thread Vickie Troy-McKoy

 

 Date: Tue, 15 May 2012 01:18:06 +0200
 From: a...@ice-sa.com
 To: users@tomcat.apache.org
 Subject: Re: Multiple tomcat Instances on Same Server and One Apache Instance
 
 Apologies, I probably confused you too. See below.
 
 Vickie Troy-McKoy wrote:
 ...
 
 
  When I call abc*, it goes to instance1; and when I call xyz*, it goes 
  to instance2.  However, both instances have apps that start with 
  tsa.  How do I configure the apache webserver to service the tsa 
  app for both tomcat instances?
  configure a load balancer (worker) that uses the (other) two workers, 
  in addition to the
  two workers, and add it to the worker list.
  I think that rather than be added to the workers list, the load-balancer 
  worker must be the only one in the list.  You then tell the balancer to 
  balance the two other workers.
  Then the two individual apps won't work, as they're not present on both 
  servers.
  Oh. I did not read the OP's requirements carefully enough.  Apologies, 
  your instructions 
  were correct for the OP.
  --- 
  
  Thank you all for your suggestions.  I tried configuring a load balancer 
  worker; however,  I'm getting HTTP 500 messages--Internal Server Error.  I 
  reviewed the reference page; however, apparently, I'm missing something.  
  Also in the mod_jk.log, there's an error stating:   Could not find worker 
  with name 'instance2' in uri map post processing.  Any ideas?  Thank you...
  
  On the apache server in httpd.conf, I changed the JKMount statements 
  because I wanted to access all content.
  
   Listen 80
   .
   .
   .
   LoadModule jk_module modules/mod_jk.so
  
   #
   JkWorkersFile conf/workers.properties
   JkMount /* instance1
   JkMount /* instance2
 
 That is probably not what you want (and the one contradicts the other).
 You should probably have instead :
 
 # forward /abc* requests to Tomcat instance1 only
 JkMount /abc instance1
 JkMount /abc* instance1
 
 # forward /xyz* requests to Tomcat instance2 only
 JkMount /xyz instance2
 JkMount /xyz* instance2
 
 # forward /tsa* requests to either Tomcat, as selected by the balancer 
 worker
 JkMount /tsa balance1
 JkMount /tsa* balance1
 
 Note: if you really want to forward everything to Tomcat, and it doesn't 
 matter which 
 Tomcat, and you want to let the balancer decide when to forward any request 
 to either 
 Tomcat-1 or Tomcat-2, then just use the single line :
 JkMount /* balance1
 
 
 
 
  
   In workers.properties, added the load balancer information; it reflects 
  the following:
 
 You seem to be missing :
 
 workers.list=instance1,instance2,balance1
 
 (as per Pid's earlier instructions, not as per my erroneous comment)
 
   worker.balance1.type=lb
   worker.balance1.balance_workers=instance1, instance2  -- mod_jk may not 
  like the space after comma
   #
   worker.instance1.port=8009
   worker.instance1.host=server..com
   worker.instance1.type=ajp13

   #
   worker.instance2.port=7009
   worker.instance2.host=server..com
   worker.instance2.type=ajp13
  
  
  On the tomcat server (which is the same server), I added the jvmRoute 
  setting in server.xml.  For instance one, I added:
  
   Engine name=Catalina defaultHost=localhost jvmRoute=instance1
  
  For instance two, I added:   Engine name=Catalina 
  defaultHost=localhost jvmRoute=instance2

 
 
 -
 
Thanks again.  I'll try this tomorrow.  I just want to forward based on the 
port that the Tomcat instance is running on.  The 2 tomcat instances running on 
the same server is really the same application--but different versions.  And, I 
thought that I could use the existing Apache instance to forward requests to 
the new version of the app running on tomcat as well.  But, if I want (e.g. the 
tsademo app)  the tomcat instance running on port 8009; and tsademo is being 
forwarded to both ports--how can I be sure that I would get the tsademo running 
on port 8009 and not the one running on 7009?   I tried using the Virtual host 
in Apache; but, ran into issues with that.  Or, should I just go ahead and 
create an entirely new apache instance for the new tomcat instance?

Regards,



  

Re: Links not resolving to their correct path in TC 7.0.27

2012-05-14 Thread Kiran Badi
Sorry fixed it, it was my fault. Base tag was pointing to 8080.Make 
sense now.


On 5/15/2012 5:27 AM, Kiran Badi wrote:

Hi,

I have installed tomcat 7.0.27 on Windows Home premium 32 bit system 
with JDK 1.6.32. The tomcat is running successfully as service.I can 
access the home page of tomcat along with manager application.


I deployed my application war file via manager application.The war 
file was pulled from netbeans dist folder.


Now when I access my this application via IE,I do below steps,

1. I open this http://localhost:8082/xxx/index.jsp in IE. it works 
fine, In index page I have several links, for example testservice.jsp


2. so when I click on testservice link, it looks like 
http://localhost:8082/xxx/testservice.jsp in address bar and page 
opens fine in IE.No issues in IE.


Now the real problem comes when I try to repeat the steps in Firefox 
and chrome,


Step 1 works fine,no issues everything works as expected and index 
page comes up,but when it comes to step 2, the address changes to


http://localhost:8080/xxx/testservice.jsp .

now I am not sure as why FF /Chrome are not sticking to the same ports 
as IE.


I have 8080 tied up with netbean and it has Tomcat 7.0.11 but its not 
running as service.


Also I have static custom error page 404 which resolves correctly in 
7.0.27 in all three browsers.


Can some one tell me what that I am missing now ?

PS: This is how I have links in index page,

lia href='testservice.jsp'testservice/a/li


and all jsp resides in web pages folder.I know this gives direct 
access to JSP and is bad practice,but thats the seperate task to do in 
my list.


- Kiran







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



HTTP 500.0 on IIS7.5 + JK1.2.36 + TC7.0.26

2012-05-14 Thread Tommy Pham
Hi,

I'm trying to get the connector (JK 1.2.36) to work for IIS7.5
(Windows 7 Enterprise) but keep on running into HTTP 500.0 Error
following the documentation [1]:

Error Summary

HTTP Error 500.0 - Internal Server Error
Calling GetFilterVersion on ISAPI filter
D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll failed

Detailed Error Information

Module  IIS Web Core
NotificationUnknown
Handler ExtensionlessUrlHandler-Integrated-4.0
Error Code  0x8007047e
Requested URL   http://localhost:80/
Physical Path   E:\wwwroot
Logon MethodNot yet determined
Logon User  Not yet determined



Here are my configurations:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=D:\\apache-tomcat-7.0.26\\logs\\isapi.log
log_level=info
worker_file=D:\\apache-tomcat-7.0.26\\conf\\workers.properties
woker_mount_file=D:\\apache-tomcat-7.0.26\\conf\\uriworkermap.properties

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W3SVC\Parameters\Filter
DLLS]
@=D:\\apache-tomcat-7.0.26\\bin\\connector

# workers.properties
# An entry that lists all the workers defined
worker.list=localworker
# Entries that define the host and port associated with each of these workers
worker.localworker.host=localhost
worker.localworker.port=8009
worker.localworker.type=ajp13
#worker.worker2.host=otherhost
#worker.worker2.port=8009
#worker.worker2.type=ajp13

# uriworkermap.properties
/examples = localworker

D:\apache-tomcat-7.0.26\bin\connector is mapped as an application
virtual directory /jakarta using ASP.NET v4 integrated application
pool (I've tried the 3 other pools - v4 classic, v2 integrated, and v2
classic - and also failed).  The application pool is configured to run
under Network Service account.  The Network Service account has read 
execute permissions on the folder D:\apache-tomcat-7.0.26 recursively
and write permissions on the D:\apache-tomcat-7.0.26\logs folder.

ISAPI-dll handler mapping, with feature permissions of Read, Script 
Execute, has:
1) *.dll for Request path
2) Executable of D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll
3) Request Restrictions
   a) Mapping  Invoke handler only if request is mapped to:
 File or folder
   b) Verbs  All verbs
   c) Access  Execute

ISAPI and CGI Restrictions allows the said
D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll.

ISAPI Filters has an entry for the
D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll.


My Google-fu isn't very helpful ATM.  Am I missing something?  BTW, I
also have URLScan filter loaded.  Would that interfere with JK
connector?


Thanks,
Tommy


[1] http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org