- This topic has 7 replies, 4 voices, and was last updated 16 years, 3 months ago by
Loyal Water.
-
AuthorPosts
-
kfreemanMemberThis message has not been recovered.
December 24, 2008 at 10:41 am #292768
Loyal WaterMemberThis message has not been recovered.
April 3, 2009 at 1:52 am #297179
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.comApril 3, 2009 at 7:14 am #297192
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
April 3, 2009 at 6:36 pm #297216
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.
HobiApril 6, 2009 at 1:16 pm #297259
Loyal WaterMemberHobi,
I believe this is the same issue Im helping you with on esupport. I have replied to your ticket on esupport.April 6, 2009 at 1:24 pm #297262
HobiMemberThank you, Nipun.
– Hobi
http://hobione.wordpress.com/2009/04/03/myeclipse-ide-trial-error/April 8, 2009 at 11:12 am #297345
Loyal WaterMemberYour welcome.
-
AuthorPosts