Windows Server 2008 R2 SP1 in IIS7.5 and TOMCAT7 integration notes

Windows Server 2008 R2 SP1 in IIS7.5 and TOMCAT7 integration notes

Source: w ww.roak.com

Integrated file Baidu network disk or disk blog
author of the article QQ: 4543964 MSN: [email protected] Gtalk: [email protected]
reprint please indicate the source
of all software and tutorials download: w ww.roak.com

 


Configuring N times, 64-bit operating system really pit father ~ ~ ~
The following notes to be successful.
This is the latest version of the software used.
System platform: Windows Server 2008 R2 SP1 (Standard version)
Software Version: JRE7 \ iis7.5 \ apache-tomcat -7.0.22 \ isapi_redirect1.2.32
1 First, install the software JRE7, installation path is D: \ soft \ Jre7. Second, install the software Tomcat7, installation path is D: \ soft \ Tomcat7. And start TOMCAT, test http://127.0.0.1:8080 can access. (Note: The above two software installation path is best not to have spaces oh, 2003 IIS6 + TOMCAT6 once because there are spaces in the installation path TOMCAT has not been configured) Third, import the registry: import the registry file: Windows Registry Editor Version 5.00 [ HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ the Apache Software Foundation \ Jakarta the Isapi Redirector \ 1.0] "extension_uri" = "/ Jakarta / the isapi_redirect.dll" "the log_file" = "D: Soft // // // tomcat7 logs" "log_level" = " debug "
wKiom1R0IJai3RvoAAHCiGhxhfU656.jpg













"tomcat_start" = "D: //Soft//tomcat7//bin//tomcat.bat Start"
"tomcat_stop" = "D: //Soft//tomcat7//bin//tomcat.bat STOP"
"worker_file" = "D: //Soft//tomcat7//conf//workers.properties"
"worker_mount_file" = "D: //Soft//tomcat7//conf//uriworkermap.properties"

Note: be sure to use the import registry regedit open the registry to see if the import was successful. Registry contains the above-described and string values.
When prompted to import a lot of success but no such registry.

Online tutorials in 2008 IIS7 into the registry system under all 32-bit operating system version copy of 2003, are nonsense, or can not be imported or the wrong place.
Leading to the final and can not be configured successfully, the basic steps are not doing this.
Many online tutorials into the registry location [HKEY_LOCAL_MACHINE / SOFTWARE / Apache Software Foundation / Jakarta Isapi Redirector / 1.0]
This is the wrong position, will lead to isapi_redirect.dll unable to load and 500 errors.
The correct position of the 64-bit operating system is [HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Apache Software Foundation \ Jakarta Isapi Redirector \ 1.


wKiom1R0ILGSNVDMAAJKpQ4TdXs352.jpg

图3
wKioL1R0IUqhoqOVAAEDjiu4a2I449.jpg
四、在tomcat安装目录下conf文件夹下建立两个文件

文件1:workers.properties

workers.tomcat_home=D:\soft\Tomcat7\
workers.java_home=D:\soft\Jre7
ps=\ 
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

文件2:uriworkermap.properties

/*.jsp=ajp13


五、拷贝isapi_redirect.dll到tomcat安装目录下conf文件夹

六、打开IIS7.5,点击左边的计算机名。
在IIS管理器中的“ISAPI和CGI限制”里面右键添加,路径选择为tomcat安装目录下conf文件夹的isapi_redirect.dll,并设定“允许执行扩展路径”,描述名可取jakarta

图4
wKioL1R0IVuCJUP9AAI7QDdRr-k177.jpg
图5
wKiom1R0IOuxYSCwAAE00XNMP_E080.jpg

七、接着单击Default Web Site,选择ISAPI筛选器,并右键添加筛选器,名称可取jakarta,可执行文件选择tomcat安装目录下conf文件夹isapi_redirect.dll。

图6
wKioL1R0IXfQ4LnUAAIFLFuvnJE811.jpg
图7
wKioL1R0IYnxylvtAAEv-ULYzQg266.jpg

八、在Default Web Site上右键"添加虚拟目录",别名取jakarta(必须是jakarta名称,名称必须和注册表里"extension_uri"的值的名字一致),路径指向tomcat安装目录下conf文件夹,即isapi_redirect.dll所在目录。

图8
wKiom1R0IRaQxt4DAAGc1iKrwZk294.jpg
九、点击虚拟目录jakarta,双击“处理程序映射”,最右边(第三分栏里面)选择“编辑功能权限...”将所有权限(执行权限)选上。

图9
wKioL1R0IaSwA00vAAOJqBh6_dw462.jpg

十、在Default Web Site上,双击“处理程序映射”,右键"添加脚本映射",请求路径写*.jsp,可执行文件选择tomcat安装目录下conf文件夹isapi_redirect.dll。名称随便写,例如JSP。

图10
wKioL1R0IbKDdt75AAI6QkP1uWc378.jpg

十一、修改IIS默认网站的目录为D:\soft\tomcat7\webapps\ROOT目录下。
增加网站的默认首页文档文件index.jsp.重启IIS服务器和Tomcat。
访问http://127.0.0.1/index.jsp能否访问。wKioL1R0IfzRjdIwAAIobgaXTFY582.jpg+++++++++++++++++++++++++++++++++
多个项目部署
默认为ROOT目录,如果要部署多个项目可以修改server.xml文件


<host name="xxx.xxx.com" 

           appbase="X:\wwwroot\xxx.xxx.com" 

           unpackwars="true" 

           autodeploy="true">

</host>

 

项目路径X:\wwwroot\xxx.xxx.com\ROOT\

IIS路径:同上X:\wwwroot\xxx.xxx.com\ROOT\

 

如果出现404.0错误 需要注意程序中web.xml配置

     <context-param>
          <param-name>webAppRootKey</param-name>
         <param-value>test.root</param-value>
     </context-param>

是否与其他项目重复 ,修改以后注意log4j配置文件否则将不会输出日志

log4j.properties

log4j.appender.E.File=${test.root}WEB-INF/logs/error.log


配置错误提示:

1.问:没有配置成功,IIS测试访问JSP页面出现500错误:
HTTP 错误 500.0 - Internal Server Error
调用 GetFilterVersion 失败,在 ISAPI 筛选器 "D:\soft\tomcat7\conf\isapi_redirect.dll" 上。

NOTE: Root privileges issues with the conf.

A: Registry import the wrong place or not into the registry. Manually write the registry or change locations.
The correct position of 64-bit operating system is [HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ the Apache Software Foundation \ Jakarta Isapi Redirector \ 1.0]

2. Q: Windows Server 2008 R2 IIS7.5 in "ADODB.Connection error '800a0e7a'" appears.

A: In the 64-bit system, IIS7 application pool is not enabled by default 32-bit program, which means that if you are using a 64-bit operating system without Jet4.0 driver 64, and then they would be enabled in IIS7 32-bit programs.
     Open the advanced settings corresponding site application pool, there is an option in the General [] to enable 32-bit applications, the default is False, True change it, try on OK.
wKiom1R0IULw5njQAAGaOckvKPg667.jpg

Guess you like

Origin www.cnblogs.com/kaschie/p/11258554.html