[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"


<!-- Facelets needs this -->

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

Start a new discussion in JBoss Tools at Community

-------------- 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