TongWeb8部署应用应用启动时报错Unable to obtain InjectionProvider from init time FacesContext. Does this contain

报错详情:

Session维护线程启动!!!!
2023-05-22 15:11:05 [INFO] - jsf.config.listener.version
2023-05-22 15:11:05 [ERROR] - One or more listeners failed to start.
2023-05-22 15:11:05 [ERROR] - Context [ntkoSignServer] startup failed due to previous errors
2023-05-22 15:11:05 [INFO] - Closing Spring root WebApplicationContext
2023-05-22 15:11:05 [ERROR] - Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?
2023-05-22 15:11:05 [ERROR] - Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
2023-05-22 15:11:05 [ERROR] - Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
2023-05-22 15:11:05 [WARN] - com.tongweb.tongejb.config.ValidationFailedException: Module failed validation. AppModule(name=ntkoSignServer)
        com.tongweb.tongejb.config.ReportValidationResults.deploy(ReportValidationResults.java:60)
        com.tongweb.tongejb.config.AppInfoBuilder.build(AppInfoBuilder.java:260)
        com.tongweb.tongejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1047)
        com.tongweb.ee.server.TongWebWebAppBuilder.startInternal(TongWebWebAppBuilder.java:1240)
        com.tongweb.ee.server.TongWebWebAppBuilder.configureStart(TongWebWebAppBuilder.java:1086)
        com.tongweb.ee.server.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
        com.tongweb.server.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
        com.tongweb.server.util.LifecycleBase.start(LifecycleBase.java:163)
        com.tongweb.ee.server.TongWebWebAppBuilder.deployWar(TongWebWebAppBuilder.java:790)
        com.tongweb.ee.server.TongWebWebAppBuilder.deployWebApps(TongWebWebAppBuilder.java:716)
        com.tongweb.ee.server.deployment.TongWebWebappDeployer.deploy(TongWebWebappDeployer.java:69)
        com.tongweb.tongejb.assembler.DeployerImpl.deploy0(DeployerImpl.java:529)
        com.tongweb.tongejb.assembler.DeployerImpl.deploy(DeployerImpl.java:451)
        com.tongweb.tongejb.assembler.DeployerImpl.deploy(DeployerImpl.java:193)
        com.tongweb.console.server.App.startApp(App.java:155)
        com.tongweb.console.server.App.addInternal(App.java:615)
        com.tongweb.ext.manager.ComponentProcessor.add(ComponentProcessor.java:79)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        java.lang.reflect.Method.invoke(Method.java:498)
        com.tongweb.ext.ExtServerFacade.doOperation0(ExtServerFacade.java:71)

2023-05-22 15:14:56 [INFO] - Undeploying app: version8.0.5.0/sysapp/console
2023-05-22 15:14:56 [INFO] - Pausing ProtocolHandler [0.0.0.0-9060]
2023-05-22 15:14:56 [INFO] - Stopping ProtocolHandler [0.0.0.0-9060]
2023-05-22 15:14:56 [INFO] - Pausing ProtocolHandler [0.0.0.0-8088]
2023-05-22 15:14:56 [INFO] - Stopping ProtocolHandler [0.0.0.0-8088]
2023-05-22 15:14:56 [INFO] - Stopping server services
2023-05-22 15:14:56 [INFO] - Destroying ProtocolHandler [0.0.0.0-9060]
2023-05-22 15:14:56 [INFO] - Destroying ProtocolHandler [0.0.0.0-8088]
Command <start> has been executed.终止批处理操作吗(Y/N)? y

 实际上,这个应用此前在Tongweb7上是可以正常运行部署的。并且控制台这里输出的信息也表示应用是已经部署成功了 的。 但是 就是报错了!  

 经过请教东方通的技术人员,使用的JDK8的版本,只需要设置 Web兼容模式运行就可以了。 参考资料:TongWeb8如何更好的兼容web应用_萝卜白菜。的博客-CSDN博客

处理详情:

浏览器访问https://IP:port/console,登录TongWeb8控制台之后,点击应用管理:

,选择部署,选择【资源加载】时,开启:Web兼容模式:

设定好之后,再添加部署应用就可以正常了。

猜你喜欢

转载自blog.csdn.net/yeyuningzi/article/details/130811728
今日推荐