Re: ISAPI issues

2009-06-03 Thread dljohnson69

Replies included



Rainer Jung-3 wrote:
 
 On 02.06.2009 23:30, dljohnson69 wrote:
 Actually I am still on 1.2.27 but am willing to update, just cannot find
 a
 compiled download of the 1.2.28 dll.
 
 http://tomcat.apache.org/download-connectors.cgi -- downloaded, installed
 and loaded (working)
 
 However, I made those changes and now there are no errors in the
 isapi.log
 but the browser errors with service temporary unavailable.  When I
 check
 the logs I get All Tomcat instances failed, no more workers left. The
 next
 line says, all tomcat instances are busy or in error state.  This was
 AFTER a reboot of the physical box.
 
 IIS and Tomcat on the same box? (Yes, IIS, Tomcat and apps on same box)
 
 Could you get your pages directly from Tomcat via its http connector
 (8080 or so)? (Yes, can get apps directly through Tomcat ports 8009, 8010)
 
 So does it
 
 - work never (correct, has never worked through IIS, always worked
 directly to app port which means to me that Tomcat itself is okay, just
 IIS issue)
 - work sometimes, but sometimes not?
 
 Which URL did you use, what's exactly in the log file?
 (http://xxapp/wealthstation/FCMD does not work,
 http://xxapp:8010/wealthstation/FCMD does work.  These are the current
 logs AFTER changes to worker and urimap listed below.  Currently no errors
 in isapi.log but there is obviously a configuration or other issue as the
 error goes to a 404 error now.
 
 Jakarta/ISAPI/isapi_redirector/1.2.28
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2423): Detected IIS version 6.0
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2428): Using registry.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2431): Using log file
 E:\wealthstation\logs\isapi.log.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2432): Using log level 1.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2433): Using extension uri
 /tomcat/isapi_redirect.dll.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2434): Using worker file
 E:\wealthstation\appserver2\conf\workers.properties.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2435): Using worker mount file
 E:\wealthstation\appserver2\conf\uriworkermap.properties.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2437): Using rewrite rule file .
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2439): Using uri select 3.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2440): Using no chunked encoding.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2442): Using notification event
 SF_NOTIFY_AUTH_COMPLETE (0x0400)
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2452): Using uri header
 TOMCATURI1000:.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2453): Using query header
 TOMCATQUERY1000:.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2454): Using worker header
 TOMCATWORKER1000:.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2455): Using worker index
 TOMCATWORKERIDX1000:.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2456): Using translate header
 TOMCATTRANSLATE1000:.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 init_jk::jk_isapi_plugin.c (2457): Using a default of 250 connections per
 pool.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 jk_map_read_property::jk_map.c (491): Adding property '/admin/*' with
 value 'wlb' to map.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 jk_map_read_property::jk_map.c (491): Adding property '/manager/*' with
 value 'wlb' to map.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 jk_map_read_property::jk_map.c (491): Adding property '/jsp-examples/*'
 with value 'wlb' to map.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 jk_map_read_property::jk_map.c (491): Adding property
 '/servlets-examples/*' with value 'wlb' to map.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 jk_map_read_property::jk_map.c (491): Adding property '/planningstation/*'
 with value 'ps' to map.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 jk_map_read_property::jk_map.c (491): Adding property '/wealthstation/*'
 with value 'ws' to map.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 jk_map_read_property::jk_map.c (491): Adding property '/jkmanager' with
 value 'jkstatus' to map.
 [Wed Jun 03 07:39:10.659 2009] [4656:4700] [debug]
 uri_worker_map_load::jk_uri_worker_map.c (1102): Loading urimaps from
 E:\wealthstation\appserver2\conf\uriworkermap.properties with reload check
 interval 60 seconds
 

Re: ISAPI issues

2009-06-02 Thread Rainer Jung
On 02.06.2009 19:42, dljohnson69 wrote:
 I have a Tomcat install that is working okay but going through the
 isapi_redirect it gets a bad gateway error.   The isapi.log has errors
 that says it cannot connect to tomcat, tomcat is down or refused
 connection.   Any ideas??

Bad gateway plus log file means your redirector is working, but you have
your configuration wrong.

Regards,

Rainer

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



Re: ISAPI issues

