IIS and Tomcat

Hi guys,

I am now tired changing my workers.properties and uriworkermap.properties... nothing is making effect to what I need...

I am able to see http://localhost/examples..as it is configured in worker.properties...also http://localhost/tomcat-doc/index.html...so till here every thing is working good.. what I need is, my all JSP files are in webapps/ROOT dir. and I want to map that dir....can you please tell me what changes I need to do?.. I really appreciate it..I am also attaching my both the properties files....I am using Tomcat 4.1 and IIS 5.0 on WinXp Pro....

1) workers.properties

# ************ Begin worker.properties **************

worker.ajp13.type=ajp13

#

# Specifies the load balance factor when used with

# a load balancing worker.

# Note:

# -> lbfactor must be > 0

# -> Low lbfactor means less work done by the worker.

worker.ajp13.lbfactor=1

#

# Specify the size of the open connection cache.

#worker.ajp13.cachesize

#

# DEFAULT LOAD BALANCER WORKER DEFINITION -

#

#

#

# The loadbalancer (type lb) worker perform weighted round-robin

# load balancing with sticky sessions.

# Note:

# -> If a worker dies, the load balancer will check its state

#once in a while. Until then all work is redirected to peer

#worker.

worker.loadbalancer.type=lb

worker.loadbalancer.balanced_workers=ajp13

#

# worker.tomcat_home should point to the location where you

# installed tomcat. This is where you have your conf, webapps and lib

# directories.

#

worker.tomcat_home=C:\Program Files\Apache Group\Tomcat 4.1

#

# worker.java_home should point to your Java installation. Normally

# you should have a bin and lib directories beneath it.

#

worker.java_home=C:\j2sdk1.4.2

#

# You should configure your environment slash... ps=\ on NT and / on UNIX

# and maybe something different elsewhere.

#

ps=\

#

# ADVANCED MODE

#

#

#

# DEFAULT worker list

#

#

# The worker that your plugins should create and work with

worker.list=ajp13

#

# DEFAULT ajp13 WORKER DEFINITION

#

#

#

# Defining a worker named ajp13 and of type ajp13

# Note that the name and the typedo not have to match.

#

worker.ajp13.port=8009

worker.ajp13.host=localhost

# ************ End worker.properties **************

2) uriworkermap.properties

# *********** Begin uriworkermap.properties ***

#

# Simple worker configuration file

#

# Mount the Servlet context to the ajp13 worker

/servlet/*=ajp13

# Mount the examples context to the ajp13 worker

/examples=ajp13

/examples/*=ajp13

# Mount the examples context to the ajp13 worker

/doctera=ajp13

/doctera/*=ajp13

/uftps=ajp13

/uftps/*=ajp13

# Mount all jsp pages to the ajp13 worker

/*.jsp=ajp13

# Advanced mount of the examples context

# /examples/servlet/*=ajp13

# ************* End uriworkermap.properties ****

I want to access my JSP pages which are in ROOT dir by http://localhost/MyPage.jsp

any ideas or suggestions will the appreciated..

vishu

[3481 byte] By [vishu007a] at [2007-10-3 0:20:36]
# 1
I am still waiting for your reply...can any one?...how do I access my index.jsp page which is in Webapps/ROOT from this link.. http://localhost/index.jspvishu
vishu007a at 2007-7-14 17:12:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

you only waited 2.5 hours, for goodness sake. this isn't paid tech support.

you're not even guaranteed to get an answer, you know.

you shouldn't be putting any of your apps in webapps/ROOT. create a new directory/context for your app under /webapps and deploy it under that.

%

duffymoa at 2007-7-14 17:12:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

just curious - why tomcat 4.1 when 5.5 is available?

why do you think you need IIS? Is that your web server, and you just want to forward requests to tomcat?

sorry, no expertise on this from me. I've no experience with IIS and Tomcat.

Lots of docs from Apache - what do those tell you?

%

duffymoa at 2007-7-14 17:12:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

i think you need to create that new context under /webapps, like I said earlier, and then add that new context to your worker.properties.

you should get your app working under Tomcat first, then worry about hooking it into IIS. deploy that web app properly first. putting it in ROOT isn't the best thing, IMO.

%

duffymoa at 2007-7-14 17:12:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
shouldn't you be using http://localhost:8080/index.jspinstead of http://localhost/index.jsp?
shuinia at 2007-7-14 17:12:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
thanks anyway guys...
vishu007a at 2007-7-14 17:12:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...