在 Application Server Beta 版中,默认情况下不支持监视框架。
解决方法
要为 Application Server 集成监视框架,请执行以下步骤:
编辑 <Install_dir>\appserver\lib\install\templates\ee\com.sun.cmm.as.xml 文件。
将 ${InstalledLocation} 更新为 Application Server 安装位置,将 ${InstalledDate} 更新为当前日期。
将 <Install_dir>\appserver\lib\install\templates\ee\com.sun.cmm.as.xml 文件复制到 <Install_dir>\appserver\lib。
执行 <MFWK_Install_location>\bin\mfwksetup.bat -r <Install_dir>\appserver\lib\com.sun.cmm.as.xml 命令。
${InstalledLocation} 值为 Application Server 安装位置,即 c:\Sun\JavaES5\appserver。对于 $InstalledDate,需要将时间设置为毫秒数,即从 1970 年算起到当前时间的毫秒数。