Using a suffix to access my webapp

2004-06-30 Thread Jay Rutten
I think I am missing something minor here, but I can not figure it out.

 

Running:

 

WinXP

IIS 5

JK2

Tomcat 5.0.19

 

I want to have the following request go through my Router application:
http://localhost/MyServlet.ss. Here is the relevant entry in
worker2.properties

 

[uri:/*.ss]

info=My Application--must match the configuration file.

 

Here are the relevant entries from web.xml (in
\tomcat5\webapps\MyApp\WEB-INF\web.xml):

 

!-- Router declaration (for convenience only) --

servlet

servlet-nameRouter/servlet-name

servlet-classcom.kurant.servlet.Router/servlet-class

/servlet

 

!-- This will map all requests to Router (suffix mapping) --

servlet-mapping

servlet-nameRouter/servlet-name

url-pattern*.ss/url-pattern

/servlet-mapping

 

Here is the relevant entry from server.xml:

 

Context className=org.apache.catalina.core.StandardContext

docBase=MyApp

displayName= MyApp 

path=

cookies=true

 
charsetMapperClass=org.apache.catalina.util.CharsetMapper

 
mapperClass=org.apache.catalina.core.StandardContextMapper

swallowOutput=false

reloadable=true

Logger className=org.apache.catalina.logger.FileLogger
debug=0

directory=logs
prefix=localhost_router_log.

suffix=.txt timestamp=true
verbosity=10/

/Context

 

When I try to hit the URL above, I get that the resource is not available.
If I put the path above as MyApp, then http://localhost/MyApp/MyServlet.ss
works. Also, if I put my application in the ROOT, the original URL works, as
expected.

 

From what I read in the docs, setting path= in my context should make this
the default context, but I never see the call to Router.

 

If you haven any suggestions, it would be greatly appreciated!



RE: Tomcat 5.0.19, IIS, Windows XP

2004-04-16 Thread Jay Rutten
After scrounging around in the Event Viewer and lots of other places, I have
come up with the idea that the load balancer was having problems. This was
in the event log:

Event Type: Warning
Event Source:   Apache Jakarta Connector2
Event Category: None
Event ID:   2
Date:   4/14/2004
Time:   2:49:02 PM
User:   N/A
Computer:   OCEAN
Description:
Error: [jk_worker_lb.c (427)]: lb.service() worker failed 12 for
ajp13:localhost:8009

My solution was to remove the load balancer from the worker2.properties file
(removing all lb references from the file listed below) and things started
working.


-Original Message-
From: Jay Rutten [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 01, 2004 10:52 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5.0.19, IIS, Windows XP

I am having problems getting the examples to work in an out of the box
scenario. Here is what I have installed:

1) JSDK 1.4.2_02 (auto-upgraded to 1.4.2_02-b03) with JAVA_HOME set
appropriately.
2) Tomcat 5.0.19 installed and running as a service. The only options
changed during install were the directory (changed to C:\Java\tomcat5.0.19)
and installing as a service. It appears to be working as going to
http://localhost:8080 brings up the manager appropriately. I can also get to
the examples with http://localhost:8080/jsp-examples.
3) JK2 redirector installed using the install4iis.js script included in the
zip file. I made a minor change to the script to create the Filters for the
default web site, which I am confident is correct. You don't need the change
if you have a Filter currently set up at that level. I copied the
workers2.properties.sample to my TOMCAT\conf area (killing the .samples). I
did have to change it slightly since the examples changed. Here are the
current contents:

[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb

[uri:/jsp-examples/*]
group=lb

[uri:/servlets-examples/*]
group=lb

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:

I can successfully go to http://localhost/jkstatus. However, when I go to
http://localhost/jsp-examples, the browser just hangs. It doesn't even time
out. I also notice that in the application event log, there is the following
warning:

Event Type: Warning
Event Source:   Apache Jakarta Connector2
Event Category: None
Event ID:   2
Date:   4/1/2004
Time:   10:33:11 AM
User:   N/A
Computer:   OCEAN
Description:
Error: [jk_isapi_plugin.c (496)]: HttpExtensionProc worker is NULL


- Is the default server.xml sufficient to getting to these examples? Do I
have to uncomment the invoker servlet?
- What are the possible values that go in workers2.properties? I have
noticed in several examples on the web that a tomcatid value is used for the
uri entries, but it typically goes go localhost:8009. Do I need a worker
specification for each uri entry?

Any direction on where I could look would be greatly appreciated...



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





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



Tomcat 5.0.19, IIS, Windows XP

2004-04-01 Thread Jay Rutten
I am having problems getting the examples to work in an out of the box
scenario. Here is what I have installed:

1) JSDK 1.4.2_02 (auto-upgraded to 1.4.2_02-b03) with JAVA_HOME set
appropriately.
2) Tomcat 5.0.19 installed and running as a service. The only options
changed during install were the directory (changed to C:\Java\tomcat5.0.19)
and installing as a service. It appears to be working as going to
http://localhost:8080 brings up the manager appropriately. I can also get to
the examples with http://localhost:8080/jsp-examples.
3) JK2 redirector installed using the install4iis.js script included in the
zip file. I made a minor change to the script to create the Filters for the
default web site, which I am confident is correct. You don't need the change
if you have a Filter currently set up at that level. I copied the
workers2.properties.sample to my TOMCAT\conf area (killing the .samples). I
did have to change it slightly since the examples changed. Here are the
current contents:

[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb

[uri:/jsp-examples/*]
group=lb

[uri:/servlets-examples/*]
group=lb

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:

I can successfully go to http://localhost/jkstatus. However, when I go to
http://localhost/jsp-examples, the browser just hangs. It doesn't even time
out. I also notice that in the application event log, there is the following
warning:

Event Type: Warning
Event Source:   Apache Jakarta Connector2
Event Category: None
Event ID:   2
Date:   4/1/2004
Time:   10:33:11 AM
User:   N/A
Computer:   OCEAN
Description:
Error: [jk_isapi_plugin.c (496)]: HttpExtensionProc worker is NULL


- Is the default server.xml sufficient to getting to these examples? Do I
have to uncomment the invoker servlet?
- What are the possible values that go in workers2.properties? I have
noticed in several examples on the web that a tomcatid value is used for the
uri entries, but it typically goes go localhost:8009. Do I need a worker
specification for each uri entry?

Any direction on where I could look would be greatly appreciated...



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