java - Prettyfaces, it's not been resolved? -
i'm trying build custom url prettyfaces tells do, after setup it, gives me error:
referenced file contains errors (http://ocpsoft.org/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.3.3.xsd). more information, right click on message in problems view , select "show details..."
this how web.xml
setup:
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="webapp_id" version="3.0"> <display-name>brainset</display-name> <context-param> <param-name>javax.faces.project_stage</param-name> <param-value>development</param-value> </context-param> <context-param> <param-name>javax.faces.interpret_empty_string_submitted_values_as_null</param-name> <param-value>true</param-value> </context-param> <welcome-file-list> <welcome-file>index.xhtml</welcome-file> </welcome-file-list> <servlet> <servlet-name>faces servlet</servlet-name> <servlet-class>javax.faces.webapp.facesservlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>faces servlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> <filter> <filter-name>pretty filter</filter-name> <filter-class>com.ocpsoft.pretty.prettyfilter</filter-class> <async-supported>true</async-supported> </filter> <filter-mapping> <filter-name>pretty filter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>forward</dispatcher> <dispatcher>request</dispatcher> <dispatcher>error</dispatcher> <dispatcher>async</dispatcher> </filter-mapping> </web-app>
and pretty-config.xml
:
<pretty-config xmlns="http://ocpsoft.org/prettyfaces/3.3.3" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://ocpsoft.org/prettyfaces/3.3.3 http://ocpsoft.org/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.3.3.xsd"> <url-mapping id="home"> <pattern value="/home" /> <view-id value="/index.xhtml" /> </url-mapping>
with error can't deploy app in glassfish
:
could not publish server. java.lang.nullpointerexception
any idea how fix ? or should tool similar prettyfaces
?
update
i don't think error caused prettyfaces. xml schema works fine in eclipse setup , don't of these errors. , i'm pretty sure xsd file valid.
you should have @ eclipse log file (workspace/.metadata/.log
) have if there exception thrown.
btw: try remove schemalocation
element pretty-config.xml , check if helps. prettyfaces doesn't use xsd schema when parsing file. this:
<pretty-config xmlns="http://ocpsoft.org/prettyfaces/3.3.3"> ... </pretty-config>
Comments
Post a Comment