Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Content is not allowed in prolog

843844Oct 22 2008 — edited Oct 22 2008
I have built a small JSF / Facelets application - MyFaces 1.2, Faclets 1.1.14, Tomahawk, RichFaces under Eclipse Ganymede, JDK 1.5, Tomcat 6 under Intel Mac. When I include the stylesheet in my template (header):
<link rel="stylesheet" type="text/css" href="../template/vnStyle.css" />
I get the following exception:
Oct 21, 2008 11:18:14 PM com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/template/vnStyle.css]
com.sun.facelets.FaceletException: Error Parsing /template/vnStyle.css: Error Traced[line: 2] Content is not allowed in prolog.
	at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
	at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
I haven't found much help on the internet. My style-sheet is saved under UTF-8 (no BOM). I tried different encodings but non of them helped. I even examined the file with a hex editor but there is no 3-Byte BOM at the beginning of the file.

Anyway, I don't really understand why the template compiler is interested in the stylesheet at the time of compiling!?

However, I don't have a clue here. I also tried different Eclipse settings but without any success. I hope you can help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2008
Added on Oct 22 2008
1 comment
681 views