Since the nearest development project uses JBoss and IIS, you need to integrate jboss and IIS. If you find a lot of Tomcat integrate IIS, there is no JBoss, but it's time to think about JBoss or the inline Tomcat, integration principle should be almost . I am still unsuccessful and responsible for the mentality, but it is better, referring to a lot of brothers and sisters, I don't dare to enjoy.
It is recommended to see the "Reference" first in the "References" first, [2], then look at the following.
Environment: Win2k Server, IIS5.0? JBoss3.2.3 (already insert Tomcat4.1.29) Jakarta-Tomcat-Connectors-JK2.0.4 Basic server environment is slightly (all are masters).
First, download "Tomcat Web Server Connector (Tomcat JK2 IIS Connector) Address: Apache Jakarta (http://jakarta.apache.org/site/binindex.cgi) Unzip Downloaded JAKARTA-TOMCAT-Connectors-JK2 .0.4-win32-Iis.zip Get isapi_redirector2.dll (Key File) Copy This DLL is to you like anywhere, such as: d: /jboss3.2.3/bin creates a virtual directory in IIS, any name (cat cat) Dogs, such as: Tomcat, Connector or Jakarta, pointing the actual directory to the location (D: /Jboss3.2.2.3/bin) where ISAPI_Redirector2.dll, and specifies the "Execute" property.
Then add ISAPI filtering to add ISAPI_Redirector2.dll.
Copy Jakarta-Tomcat-connectors-jk2.0.4-win32-iis.zip Workers2.properties.sample under / confial to anywhere you like, as the isapi_redirector2.dll in the above (d: /jboss3.2.3/bin ) Changed to workers2.properties. Use the text editor to open it, add, modify the [URI: / ** / *] field, let it point to the required release directory. For example: My publishing directory is d: /jboss3.2.3/server/default/deploy/pweb.war, there is a main.jsp. [URI: / PWEB / *] info = JSP Examples, Map Requests for All JSP Pages To Tomcat. context = / PWEB
Use http: //xxxxx/pweb/main.jsp when access
You can also look directly with this file content: [shm:] info = shared memory file. Required for multiprocess serversfile = C: / tomcat 5.0 / work / jk2.shm ????? # can be anywhere you like Size = 1000000
[channel.socket: localhost: 8009] info = ajp13 worker, connects to tomcat instance using ajp 1.3 protocoltatabase = localhost: 8009
# 以下 below can be modified at will to meet the needs [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 [uri: / dir / *] info = JSP examples, map requests for all JSP pages to Tomcat CONTEXT = / DIR
The format of the workers2.properties file is not uniformly uniform, as long as the rules indicated by "http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html" can be. ?
Now you need to add some necessary registration information to the registry, Redirector is read when called by IIS. Create a .reg file
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE / SOFTWARE / Apache Software Foundation / Jakarta Isapi Redirector / 2.0] "workersFile" = "d: //Jboss3.2.3//bin//workers2.properties" # modify point workers2.properties true? The location "extensionuri" = "/ jakarta / isapi_redirector2.dll" ??? # "jakarta" is the virtual path name established by IIS, which can be modified and consistent with the actual situation (must be consistent with the virtual paths mentioned above) "loglevel" = "debug" "serverroot" = "D: //jboss3.2.2.3//" ????? # seems to be arbitrary, I point to D: //JBoss3.2.3
Then import the registry, restart IIS, and start JBoss, if there is no error, now you can now use http: //xxxx/pweb/main.jsp instead of http: // xxxxx: 8080 / pweb / main.jsp Access JSP service.
references
[1] http://virtualict.net/support/kb/iis6-tomcat5-jk2.html
[2] http://info.cc163.net/newiis5 tomcathowto/newiis5 tomcat5howto.htm
[3] JK Documentation (Iishowto) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html
?