jsf 2 - Tomcat error: Not Found in ExternalContext as a Resource -
i got error when tried access development site via http://localhost/home/index.html redirects http://localhost/home/views/main/index.xhtml:
java.io.filenotfoundexception: /views/main/index*.xhtml not found in externalcontext resource
i'm using tomcat 7.0.8, mojarra jsf 2.0.4 eclipse helios. have checked war deployment file index.xhtml file , it's there in war file. checked ../wtpwebapps/home/views/main directory , can see eclipse has deployed index.xhtml file.
the stacktrace got is:
07/02/2011 3:58:53 org.apache.catalina.core.standardwrappervalve invoke severe: servlet.service() servlet [faces servlet] in context path [/home] threw exception java.lang.nullpointerexception @ com.sun.faces.lifecycle.restoreviewphase.notifyafter(restoreviewphase.java:301) @ com.sun.faces.lifecycle.restoreviewphase.dophase(restoreviewphase.java:114) @ com.sun.faces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:118) @ javax.faces.webapp.facesservlet.service(facesservlet.java:312) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:306) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:240) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:161) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:164) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:100) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:541) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:383) @ org.apache.coyote.http11.http11processor.process(http11processor.java:243) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:188) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:166) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:288) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:886) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:908) @ java.lang.thread.run(thread.java:662)
i'm not sure why getting above error. can help?
i have no idea how code responsible redirect like,
/views/main/index*.xhtml
definitely doesn't right. asterisk doing there? fix code accordingly asterisk isn't emitted in view id anymore.
Comments
Post a Comment