用JSF1.2时提示could not find Factory: javax.faces.context.FacesContextFactory解决办法

用JSF1.2时提示could not find Factory: javax.faces.context.FacesContextFactory解决办法:
网上有人说:
  在项目的web.xml中加入下面一句
<listener>
  <listener-class>org.operamasks.faces.config.FacesConfigLoader</listener-class>
</listener>

重启tomcat解决
但我没用的是myeclispe,没有用 operamasks,试着用:

<listener>
      <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  </listener>

代替之,问题解决。
02-Apr-2025 17:22:57.571 信息 [RMI TCP Connection(2)-127.0.0.1] org.primefaces.webapp.PostConstructApplicationEventListener.processEvent Running on PrimeFaces 6.1 02-Apr-2025 17:22:57.625 信息 [RMI TCP Connection(2)-127.0.0.1] com.sun.faces.config.ConfigureListener.contextInitialized 初始化上下文 '' 的 Mojarra 2.1.7 (SNAPSHOT 20120206) 02-Apr-2025 17:22:57.873 信息 [RMI TCP Connection(2)-127.0.0.1] com.sun.faces.spi.InjectionProviderFactory.createInstance JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。 02-Apr-2025 17:23:00.343 警告 [RMI TCP Connection(2)-127.0.0.1] com.sun.faces.mgbean.BeanManager.addBean JSF1074:名为 'customizedDocumentsView' 的受管 bean 已注册。将现有受管 bean 类类型 com.spy.framework.utils.CustomizedDocumentsView 替换为 com.spy.framework.utils.CustomizedDocumentsView。 02-Apr-2025 17:23:00.602 信息 [RMI TCP Connection(2)-127.0.0.1] org.primefaces.webapp.PostConstructApplicationEventListener.processEvent Running on PrimeFaces 6.1 02-Apr-2025 17:23:00.602 信息 [RMI TCP Connection(2)-127.0.0.1] org.primefaces.webapp.PostConstructApplicationEventListener.processEvent Running on PrimeFaces 6.1 02-Apr-2025 17:23:00.602 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 一个或多个listeners启动失败,更多详细信息查看对应的容器日志文件 02-Apr-2025 17:23:00.606 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 由于之前的错误,Context[]启动失败 02-Apr-2025 17:23:00.687 严重 [RMI TCP Connection(2)-127.0.0.1] javax.faces.FactoryFinder$FactoryManager.getFactory 启动没有正确初始化应用程序,无法找到工厂:javax.faces.application.ApplicationFactory. Attempting to find backup. 02-Apr-2025 17:23:00.693 严重 [RMI TCP Connection(2)-127.0.0.1] com.sun.faces.config.ConfigureListener.contextDestroyed Unexpected exception when attempting to tear down the Mojarra runtime java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory. at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008) at jav
最新发布
04-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值