2009-06-02 Thread dljohnson69

Cool, maybe you can help more than the log files then.  Are you referring to
the configuration of the workers.properties and/or the uriworkermap files or
is there something else that could be involved as well?  I just started with
a basic setup as instructed by some sites.  Here is what I have, if you see
something that is suspect please point it out...thanks!

#/examples/*=testWorker
#/examples/*.jsp=testWorker
#/examples/servlet/*=testWorker

/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
/wealthstation/*=ws
/planningstation/*=ps
/jkmanager=jkstatus

workers.properties

worker.list=ws,ps,wb,jkstatus

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8010

socket_timeout=0

worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w

worker.jkstatus.type=status

also, I have 2 apps, 2 instancesone houses the ps app, one for the ws
app but from ws the user goes to the ps app once you are in it.  Should each
apps workers.properties file ONLY point to that context or should each have
both?

Thanks again!





dljohnson69 wrote:
 
 I have a new Tomcat install and deployed app that is working okay but
 going through the isapi_redirect it gets a bad gateway error.   The
 isapi.log has errors that says it cannot connect to tomcat, tomcat is
 down or refused connection.   Any ideas??   I would assume that all is
 fine since the app works fine when going directly to Tomcat.The
 isapi-redirector is loaded and green but will not load through IIS. 
 
 Thanks for any helpful advice, we are new to this. 
 

-- 
View this message in context: 
http://www.nabble.com/ISAPI-issues-tp23837289p23839567.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: ISAPI issues

2009-06-02 Thread Rainer Jung
I assume you are using the latest version 1.2.28. That makes things
easier to discuss.

On 02.06.2009 21:53, dljohnson69 wrote:
 Cool, maybe you can help more than the log files then.  Are you referring to
 the configuration of the workers.properties and/or the uriworkermap files or
 is there something else that could be involved as well?  I just started with
 a basic setup as instructed by some sites.  Here is what I have, if you see
 something that is suspect please point it out...thanks!
 
 #/examples/*=testWorker
 #/examples/*.jsp=testWorker
 #/examples/servlet/*=testWorker
 
 /admin/*=wlb
 /manager/*=wlb
 /jsp-examples/*=wlb
 /servlets-examples/*=wlb
 /wealthstation/*=ws
 /planningstation/*=ps
 /jkmanager=jkstatus

Can you see those in the display of the status worker (/jkmanager)?

 workers.properties
 
 worker.list=ws,ps,wb,jkstatus
 
 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8010

Better remove the socket_timeout=0, because that disables it, but it is
disabled by default, and we don't want to rely a 0 to mean disable in
all versions.

 socket_timeout=0
 
 worker.wlb.type=lb
 worker.wlb.balance_workers=ajp13w
 
 worker.jkstatus.type=status


 also, I have 2 apps, 2 instancesone houses the ps app, one for the ws
 app but from ws the user goes to the ps app once you are in it.  Should each
 apps workers.properties file ONLY point to that context or should each have
 both?

There is only one workers.properties, not one per context.

A worker is the same as a Tomcat connector (at least a worker of type
ajp13). So for each Tomcat you need to define one worker.

You can optionally wrap them in lb workers.

Which requests get send there is decided by the uriworkermap.properties
shown above.

So if you only have one Tomcat, you would only use one worker (ajp13w)
and not also ws and ps. Since you wrapped ajp13w into wlb, you would
then map

/wealthstation/*=wlb
/planningstation/*=wlb

Theoretically you can define more than one connector (port) for ajp13
use in Tomcat and separate a ws, ps, ajp13w worker from each other, but
you need to have a serious reason for this. If you want a simple start,
don't separate.

Which requests do not work, example-URL?

Regards,

Rainer

 Thanks again!
 
 
 
 
 
 dljohnson69 wrote:
 I have a new Tomcat install and deployed app that is working okay but
 going through the isapi_redirect it gets a bad gateway error.   The
 isapi.log has errors that says it cannot connect to tomcat, tomcat is
 down or refused connection.   Any ideas??   I would assume that all is
 fine since the app works fine when going directly to Tomcat.The
 isapi-redirector is loaded and green but will not load through IIS. 

 Thanks for any helpful advice, we are new to this. 



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



Re: ISAPI issues

2009-06-02 Thread dljohnson69

Actually I am still on 1.2.27 but am willing to update, just cannot find a
compiled download of the 1.2.28 dll.

However, I made those changes and now there are no errors in the isapi.log
but the browser errors with service temporary unavailable.  When I check
the logs I get All Tomcat instances failed, no more workers left. The next
line says, all tomcat instances are busy or in error state.  This was
AFTER a reboot of the physical box.

I have done nothing nor know how to use the jkstatus, it was just in the
work or uri example files.  Let me know if I should remove it or if further
configuration needs to be done if it is needed.  Actually I have 2 Tomcat
installs, one for ps and one for ws.  We are trying to mimic a 3rd party app
of a vendor and this is the way they have theirs.  Only difference is they
have Apace and we have IIS, hence the lack of knowledge on it. 

I have the examples working from IIS, just not the apps for ws and ps.



Rainer Jung-3 wrote:
 
 I assume you are using the latest version 1.2.28. That makes things
 easier to discuss.
 
 On 02.06.2009 21:53, dljohnson69 wrote:
 Cool, maybe you can help more than the log files then.  Are you referring
 to
 the configuration of the workers.properties and/or the uriworkermap files
 or
 is there something else that could be involved as well?  I just started
 with
 a basic setup as instructed by some sites.  Here is what I have, if you
 see
 something that is suspect please point it out...thanks!
 
 #/examples/*=testWorker
 #/examples/*.jsp=testWorker
 #/examples/servlet/*=testWorker
 
 /admin/*=wlb
 /manager/*=wlb
 /jsp-examples/*=wlb
 /servlets-examples/*=wlb
 /wealthstation/*=ws
 /planningstation/*=ps
 /jkmanager=jkstatus
 
 Can you see those in the display of the status worker (/jkmanager)?
 
 workers.properties
 
 worker.list=ws,ps,wb,jkstatus
 
 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8010
 
 Better remove the socket_timeout=0, because that disables it, but it is
 disabled by default, and we don't want to rely a 0 to mean disable in
 all versions.
 
 socket_timeout=0
 
 worker.wlb.type=lb
 worker.wlb.balance_workers=ajp13w
 
 worker.jkstatus.type=status
 
 
 also, I have 2 apps, 2 instancesone houses the ps app, one for the ws
 app but from ws the user goes to the ps app once you are in it.  Should
 each
 apps workers.properties file ONLY point to that context or should each
 have
 both?
 
 There is only one workers.properties, not one per context.
 
 A worker is the same as a Tomcat connector (at least a worker of type
 ajp13). So for each Tomcat you need to define one worker.
 
 You can optionally wrap them in lb workers.
 
 Which requests get send there is decided by the uriworkermap.properties
 shown above.
 
 So if you only have one Tomcat, you would only use one worker (ajp13w)
 and not also ws and ps. Since you wrapped ajp13w into wlb, you would
 then map
 
 /wealthstation/*=wlb
 /planningstation/*=wlb
 
 Theoretically you can define more than one connector (port) for ajp13
 use in Tomcat and separate a ws, ps, ajp13w worker from each other, but
 you need to have a serious reason for this. If you want a simple start,
 don't separate.
 
 Which requests do not work, example-URL?
 
 Regards,
 
 Rainer
 
 Thanks again!
 
 
 
 
 
 dljohnson69 wrote:
 I have a new Tomcat install and deployed app that is working okay but
 going through the isapi_redirect it gets a bad gateway error.   The
 isapi.log has errors that says it cannot connect to tomcat, tomcat is
 down or refused connection.   Any ideas??   I would assume that all is
 fine since the app works fine when going directly to Tomcat.The
 isapi-redirector is loaded and green but will not load through IIS. 

 Thanks for any helpful advice, we are new to this. 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ISAPI-issues-tp23837289p23841286.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: ISAPI issues

2009-06-02 Thread Rainer Jung
On 02.06.2009 23:30, dljohnson69 wrote:
 Actually I am still on 1.2.27 but am willing to update, just cannot find a
 compiled download of the 1.2.28 dll.

http://tomcat.apache.org/download-connectors.cgi

 However, I made those changes and now there are no errors in the isapi.log
 but the browser errors with service temporary unavailable.  When I check
 the logs I get All Tomcat instances failed, no more workers left. The next
 line says, all tomcat instances are busy or in error state.  This was
 AFTER a reboot of the physical box.

IIS and Tomcat on the same box?

Could you get your pages directly from Tomcat via its http connector
(8080 or so)?

So does it

- work never
- work sometimes, but sometimes not?

Which URL did you use, what's exactly in the log file?

 I have done nothing nor know how to use the jkstatus, it was just in the
 work or uri example files.  Let me know if I should remove it or if further

Should be available under the URL /jkmanager and is very helpful.
There's a security problem with an open jkstatus though.

 configuration needs to be done if it is needed.  Actually I have 2 Tomcat
 installs, one for ps and one for ws.

So you need to find out the port numbers (and if on different hosts the
host names) and define two workers ws and ps in the way you have done
with ajp13w.

 We are trying to mimic a 3rd party app
 of a vendor and this is the way they have theirs.  Only difference is they
 have Apace and we have IIS, hence the lack of knowledge on it. 
 
 I have the examples working from IIS, just not the apps for ws and ps.

Define the ws and ps workers with correct host names and ports, wrap
them in a new lb, like lbps and lbws

worker.lbps.type=lb
worker.lbps.balance_workers=ps
worker.lbws.type=lb
worker.lbws.balance_workers=ws

and put lbps resp. lbws behind the equal sign in the lines of
uriworkermap.properties you want to be mapped to ps resp. ws.

Regards,

Rainer

 Rainer Jung-3 wrote:
 I assume you are using the latest version 1.2.28. That makes things
 easier to discuss.

 On 02.06.2009 21:53, dljohnson69 wrote:
 Cool, maybe you can help more than the log files then.  Are you referring
 to
 the configuration of the workers.properties and/or the uriworkermap files
 or
 is there something else that could be involved as well?  I just started
 with
 a basic setup as instructed by some sites.  Here is what I have, if you
 see
 something that is suspect please point it out...thanks!

 #/examples/*=testWorker
 #/examples/*.jsp=testWorker
 #/examples/servlet/*=testWorker

 /admin/*=wlb
 /manager/*=wlb
 /jsp-examples/*=wlb
 /servlets-examples/*=wlb
 /wealthstation/*=ws
 /planningstation/*=ps
 /jkmanager=jkstatus
 Can you see those in the display of the status worker (/jkmanager)?

 workers.properties

 worker.list=ws,ps,wb,jkstatus

 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8010
 Better remove the socket_timeout=0, because that disables it, but it is
 disabled by default, and we don't want to rely a 0 to mean disable in
 all versions.

 socket_timeout=0

 worker.wlb.type=lb
 worker.wlb.balance_workers=ajp13w

 worker.jkstatus.type=status

 also, I have 2 apps, 2 instancesone houses the ps app, one for the ws
 app but from ws the user goes to the ps app once you are in it.  Should
 each
 apps workers.properties file ONLY point to that context or should each
 have
 both?
 There is only one workers.properties, not one per context.

 A worker is the same as a Tomcat connector (at least a worker of type
 ajp13). So for each Tomcat you need to define one worker.

 You can optionally wrap them in lb workers.

 Which requests get send there is decided by the uriworkermap.properties
 shown above.

 So if you only have one Tomcat, you would only use one worker (ajp13w)
 and not also ws and ps. Since you wrapped ajp13w into wlb, you would
 then map

 /wealthstation/*=wlb
 /planningstation/*=wlb

 Theoretically you can define more than one connector (port) for ajp13
 use in Tomcat and separate a ws, ps, ajp13w worker from each other, but
 you need to have a serious reason for this. If you want a simple start,
 don't separate.

 Which requests do not work, example-URL?

 Regards,

 Rainer

 Thanks again!





 dljohnson69 wrote:
 I have a new Tomcat install and deployed app that is working okay but
 going through the isapi_redirect it gets a bad gateway error.   The
 isapi.log has errors that says it cannot connect to tomcat, tomcat is
 down or refused connection.   Any ideas??   I would assume that all is
 fine since the app works fine when going directly to Tomcat.The
 isapi-redirector is loaded and green but will not load through IIS. 

 Thanks for any helpful advice, we are new to this. 

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