?
Solved

Problem with Tomcat 5.0 work with IIS 6.0 using JK2 apj13

Posted on 2004-04-08
6
Medium Priority
?
365 Views
Last Modified: 2012-05-04
I am trying to get Tomcat 5.0 to work with IIS 6.0 using JK2 ajp13.  This is the following URL I used as a resource. http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html#introduction

When I go to
http://localhost:8080/jsp-examples/index.html  (obviously)
http://localhost/jsp-examples (does not work, I am attaching the workers.properties document at the end of the email

The installation is straight forward. Some relevant information:  
IIS Log:
1. 2004-04-08 15:25:01 127.0.0.1 GET /jakarta/isapi_redirector2.dll - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322) 500 0 0

the tomcat startup shows the follwowing error
2.Apr 8, 2004 12:53:36 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:C:\Apache\Tomcat5.0\webapps\webdav
Apr 8, 2004 12:53:36 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Apr 8, 2004 12:53:37 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 8, 2004 12:53:37 PM org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
Apr 8, 2004 12:53:37 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/250  config=C:\Apache\Tomcat5.0\conf\jk2.properties
Apr 8, 2004 12:53:37 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 18140 ms

==> The isapi filter used is isapi_redirector2.dll . This shows the desired green arrow.
==> The workers.properties
[shm:]
info=Shared memory file. Required for multiprocess servers
file=C:\Apache\Tomcat5.0\work\jk2.shm
size=1000000

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

[logger.file:0]
level=INFO
file=c:/Apache/Tomcat5.0/logs/iis_jk2.log


the jk2.properties file has everything commented out as it suggests that it is not required. Is this that might be missing.

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
#handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
#channelSocket.port=8019
# Default:
 channelUnix.file=C:\Apache\Tomcat5.0\work\jk2.socket
# Just to check if the the config  is working
#shm.file=C:\Apache\Tomcat5.0\work\jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
#apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess


Thanks
Abhay
0
Comment
Question by:xml_abh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 23

Accepted Solution

by:
rama_krishna580 earned 2000 total points
ID: 11140402
Tyr this..and check out it..

This is how to installed as service, all in one line and make sure the CATALINA_HOME and JAVA_HOME is defined:

"%CATALINA_HOME%\bin\tomcat.exe" -install Tomcat "%JAVA_HOME%\jre\bin\client\jvm.dll" -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar" -Dcatalina.home="%CATALINA_HOME%" -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out "%CATALINA_HOME%\logs\stderr.log

above is assuming you use jdk1.4, if you have 1.3, replace jre\bin\client with jre\bin\classic

R.K
0
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 12410886
Hi,

Answer has been provided already, points has to give....

R.K
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question