Hi,

I'm sorry if my English isn't the best but it isn't my native language and I wrote 
this little tutorial on working time ;-)
Also, if there is something that isn't right in this tutorial, please feel free to 
ask. 
You can also access this tutorial via my website 
http://www.hoglind.com/tomcat4/index.html.
 I will try to expand the tutorial in the future.

There are some additional settings left that I have left out and some that I havn't 
figured out yet and some . I still don't understand how to make sure that Servlets are 
reloaded when I'm putting up new ones, and some other things. But atleast you should 
have the server up and running.

Hope this help,
Alexander H�glind
[EMAIL PROTECTED]

1. Stop Apache Tomcat  in NT Services (if it is installed).
2. Unistalled previous versions of Tomcat (if it is installed).
3. Install j2sdk-1_4_0-win.exe, restart, (if it isn't already installed).
4. Install jakarta-tomcat-4.0.3.exe 
(http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin), with NT 
service selected, into a path without any spaces (C:\Tomcat4, I don't know if it's 
nescessary!).
5. Create JAVA_HOME as  a System Variable with the path to where you installed j2sdk.
6. Create CATALINA_HOME as a System Variable with the path to where you installed 
Tomcat.
7. Start Tomcat via the Start menu.
8. Try localhost:8080 and you should see Tomcat Startpage.
9. Stop Tomcat via the Start menu!
10. Create a file called iis_redirect.log and put it into %CATALINA_HOME%\logs.
11. Create a folder in %CATALINA_HOME%\bin called native and put the latest!!!! 
isapi_redirector.dll downloaded from apache.org 
(http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/win32/) into 
that folder.
12. Create a folder in %CATALINA_HOME%\conf called jk and put the 
jk_nt_service.exe(http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/win32/i386/)
 into that folder.
13 Download a file called wrapper.properties from 
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/ found in 
jakarta-tomcat-3.3.1.zip , put it into %CATALINA_HOME%\conf\jk and and change 
following values:
wrapper.tomcat_home= the path where you installed Tomcat (the same as CATALINA_HOME)
wrapper.java_home=the path where you installed j2sdk(the same as JAVA_HOME)
and wrapper.cmd_line found in the bottom of that file,
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Djava.security.policy=="$(wrapper.tomcat_policy)" 
-Dtomcat.home="$(wrapper.tomcat_home)" -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) start
14. Open the command prompt and type %CATALINA_HOME%\conf\jk\jk_nt_service -i 
TomcatNTService -a wrapper.properties
15. Open NT Services and start TomcatNTService (NOT Apache Tomcat, only the 
TomcatNTService just installed!!)
16. Restart

Now both Apache Tomcat and TomcatNTService should be installed and running!
17.Create a folder in %CATALINA_HOME%\conf called ntiis
18. Put uriworkers.properties found in jakarta-tomcat-3-3.1.zip into ntiis. Comment 
/examples (#/examples) if you don't want anyone to access thoose files. Uncomment 
#/*jsp=ajp13 (/*jsp=ajp13) and  #/servlet/*=ajp13 (/servlet/*=ajp13). With this 
configuration IIS will only forward jsp files and servlets put into the "clasess" 
folder.
19.Create a file called iis_redirect.reg into ntiis. 
Type this:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirector.dll"
"log_file"="C:\\The Path Where You Installed Tomcat\\logs\\iis_redirector.log"
"log_level"="emerg"
"worker_file"="C:\\The Path Where You Installed 
Tomcat\\conf\\ntiis\\workers.properties"
"worker_mount_file"="C:\\The Path Where You Installed 
Tomcat\\conf\\ntiis\\uriworkermap.properties"

Save the file and run it.

20. Start the Internet Services Manager.
21. Create a virtual catalog in you website calle Jakarta and point it to the native 
folder (C:\Tomcat4\bin\native)
22. Choose Properties on your server (not your website) and choose Edit on Master 
Properties. Chosse ISAPI Filters and choose Add. In the Filename type: Jakarta 
Redirector. Choose browse and click your way to isapi_redirector.dll installed in the 
native folder. Now there would be a red arrow showing that the service is not runnig. 
Restart World Wide Web Publishing Service in the NT Services. Make sure that the arrow 
is green.

23. Open server.xml installed in the conf folder. Look for  <Host name="localhost". 
This is the default host running on your computer. Inside this host you'll find some 
context. You can delete all of them if you don't need them. 
Look for where the host tag ends (</Host>). After that tag,  define your own host:

This is a copy of my host tag:

<Host name="www.hoglind.com">
<Alias>hoglind.com</Alias>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" 
prefix="hoglind_com_log." suffix=".txt" timestamp="true"/>
<Context path="" docBase="C:/Inetpub/hoglind.com/root" crossContext="false" debug="0" 
reloadable="true" >
</Context>
</Host>


24. Restart Apache Tomcat andWorld Wide Web Publishing Service in the NT Services in 
that order.
25. Create a folder called WEB-INF in your root catalog. Create a folder called 
classes and one called lib into WEB-INF. Put a copy of web.xml found in 
%CATALINA_HOME%\webapps\root\WEB-INF into the newly created WEB-INF folder.
26. Put your jsp files anywhere on your server and put your servlets into classes and 
your jar's into lib.
27. Done.


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 12:32 AM
Subject: RE: jk_nt_service fails (error 1067)


-----Original Message-----
From: Alexander H�glind [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 09, 2002 5:21 PM
To: Tomcat Users List
Subject: Re: jk_nt_service fails (error 1067)


> finally go it right!!
> The problem was that I followed
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/  
> advices a little bit to slavish. A waring should go out about that
site. Do as it suggests, 
> but don't use the isapi_redirect.dll downloaded from that site! You
can find another 
> file isapi_redirector.dll  at apache.org website. And don't
"accidentally" replace 
> tomcat-util.jar in the lib dir., with the same file downloaded from
that site. Also notice that 
> isapi_redirector.dll is named different than from the file downloaded
from that site. 
> After a lot of blood sweat and tears I finally have Tomcat 4.03 up and
running with 
> multiple host and all. Now when I know how to do it, it seems so easy.


I hope you can help, as I'd be willing to document the procedure to get
it to work right.  I have been fighting with TC and IIS for the past
week (off and on) and havent made much progress.  Could I see your conf
files?

I probably have a similar configuration...I have an IIS box with about
10 sites and each needs to have .JSP access.  I keep getting exceptions
or the pages download instead of being executed. 

Thanks! :)
- tex




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to