- This topic has 21 replies, 9 voices, and was last updated 18 years, 1 month ago by Ebi.
-
AuthorPosts
-
Scott AndersonParticipantBjorn,
The problem might be a timeout issue when MyEclipse attempts to retrieve the DTD for the first time. At present, MyEclipse is rather impatient and will only wait 1 second for a reply from the server before determining that the DTD is not available. There’s an enhancement request already to make this configurable. To work around the issue, you can manually populate the DTD cache with the DTD locally by downloading the file and then placing it in <workspace>/.metadata/.plugins/org.xmen/dtd and naming it by replacing all the colons and slashes with underscores like this: http___jakarta.apache.org_commons_dtds_validator_1_1.dtd
To see if the DTD caching issue is the cause, try changing your file to referece the 1_0 version of the DTD and see if the problem disappears. If it does, the workaround above should take care of it.
Miron CupermanMemberI found that the problem can be cleared if you uncheck “Use cache for DTDs”. After it clears, you can check the checkbox again. Probably this clears the DTD cache.
Miron CupermanMemberActually, there’s still a bug there. It looks like the first time it hits the web server where the DTD is, it uses HTTP 0.9 without a Host: header. This causes http://www.apache.org to return a 404 error. This is then stored into the DTD cache:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /commons/dtds/validator_1_1.dtd was not found on this server.</p> <hr /> <address>Apache/2.0.49-dev (Unix) Server at www.apache.org Port 80</address> </body></html>
➡ If I manually download into the cache, it works fine.
support-michaelKeymasterMiron,
Thanks for the great research to track this down. I entered a problem report (PR) on this behavior.
Tim PenheyMemberI currently have a similar problem with a struts tiles config.
Eclipse 2.1.3
MyEclipseIDE 2.7.1
Win XP
JDK 1.4.2_03Deleting the DOCTYPE and saving clears the error, but pasting it back in and saving it again brings the error back.
Deleting the file from the project and creating a new file with the same name has the same problems.Funnily enough this worked fine yesterday, but on restarting eclipse this morning, I started getting this error. Now the pages I am working on are not being deployed, and this is fouling things up.
Do you want any more information?
Tim
Tim PenheyMemberOops, just went back through these messagse, and found the Cached DTDs entry. Tried that and it now works again 😉
EbiMember@ereze wrote:
I’v got this XML file in my Web module which starts like this:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE securityfilter-config PUBLIC "-//SecurityFilter.org//DTD Security Filter Configuration 1.1//EN" "http://www.securityfilter.org/dtd/securityfilter-config_1_1.dtd"> ... ...
In the ‘problems’ pane I get the following error:
“The markup declarations contained or pointed to by the document type declaration must be well-formed.”
How can I get rid of this?
Thanks,
Erez
Dear MyEclipse members,
I have faced this message in xml processing using Jdom. Since I had not define a DocType for
my org.jdom.Document, I faced such message. But in doctype definition I used a trick. I downloaded the .dtd file and called it “mydtd.dtd” and placed it nearby the .xml file (to be processed file) and changed the doctype of that .xml file as “mydtd.dtd” . It worked properly.
Maybe eclipse developers have used jdom in xml validation and the problem would be like mine, so the bug can be fixed in the way I did or any better solution.
Best regards. -
AuthorPosts