This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Chris Stewart
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds to me like the response has nothing in it, meaning no html tags at all, or maybe missing the whole <body> section.

Mark
 
Chris Stewart
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It turned out to be a simple problem with my faces-config.xml:

Wrong:


Right:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!