当我启动 Glassfish 2.1 服务器时,它似乎启动没有问题,但是当我尝试访问其管理控制台时,我收到错误:
The requested resource (Servlet FacesServlet is not available) is not available.
在它的控制台和 server.log 上,我可以看到:
[#|2013-05-09T14:59:36.647+0200|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Application server startup complete.|#]
[#|2013-05-09T15:01:23.250+0200|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=15;_ThreadName=httpWorkerThread-4848-0;;|Initializing Mojarra (1.2_13-b01-FCS) for context ''|#]
[#|2013-05-09T15:01:24.420+0200|INFO|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=httpWorkerThread-4848-0;|PWC1412: WebModule[] ServletContext.log():PWC1409: Marking servlet FacesServlet as unavailable|#]
我第一次访问管理控制台时会记录最后 2 个条目。
为什么 glassfish 将 FacesServlet 标记为不可用?