【现象】
在使用WebServerConnector的环境中,服务器启动后等不显示登录页面,浏览器上则显示“Server is currently unavailable or down for maintenance”信息的页面。
在那之后,即使经过10分钟也不显示登录页面。
【发生条件】
使用WebServerConnector时,在ApplicationRuntime之前启动(重启)了WebServerConnector(Web服务器)的情况下
【对象环境】
Resin3.0环境
[对象产品:~WebPlatform Version 6.1]
【原因】
在ApplicationRuntime之前启动了包含WebServerConnector的Web服务器(Apache.IIS)的情况下,将发生WebServerConnector无法连接到ApplicationRuntime的情况
【解决方法】
请完成在WebServerConnector之前启动ApplicationRuntime的状态,让WebServerConnector可以连接ApplicationRuntime。
●规避示例
在WindowsOS中,WebServerConnector与ApplicationRuntime运行在相同服务器(PC)上时的示例
※在各种不同的服务器上运行的环境或Windows以外的OS的情况下,按照运行环境,请进行相同的处理。
1.将以下的文件创建在C:\等
(请任意设置文件名。(例:deltemp.bat))
+---------------------------------------------------------------------+
@echooff
del/f/q/s<磁盘>\temp\xxx.xxx.xxx.xxx_xxxx>nul
pinglocalhost-nyy>nul
rem 按以下方法在Apache或者IIS删除行头rem
rem Apache时
rem <Apache安装目录>\bin\apache-krestart>null
rem IIS时
rem iisreset>null
+---------------------------------------+
※上述内容的说明
・删除创建WebServerConnector的xxx.xxx.xxx.xxx_xxxx文件,等待yy秒后重启Web服务器。
・<磁盘>是读取WebServerConnector的Web服务器的当前磁盘。
例如,通过C磁盘执行IIS时,<磁盘>是C:。
・xxx.xxx.xxx.xxx_xxxx是WebServerConnector的连接对象ApplicationRuntime的IP地址和连接对象端口编号。
例如,在ApplicationRuntime的IP是192.168.1.1、连接对象编号是6802的情况下,文件名是192.168.1.1_6802。
关于“是否等待yy秒”,根据环境的不同将有所不同。
由于最低也不能少于60秒,请任意的进行设置。
2.开始→控制面板→任务→单击添加计划任务打开任务向导
3.按下下一步(N)>按钮
4.将显示要执行程序的选择页面,按下参照(R)按钮
5.选中之前创建的批处理文件
6.请任意决定任务名称
“此任务的执行:”请选择(电脑启动时)。
7.按下下一步(N)>按钮
8.指定任务的执行用户
由于包括文件的删除/系统指令的执行,推荐指定Administrator权限用户。
9.按下下一步(N)>按钮
10.按下完成按钮
-- 适用对象 ---------------------------------------------------------
iWP/Web系统构建基础/WebPlatform/AppFramework
-------------------------------------------------------------------------
FAQID:408
显示“Server is currently unavailable or down for maintenance”,无法连接服务器。