- This topic has 7 replies, 4 voices, and was last updated 15 years, 8 months ago by Loyal Water.
-
AuthorPosts
-
kfreemanMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
HobiMember@support-nipun wrote:
kfreeman,
You can go to Windows > Prefs > MyEclipse > Files and Editors > XML and set “Indicate when no grammar is specified” to Ignore.———————————————————–
I have tried that, it wont work.
I still see errors says “No grammar constraints (DTD or XML schema) detected for the document”
Thanks
Hobi
– hobione.wordpress.com
support-joyMemberHobi,
If the namespace entry from that file is in the XML catalog and resolves it to a specific DTD or XSD, then you will not get this issue — it has no grammar to work against.
You will need a schemaLocation argument that specifies the namespace and actual URL of where the persistence type lives.To resolve this you need to just change your catalog entry to point at this Location http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
HobiMemberJoy:
I have tried two things. In my index.xhtml, I have tried xsi:schemaLocation: as follows.
<ui:composition xmlns:h=”http://java.sun.com/jsf/html”
xmlns:f=”http://java.sun.com/jsf/core”
xmlns:ice=”http://www.icesoft.com/icefaces/component”
xmlns:ui=”http://java.sun.com/jsf/facelets”
xsi:schemaLocation=”http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd”
template=”/WEB-INF/facelets/template.xhtml”>
</ui:composition>I have also tried in web.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
version=”2.5″
xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd”
id=”HRTrainingUI”>
</web-app>Error: Severity and Description Path Resource Location Creation Time Id
cvc-elt.1: Cannot find the declaration of element ‘web-app’. HRTrainingUI/web/WEB-INF web.xml line 5 1238799770761 2899Even -clean command did not work either.
Please advise.
Hobi
Loyal WaterMemberHobi,
I believe this is the same issue Im helping you with on esupport. I have replied to your ticket on esupport.
HobiMemberThank you, Nipun.
– Hobi
http://hobione.wordpress.com/2009/04/03/myeclipse-ide-trial-error/
Loyal WaterMemberYour welcome.
-
AuthorPosts