File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark ""Document is empty" error, what does it mean?" Watch ""Document is empty" error, what does it mean?" New topic
Author

"Document is empty" error, what does it mean?

Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
I'm attempting to follow this tutorial (http://www.thearcmind.com/confluence/display/SHJFT/Getting+started+with+JSF,+Facelets,+Eclipse+WTP+and+Tomcat). I've gone through each step and have even downloaded the supplied code. No matter what I do, each time I attempt to hit the add or multiply button, I get this error:

**************
This page contains the following errors:

error on line 2 at column 1: Document is empty
Below is a rendering of the page up to the first error.
**************

Does this make sense to anyone?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Sounds to me like the response has nothing in it, meaning no html tags at all, or maybe missing the whole <body> section.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
It turned out to be a simple problem with my faces-config.xml:

Wrong:


Right:
 
Don't get me started about those stupid light bulbs.
 
subject: "Document is empty" error, what does it mean?
 
Similar Threads
xml transformation error:
Applet is loaded but not displayed
XSLT and Internet Explorer problem
XSLT and Internet Explorer problem
How to Read varios web forms??