• Register
0 votes

Problem  :

I want to run the Eclipse JSF project on the Apache Tomcat on some other computer. I created the WAR file. But, when I try to deploy the WAR and open my Facelet page in Firefox, I usually face only the below error message:

“This XML file does not appear to have any style information associated with it. The document tree is shown below.”

This is my very first time when I am trying to run the JSF app without my Eclipse. How is this issue popping up and how can I fix the issue?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

In case of your JSF/Facelets files which have a default extension of .xhtml, that can usually happen if your HTTP request hasn't invoked your FacesServlet and so it was unable to parse your Facelets file and unable to generate the required HTML output based on your XHTML source code. The Firefox is then merely trying to guess your HTTP response content type depending on your .xhtml file extension which is in the Firefox configuration usually by default interpreted as the text/xml.

So you will need to make sure that your HTTP request URL, as you can see in browser's address bar, matches your <url-pattern> of your FacesServlet as you have registered in the webapp's web.xml, so that it will be able to invoked and be able to generate your desired HTML output based on your XHTML source code.

9 7 4
38,600 points

Related questions

0 votes
1 answer 2 views
Problem: Please help me fix this dilemma &ldquo;The file does not have a program associated with it for performing this action&rdquo;?
asked Mar 29 tuhin1 48.9k points
0 votes
1 answer 38 views
Problem the entity name must immediately follow the '&' in the entity reference.
asked Feb 9 charles mathews 5.5k points
0 votes
1 answer 3 views
Problem: Please help me fix this dilemma &ldquo;The inode number associated to a file is changed when the file is moved inside the same file system&rdquo;?
asked Mar 29 tuhin1 48.9k points
0 votes
1 answer 119 views
Problem : I want to insert Javascript to the <h:commandButton />'s onclick property as the action is already rendering the ajax table. What I want to do is to get a selected items in the list box and turn them into the parameters to be used in the JSF FileServlet. i.e. para2=value1&param= ... ) or even the for (var i = 0; i < 10; i++) my page wouldn't load. How can I fix my for loop issue?
asked Jan 20, 2020 jwilliam 3.9k points
0 votes
1 answer 1 view
1 view
Problem: Can't seem to locate the certificate request for this certificate file?
asked 18 hours ago jamuna1 18.1k points
0 votes
1 answer 369 views
Problem : Currently I am trying to learn the Apache Maven. I have tried to write below code in Eclipse but it is giving below error to me: Error Message: &ldquo;No grammar constraints (DTD or XML Schema) referenced in the document&rdquo; My Code : <project xmlns="http:// ... > <version>3.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins>
asked Feb 27, 2020 mphil 2.3k points
0 votes
1 answer 3 views
Problem: I am having problem to view xml input using xsl style sheet .
asked 3 days ago zayed1 35.6k points
0 votes
1 answer 55 views
0 votes
1 answer 35 views
Problem: xml content does not seem to be xml
asked Mar 3 charles mathews 5.5k points
1 vote
1 answer 135 views
Problem: I am very new to Web.xml coding. Currently I am facing serious problem because of my web.xml file. If I try to run my Apache tomcat 8 server then every time it shows me below error: Server tomcat v8.0 server at localhost failed to start. in eclipse. If I ... . This error made my life like the hell. So I am looking for the help from web.xml expert who can help me in fixing my problem.
asked May 18, 2020 Martin K 6.6k points