If running JSF without internet connection this exception occurs. The
workaround for me to this MyFaces bug
(https://issues.apache.org/jira/browse/MYFACES-1735) was:

According to http://wiki.apache.org/myfaces/Installation_and_Configuration
http://www.nabble.com/file/p14546767/web-facesconfig_1_1.dtd
web-facesconfig_1_1.dtd 
Go to your repository (mine is C:/Source/.m2/repository) and find the files
in following jars:
jar:file:/C:/Source/.m2/repository/org/apache/myfaces/tomahawk/tomahawk/1.1.6/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
jar:file:/C:/Source/.m2/repository/com/sun/facelets/jsf-facelets/1.1.13/jsf-facelets-1.1.13.jar!/META-INF/faces-config.xml
 
jar:file:/C:/Source/.m2/repository/net/sourceforge/jsf-comp/acegi-jsf/1.1.3/acegi-jsf-1.1.3.jar!/META-INF/faces-config.xml
jar:file:/C:/Source/.m2/repository/com/corejsf/corejsf-validator/1.0/corejsf-validator-1.0.jar!/META-INF/faces-config.xml
jar:file:/C:/Source/.m2/repository/net/java/dev/ajax4jsf/ajax4jsf/1.0.6/ajax4jsf-1.0.6.jar!/META-INF/faces-config.xml

I found the files by debugging:
org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.
getFacesConfig

Comment out the !DOCTYPE and add <!DOCTYPE faces-config SYSTEM
"web-facesconfig_1_1.dtd">
Put in the same directory the file web-facesconfig_1_1.dtd

René


-- 
View this message in context: 
http://www.nabble.com/javax.faces.FacesException%3A-java.net.UnknownHostException%3A-java.sun.com-tp14546767s2369p14546767.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to