aspose file tools*
The moose likes JSF and the fly likes XML not displayed,Unspecified error Error processing resource 'http://www.w3.org/TR/html4/loose.dtd' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "XML not displayed,Unspecified error Error processing resource Watch "XML not displayed,Unspecified error Error processing resource New topic
Author

XML not displayed,Unspecified error Error processing resource 'http://www.w3.org/TR/html4/loose.dtd'

Ruhi Surve
Greenhorn

Joined: Aug 18, 2011
Posts: 1
Does not display the page and shows error saying XML Page cannot be displayed: Unspecified error Error processing resource 'http://www.w3.org/TR/html4/loose.dtd'.

The selection page => 'CheeseCakeSelection.xhtml' is pasted below. Also the 'faces-config.xml' & 'web.xml' are pasted below.

My CheeseCakeSelection.xhtm.xhtml page to render is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:view xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsf/core">
<h:form>
<h:outputLabel id="firstname" value="firstname" for="firstnameInput">First Name:</h:outputLabel>
<h:inputText id="firstnameInput" value="#{cheeseCakeModelBean.firstname}"></h:inputText>
<h:message id="firstnameMessage" for="firstnameInput"></h:message>

<h:outputLabel id="cheeseCake" value="cheeseCake" for="cheeseCakeSelected">First Name:</h:outputLabel>
<h:selectOneMenu id="cheeseCakeSelected">
<c:selectItem id="Tucsedo" value="#{cheeseCakeModelBean.cheeseCake}">Tucsedo</c:selectItem>
<c:selectItem id="Dulce_De_Leche_Caramel" value="#{cheeseCakeModelBean.cheeseCake}">Dulce De Leche Caramel</c:selectItem>
<c:selectItem id="Chocolate" value="#{cheeseCakeModelBean.cheeseCake}">Chocolate</c:selectItem>
<c:selectItem id="Coffee" value="#{cheeseCakeModelBean.cheeseCake}">Coffee</c:selectItem>
</h:selectOneMenu>
<h:message id="cheeseCakeMessage" for="cheeseCakeSelected"></h:message>
<h:commandButton id="order" action="#{cheeseCakeBackingBean.order}" ></h:commandButton>
</h:form>
</c:view>

My faces-config:

<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">

<managed-bean>
<description>Cheese Cake Model Bean</description>
<managed-bean-name>cheeseCakeModelBean</managed-bean-name>
<managed-bean-class>com.cheese.cake.CheeseCakeModelBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>

<managed-bean>
<description>Cheese Cake Backing Bean</description>
<managed-bean-name>cheeseCakeBackingBean</managed-bean-name>
<managed-bean-class>com.cheese.cake.CheeseCakeBackingBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<description>Instance Value of CheeseCakeModelBean made in CheeseCakeBacking Bean</description>
<property-name>cheeseCake</property-name>
<property-class>com.cheese.cake.CheeseCakeModelBean</property-class>
<value>#{cheeseCakeModelBean}</value>
</managed-property>
</managed-bean>

<navigation-rule>
<from-view-id>/CheeseCakeSelection.xhtml</from-view-id>

<navigation-case>
<from-action>#{cheeseCakeBacking.order}</from-action>
<from-outcome>menu</from-outcome>
<to-view-id>/Menu.xhtml</to-view-id>
</navigation-case>

<navigation-case>
<from-action>#{cheeseCakeBacking.order}</from-action>
<from-outcome>get it now</from-outcome>
<to-view-id>/GetItNow.xhtml</to-view-id>
</navigation-case>

</navigation-rule>
</faces-config>



Web.xml is below:

<?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>CheeseCakeSelection</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</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>/faces/*</url-pattern>
</servlet-mapping>
<context-param>
<description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>

<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

</web-app>

Please suggest what could be causing the error. Any clue that can help is welcome.

Thank you,
Ruhi
Jyoti Zem
Greenhorn

Joined: Aug 26, 2012
Posts: 1
How you solved this problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML not displayed,Unspecified error Error processing resource 'http://www.w3.org/TR/html4/loose.dtd'
 
Similar Threads
cant deploy my application,please help
Error while accessing hibernate session through JSF
Erro HTTP Status 500- What is this?
My Tomcat does not build my URL
In Rich Faces rich:panelMenu a4j:commandButton action not called