facebook

IWAX0401E Failed to load included file ‘config.dtd’

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #233657 Reply

    THEN
    Member

    Hello!

    If I use a .dtd-File that tries to include another .dtd file i get following error message:

    X0401E Failed to load included file ‘config.dtd’

    The code for the including dtd file looks like following:

    
    <?xml encoding="iso-8859-1"?>
    <!ENTITY % mylists SYSTEM "config.dtd">
    %mylists;
    

    The code for the included dtd file:

    
    <?xml encoding="iso-8859-1"?>
    <!ELEMENT config (#PCDATA)>
    

    Is there something wrong with the .dtd files or is the error message incorrect?

    Many thanks in advance!

    Thomas

    HERE are my system settings:
    ———————————–
    What operating system and version are you running?
    Windows XP Prof.

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version 3.1.0, Build id: I20050627-1435
    – Was Eclipse freshly installed for MyEclipse?
    yes
    – If not, was it upgraded to its current version using the update manager?

    – Are any other external plugins installed?
    VSSPlugin 1.6.1
    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    4
    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    Version 4.0, Milestone 2; Buil Id: 20050627-4.0-Milestone-2

    What JDK version are you using to run Eclipse? (java -version)
    1.4.2_08

    What JDK version are you using to launch your application server?
    1.4.2_08

    What steps did you take that resulted in the issue?
    I created a .dtd file and included another one.

    What application server are you using?
    BEA WLS 8.1

    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)

    #233694 Reply

    Riyad Kalla
    Member

    Is this error marked in the left or right margin? I know we had another user about 6 months ago report issues with using XML includes because we don’t support them at this time, but AFAIK since we are using Xerces this should validate.

    #233708 Reply

    THEN
    Member

    Hi!

    Thanks for your answer!
    There is no error mark, neither left nor right. Just the file in the “Package Explorer” view contains an error mark – and of course the “Problems” view does.

    I played around a little:
    If I us a wrong file name instead, I get another error message and then I see marks in the left and the right margin. => this works correctly.

    But if I correct this error I get the X0401E error message again – and no error marks are displayed anymore in the source view.
    Do you have an idea?

    Thomas[/b]

    #233720 Reply

    Riyad Kalla
    Member

    Thomas,
    Can you create a new sample project with these two files that exhibits this weird behavior, then use File > Export > ZIP and send that to support@myeclispeide.com ATTN Riyad for me to look at?

    #233750 Reply

    THEN
    Member

    Riyad,

    I have just tried to send the mail to you, but I got an error message (Unresolvable mail address: error: unresolvable: support@myeclispeide.com).

    Did you get it anyway? Is this address ok?

    Thomas

    #233765 Reply

    Riyad Kalla
    Member

    Yep got it anyway and imported project and tried it out, it worked fine, no validation errors.

    I think the validation error you have might be stale. Try and right click on your project, go down to MyEclipse > Remove all error makers, then Project > Clean and clean your project (make sure Automatically rebuild is checked in project menu so it rebuilds), is the error gone?

    #233776 Reply

    THEN
    Member

    No, sorry. I am getting the same error message as before.

    I also tried it with a new workspace, but that did not help.
    I also tried it on a different computer – no difference.

    strange…

    Thomas

    #233801 Reply

    Riyad Kalla
    Member

    Can you try installing and runn Eclipse with JDK 1.5.0_04, that is the only difference I can see between our setsup.

    #233823 Reply

    THEN
    Member

    I did it –> it makes no difference.

    #233847 Reply

    Riyad Kalla
    Member

    1) Try and restart Eclipse using the -clean command line argument.

    2) Do you have any custom XML parsing libraries in your <jdk>\jre\lib directory?

    3) Do you have a system wide CLASSPATH environment variable set? If so, rename it to “CLASSPATH_OLD” and restart MYEclipse, did that help?

    I’m running out of suggestions here, the biggest pain being that I can’t reproduce this.

    #233882 Reply

    THEN
    Member

    I tried, but id did not help.

    But let’s make following: suspend your activities concerning this point.
    And perhaps you could contact me again, if you have further ideas, suggestions, or a solution (that of course would be great!! 🙂 ). OK?

    If I discover something new I will tell you.

    Thank you very much for your help!

    Thomas

    #245962 Reply

    oraise
    Member

    Hello @THEN,
    did you find out something in the meanwhile ?
    I have the same error here and it is making me crazy.

    I try to load local .ent files in a XHTML file:

    <!ENTITY % HTMLlat1 PUBLIC
       "-//W3C//ENTITIES Latin 1 for XHTML//EN" 
       "xhtml-lat1.ent">
    %HTMLlat1;

    And I get the error:

    2 IWAX0401E Failed to load included file ‘xhtml-lat1.ent’ xhtml1-transitional.dtd

    What can we do?

    Thomas

    #245989 Reply

    oraise
    Member

    Hello,

    I also found a workaround:

    If I dont load the .ent files locally but from W3C, Myeclipse is satisfied.:

    new code:

    <!ENTITY % HTMLlat1 PUBLIC
       "-//W3C//ENTITIES Latin 1 for XHTML//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
    %HTMLlat1;

    The same solution could help if you try to load the DTD file locally. If you fetch it from W3C it workes.

    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    If you find a way to load it from an URL (maybe: http://localhost:8080/DTD/myDTD.dtd) it could work too.

    But then you always have to have an internet connection.

    Hope this helps.
    Thomas

    #252182 Reply

    Eric
    Member

    I am still having this problem. It doesn’t matter if I include it the file locally or from a URI.

    For example, in one of my DTD files:

    
    <!ENTITY % HTMLlat1 PUBLIC 
      "-//W3C//ENTITIES Latin 1 for XHTML//EN"  
      "xhtml-lat1.ent">
    %HTMLlat1;

    results in:

    IWAX0401E Failed to load included file 'xhtml-lat1.ent'

    and:

    
    <!ENTITY % HTMLlat1 PUBLIC 
       "-//W3C//ENTITIES Latin 1 for XHTML//EN" 
       "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> 
    %HTMLlat1;

    results in:

    IWAX0401E Failed to load included file 'http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent'

    In actuality both are working fine when the project is running, it just doesn’t validate within MyEclipse.

    Any idea what to do?

    #252199 Reply

    Riyad Kalla
    Member

    edickman to make sure those aren’t stale errors as you try thing, be sure to right click on your project and go to MyEclipse > remove Validation markers and then revalidate. It’s possible (in the past) that some validation markers hung around and people went nuts when infact nothing was wrong with their project.

    In MyEclipse 5.0 (M1 due out any hour now) we have updated a lot of the XML work witht he new WTP refresh, keep us posted if this works in that version (and any other bugs you find).

Viewing 15 posts - 1 through 15 (of 17 total)
Reply To: IWAX0401E Failed to load included file ‘config.dtd’

You must be logged in to post in the forum log in