JSF: "Target Unreachable, identifier 'helloBean' resolved to null"问题解决
开发环境:
- IDEA 2019.3
- Maven 3.2
- Tomcat 7
创建一个简单的JSF项目,页面跳转时遇到 identifier 'helloBean' resolved to null 问题。
反复检查了bean的名字(HelloBean.java和页面中helloBean)一致,不存在因为名字不一致拿不到bean的问题。
最后,修改了本地的tomcat服务器的配置解决了。
打开Run/Debug Configurations,修改command line 为tomcat7:run-war(之前是tomcat7-run)。