Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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?
 
ranger
Sheriff
Posts: 17314
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:
 
And inside of my fortune cookie was this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!