I seem to be having trouble configuring tomcat 6.0 to serv jsp files for IIS7, maybe someone can give me an step by step advice. ive searched the forums and only seen a vista x32 related topic.
so back to my issue,
i can the application just fine internally through http://localhost:8080/ABC/
in which i created an website and set its path to the ABC folder which is located in tomcat webapps folder, added tconfigured the host headers
in addition ive made the required registry modifications, added isapi_redirect.dll as an filter to this website which the dll points to the bin folder where the dll file is located, i also added an scriptmap.
*.jsp and pointed it to the bin file where the dll is located.
then restarted IIS7, my other sites are running fine, but the newly created site lets say is
www.abc.com is not serving the jsp content/app located at http://localhost:8080/ABC/, which is an folder located in the webapps folder of tomcat.
my worker properties are as follow
workers.tomcat_home=C:\Tomcat 6.0\
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=C:\JAVA\
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\
# The workers that your plugins should create and work with
#
worker.list=neosmart
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.neosmart.port=8009
worker.neosmart.host=localhost
worker.neosmart.type=neosmart
and uriworkermap.properties as follow
/ABC/*=neosmart
and i also have an isapi_redirect properties that is located in the bin folder of the isapi_redirect.dll file, its properties are as follows
# Configuration file for the Jakarta ISAPI Redirector
# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect-1.2.27.dll
# Full path to the log file for the ISAPI Redirector
log_file=C:\Tomcat 6.0\tom.log
# Log level (debug, info, warn, error or trace)
log_level=info
# Full path to the workers.properties file
worker_file=C:\Tomcat 6.0\conf\workers.properties
# Full path to the uriworkermap.properties file
worker_mount_file=C:\Tomcat 6.0\conf\uriworkermap.properties
Then, to get to the bottom of what the problem is with loading the dll, download the
debugging tools for windows and run "gflags -i w3wp.exe +sls" to enable loader-snaps - run dbmon.exe from the debugger tools and repro the issue again (after re-enabling the app-pool) and cut-n-paste the spew from dbmon.
Anil Ruia
Software Design Engineer
IIS Core Server
I tried to follow the steps in link. I have following problems.
(1) 32bit tomcat installed on Program Files (x86). When I try to allow tomcat6w.exe to run as Administrator, it doesn't allow me. It said "The version of this file is not compatible with the version of windows you're running....".
(2) After installed 32bit tomcat, I don't see tomcat native dll in bin fold. Do I need to put the 64bit native dll there?
RikoNaz
14 Posts
Windows Server 2008/CF/Tomcat/IIS7?
Nov 10, 2008 11:41 PM|LINK
Windows Server 2008 x64/IIS7
I seem to be having trouble configuring tomcat 6.0 to serv jsp files for IIS7, maybe someone can give me an step by step advice. ive searched the forums and only seen a vista x32 related topic.
so back to my issue,
i can the application just fine internally through http://localhost:8080/ABC/
in which i created an website and set its path to the ABC folder which is located in tomcat webapps folder, added tconfigured the host headers
in addition ive made the required registry modifications, added isapi_redirect.dll as an filter to this website which the dll points to the bin folder where the dll file is located, i also added an scriptmap.
*.jsp and pointed it to the bin file where the dll is located.
then restarted IIS7, my other sites are running fine, but the newly created site lets say is
www.abc.com is not serving the jsp content/app located at http://localhost:8080/ABC/, which is an folder located in the webapps folder of tomcat.
my worker properties are as follow
workers.tomcat_home=C:\Tomcat 6.0\
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=C:\JAVA\
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\
# The workers that your plugins should create and work with
#
worker.list=neosmart
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.neosmart.port=8009
worker.neosmart.host=localhost
worker.neosmart.type=neosmart
and uriworkermap.properties as follow
/ABC/*=neosmart
and i also have an isapi_redirect properties that is located in the bin folder of the isapi_redirect.dll file, its properties are as follows
# Configuration file for the Jakarta ISAPI Redirector
# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect-1.2.27.dll
# Full path to the log file for the ISAPI Redirector
log_file=C:\Tomcat 6.0\tom.log
# Log level (debug, info, warn, error or trace)
log_level=info
# Full path to the workers.properties file
worker_file=C:\Tomcat 6.0\conf\workers.properties
# Full path to the uriworkermap.properties file
worker_mount_file=C:\Tomcat 6.0\conf\uriworkermap.properties
ganeshanekar
551 Posts
Re: Windows Server 2008/CF/Tomcat/IIS7?
Nov 11, 2008 06:20 AM|LINK
What is the error that you see?
There might be a chance of mis-configuration, have you also looked at Event logs/IIS logs for any errors?
~ Ganesh
RikoNaz
14 Posts
Re: Windows Server 2008/CF/Tomcat/IIS7?
Nov 11, 2008 05:58 PM|LINK
the tom.log shows no errors ,it only shows when the service was started and stopped.
however in the event viewer i get the following error
The HTTP Filter DLL F:\Tomcat 6.0\bin\isapi_redirect-1.2.27.dll failed to load. The data is the error.
anilr
2343 Posts
Microsoft
Re: Windows Server 2008/CF/Tomcat/IIS7?
Nov 11, 2008 07:28 PM|LINK
What is the error code in the data field?
Software Design Engineer
IIS Core Server
RikoNaz
14 Posts
Re: Windows Server 2008/CF/Tomcat/IIS7?
Nov 11, 2008 07:54 PM|LINK
there is no error code in the event field.
Log Name: Application
Source: Microsoft-Windows-IIS-W3SVC-WP
Date: 11/10/2008 5:10:43 PM
Event ID: 2214
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: xxxxxxxxxxx
Description:
The HTTP Filter DLL F:\Tomcat 6.0\bin\isapi_redirect-1.2.27.dll failed to load. The data is the error.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" />
<EventID Qualifiers="49152">2214</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2008-11-10T22:10:43.000Z" />
<EventRecordID>39772</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>xxxxxxZ</Computer>
<Security />
</System>
<EventData>
<Data Name="IsapiFilter">F:\Tomcat 6.0\bin\isapi_redirect-1.2.27.dll</Data>
<Binary>02000000</Binary>
</EventData>
</Event>
anilr
2343 Posts
Microsoft
Re: Windows Server 2008/CF/Tomcat/IIS7?
Nov 11, 2008 08:12 PM|LINK
The Binary field at the end of the xml is the error code - it is ERROR_FILE_NOT_FOUND - does F:\Tomcat 6.0\bin\isapi_redirect-1.2.27.dll exist?
Software Design Engineer
IIS Core Server
RikoNaz
14 Posts
Re: Windows Server 2008/CF/Tomcat/IIS7?
Nov 12, 2008 03:09 AM|LINK
yes, the file exist.
anilr
2343 Posts
Microsoft
Re: Windows Server 2008/CF/Tomcat/IIS7?
Nov 13, 2008 07:37 AM|LINK
Then, to get to the bottom of what the problem is with loading the dll, download the debugging tools for windows and run "gflags -i w3wp.exe +sls" to enable loader-snaps - run dbmon.exe from the debugger tools and repro the issue again (after re-enabling the app-pool) and cut-n-paste the spew from dbmon.
Software Design Engineer
IIS Core Server
haplo13
10 Posts
Re: Windows Server 2008/CF/Tomcat/IIS7?
Jan 02, 2009 08:24 PM|LINK
I got Tomcat 6.0 x64 working on IIS7 following these directions:
http://jspors.blogspot.com/2009/01/setting-up-64-bit-tomcat-6-on-iis7.html
IIS7 ISAPI Tomcat Vista Redirect iis7 tomcat isapi_redirect
cindyluke
9 Posts
Re: Windows Server 2008/CF/Tomcat/IIS7?
Jan 09, 2009 04:39 PM|LINK
I tried to follow the steps in link. I have following problems.
(1) 32bit tomcat installed on Program Files (x86). When I try to allow tomcat6w.exe to run as Administrator, it doesn't allow me. It said "The version of this file is not compatible with the version of windows you're running....".
(2) After installed 32bit tomcat, I don't see tomcat native dll in bin fold. Do I need to put the 64bit native dll there?
P.S. I am running tomcat as window service.
Thanks.
cindyluke