You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Amit Bhargava <ab...@bdinnoware.com> on 2003/03/28 14:37:28 UTC

In process with IIS and external application

Hi,

I am a real newbie to Tomcat and its world.

I have an application that has Tomcat 3.3 bundled with itself. If I run
Tomcat that is bundled from its location, I can access the application from
the browser. In short the application is running outprocess.
(http://localhost:8080/costume/index.html)

What I want is to have the application run from IIS, that is an inprocess
application.

What I have done is following

1. Downloaded the isapi_redirector.dll and copied it to the location
<TOMCAT_HOME>/conf/
2. Created a new context in the server.xml name 'costume'.
3. Created a worker.properties and uriworkermap.properties file with
following entries.

workers.properties file entries.
============================================================================
============================
	workers.tomcat_home=c:\jakarta
	workers.java_home=d:\j2sdk1.4.0_02

	ps=\

	worker.list=inprocess

# Defining a worker named inprocess and of type jni
	worker.inprocess.type=jni

# Additional class path components.

	worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
	worker.inprocess.class_path=d:\j2sdk1.4.0_02\lib\tools.jar
	worker.inprocess.class_path=c:\costume\webserver\config
	worker.inprocess.class_path=D:\Program Files\Microsoft SQL Server 2000
Driver for JDBC\lib\msbase.jar
	worker.inprocess.class_path=D:\Program Files\Microsoft SQL Server 2000
Driver for JDBC\lib\msutil.jar
	worker.inprocess.class_path=D:\Program Files\Microsoft SQL Server 2000
Driver for JDBC\lib\mssqlserver.jar
	worker.inprocess.class_path=E:\oracle\ora90\jdbc\lib\classes111.zip
	worker.inprocess.class_path=E:\oracle\ora90\jdbc\lib\nls_charset11.zip

	worker.inprocess.cmd_line=start

	worker.inprocess.jvm_lib=D:\j2sdk1.4.0_02\jre\bin\client\jvm.dll


worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

============================================================================
============================

uriworkermap.properties file entries

============================================================================
============================
default.worker=inprocess

/admin=$(default.worker)
/admin/*=$(default.worker)
/examples=$(default.worker)
/examples/*=$(default.worker)
/costume*=inprocess
/costume/*=inprocess
============================================================================
============================

3. Modified the registry to have following entries.

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
"extension_uri"="/tomcat/isapi_redirect.dll"
"log_file"="C:\\tomcat 4.1\\logs\\jk_iis_redirect.log"
"log_level"="debug"
"worker_file"="C:\\tomcat 4.1\\conf\\jk\\workers.properties"
"worker_mount_file"="C:\\tomcat 4.1\\conf\\uriworkermap.properties"

4. Created a new virtual directory 'jakarta', installed a new filter, into
IIS and got that filter up and running.
5. Restarted Tomcat 4.1.24 and then restarted IIS

Now when I check the following urls, none of them works

1. http://localhost/examples/jsp/index.html
2. http://localhost/costume/index.html

alternatively these works

1. http://localhost:8080/examples/jsp/index.html
2. http://localhost:8080/costume/index.html

What I get is 'page not found' error.

Now pls. help me as to get my application running from Tomcat.

Regards

Amit Bhargava


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org