[jboss-user] [JBoss Tools] - Re: Add JSF Capabilities in Eclipse says web.xml is malformed
Mikael Brodd
do-not-reply at jboss.com
Fri Dec 17 05:01:37 EST 2010
Mikael Brodd [http://community.jboss.org/people/mikael.brodd] created the discussion
"Re: Add JSF Capabilities in Eclipse says web.xml is malformed"
To view the discussion, visit: http://community.jboss.org/message/576589#576589
--------------------------------------------------------------
Ok, I changed that, but now I got a new error message (from adding JSF capabilities):
Web descriptor file is corrupted : Document root element "web-app", must match DOCTYPE root "null".:2:219.
The web.xml looks like this now (just the beginning):
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- <!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
-->
<!-- Facelets needs this -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
Changing the header did not affect our application, it still works.
I cannot use your other suggestion as my webcontent is located elswhere and I am not keen on changing project/build structure :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576589#576589]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101217/737f009f/attachment.html
More information about the jboss-user
mailing list