打印本文 打印本文 关闭窗口 关闭窗口
apache+websphere整合中出现的一些问题
作者:佚名  文章来源:本站原创  点击数1966  更新时间:2012/6/8 14:26:56  文章录入:mintao  责任编辑:mintao

apache+websphere整合中出现的一些问题,

这次在实验apache+websphere整合中出现了些问题:

1、Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


IBM_HTTP_Server/6.0 Apache/2.0.47 (Win32) Server at 192.168.1.168 Port 8080

Forbidden

2、[10-4-14 12:31:56:078 CST] 0000001b webcontainer E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: 尚未定义要处理 / 的 Web 组/虚拟主机。
[10-4-14 12:32:02:109 CST] 0000001b webcontainer E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: 尚未定义要处理 / 的 Web 组/虚拟主机。
[10-4-14 12:40:19:203 CST] 0000001b webcontainer E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: 尚未定义要处理 / 的 Web 组/虚拟主机。
[10-4-14 12:40:28:671 CST] 0000001a webcontainer E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: 尚未定义要处理 / 的 Web 组/虚拟主机。

个应用不仅发布到某个server,还发布在某个虚拟主机上。很明显现在你更改了Server的WC_defaulthost端口,但是相应的虚拟主机里没有添加这个端口。进入你发布到的虚拟主机,一般是default_host,添加更改的那个端口8080,然后重启服务。

3、

You don't have permission to access / on this server.


IBM_HTTP_Server/6.0 Apache/2.0.47 (Win32) Server at 192.168.1.168 Port 8080
4、Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
在httpd.conf中加入
<IfModule mpm_winnt.c>
ThreadLimit 2048
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
在整个实验中,注意到在httpd.conf中
<Directory "f:/wsa-apache/ikeyman/zh_CN">路径设置错误。
现在贴出wsa_plugin-cfg.xml修改后的主要配置:
<Config>
<!-- 这里是日志文件 -->
    <Log LogLevel="Error" Name="d:/wsa-apache/logs/wsa-native.log"/>
    <VirtualHostGroup Name="default_host">
        <VirtualHost Name="*:8080"/>
    </VirtualHostGroup>
    <ServerCluster Name="server1">
        <Server CloneID="uodv9mno" LoadBalanceWeight="2" Name="PC-201004102352Node01">
<!-- 这里是WebSphere 地址与端口 -->
            <Transport Hostname="192.168.1.168" Port="9080" Protocol="http"/>
        </Server>
        <PrimaryServers>
            <Server Name="PC-201004102352Node01"/>
        </PrimaryServers>
    </ServerCluster>
    <UriGroup Name="default_host_mycluster_URIs">
<!-- 简单代理转发 -->
        <Uri AffinityCookie="JSESSIONID" Name="/*"/>
    </UriGroup>
    <Route ServerCluster="server1" UriGroup="default_host_mycluster_URIs" VirtualHostGroup="default_host"/>
</Config>
打印本文 打印本文 关闭窗口 关闭窗口