新手关于JSF的问题
第一次提问,不知道我有多少分,20算多算少啊?
刚学JSF 第一个程序就出问题了
Can 't parse configuration file:jndi:/localhost/JSFlogin/WEB-INF/faces-config.xml
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
下面有一部分没粘上来,我现在也打不开faces-config.xml文件了
提示我说Unable to create this part due to an internal error. Reason for the failure: An unexpected exception was thrown.
抛出的异常是
java.lang.NullPointerException 这是我的faces-config.xml高手看看有啥错误 怎么解决
<?xml version= "1.0 "?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems,Inc.//DTD JavaServer Faces Config 1.0//EN "
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd ">
<faces-config>
<navigation-rule>
<from-view-id> /pages/index.jsp </from-view-id>
<navigation-case>
<from-outcome> login </from-outcome>
<to-view-id> /pages/welcome.jsp </to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name> user </managed-bean-name>
<managed-bean-class>
onlyfun.caterpillar.UserBean
</managed-bean-class>
<managed-bean-scope> session </managed-bean-scope>
</managed-bean>
</faces-config>
------解决方案--------------------恭喜你啦