facebook

Instruction target matching [xX][mM][lL] not allowed

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #252998 Reply

    Robert Morse
    Member

    I’m relatively new to MyEclipse with mixed reviews. I’m trying to get the Apache MyFaces / Tobago examples to run, but I’m getting an error in their standard.property.overview.properties.xml (and all other XML files in that same directory). The error appears to be tied to the !DOCTYPE entry. What folllows is a snippet from the file:

    <?xml version=”1.0″ encoding=”UTF-8″?>

    <!–
    * Copyright 2002 2005 The Apache Software Foundation.
    *
    * Licensed under the Apache License, Version 2.0 (the “License”);
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an “AS IS” BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    –>

    <!DOCTYPE properties SYSTEM “http://java.sun.com/dtd/properties.dtd”&gt;

    The error gets flagged immediately after the Copyright comment line! If I remove the <!DOCTYPE>, the error goes away. I haven’t been able to locate anything in the archives other than some references to malformed XML causing this, but I don’t see anything wrong in the <!DOCTYPE> line.

    Suggestions?

    Thanks!

    #253014 Reply

    Riyad Kalla
    Member

    Can you paste a whole file for me?

    #253062 Reply

    Robert Morse
    Member

    Sure! This is taken directly from the Apache MyFaces Tobago example. There are several property files that exhibit this exact problem, but this is the shortest of them. The error is flagged immediately after the copyright notice, and disappears if the <DOCTYPE> is removed.

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!–
    * Copyright 2002-2005 The Apache Software Foundation.
    *
    * Licensed under the Apache License, Version 2.0 (the “License”);
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an “AS IS” BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    –>

    <!DOCTYPE properties SYSTEM “http://java.sun.com/dtd/properties.dtd”&gt;
    <properties>
    </properties>

    #253146 Reply

    Riyad Kalla
    Member

    This seems to be a bug, the good news is that I just tested it with our 5.0Milestone 1 release and it is fixed now. I wouldn’t suggest you jump ship for production yet onto 3.2RC6/5.0M1 just yet but just wanted to let you know.

    #253342 Reply

    Robert Morse
    Member

    Thanks, I appreciate that. I may switch over anyway. The 4.1.1 (Mac OS X) release is pretty buggy with web deployment. I spend more time making sure it *really* deployed the right stuff to my Tomcat server than I do with productive work.

    #253353 Reply

    Riyad Kalla
    Member

    Which bugs are you running into most? Maybe I can shed some light on them.

    Also incomplete deployments are almost always caused by project contents not being refreshed. Eclipse’s view of the file system is picky and our deployer is even more picky (it just dies when it hits a file that isn’t visible to Eclipse or it’s state is inconsistent). have a high priority issue filed to improve this secret-death issue right now.

    #253805 Reply

    henk
    Member

    If you manually validate your project: context menu -> myeclipse -> run validation, the error still pops-up.

    But is this really a bug in MyEclipse? It sais: “referenced file contains errors”, which is indeed true. http://java.sun.com/dtd/properties.dtd contains errors, but I don’t really like to have errors appearing in my project because of this.

    The file I used was:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE properties SYSTEM “http://java.sun.com/dtd/properties.dtd”&gt;
    <properties>

    <entry key=”foo”>bar</entry>

    </properties>

    I’m using Eclipse 3.2rc6 with MyEclipse 5.0rc1 on JDK5u6, Windows XP SP2. The error is in the left margin as a red circle with a white cross inside it. There is ALSO an error marker in the right margin. This is red rectangle and shows the exact same message.

    #253806 Reply

    Riyad Kalla
    Member

    It’s the comment starting off the dtd file that’s pissing off the validator, it’s suppose to start with the <?xml?> tag then have comments, but it seems sun threw in a comment at the top.

    #253811 Reply

    henk
    Member

    Indeed. Sun did screw up here, so like I said it’s not really MyEclipse’s fault. Nevertheless since this is a “well known official screw up”, it may be appropriate to have a setting to ignore this somehow?

    #253816 Reply

    Riyad Kalla
    Member

    I can file it, but I can’t promise the dev team will love it or management will prioritize it. Let’s keep our fingers crossed. IN the mean time just download the DTD to the same dir as your XML file and change your DTD ref to jsut the name of the DTD (you probably already did that?)

    Also, you could download the DTD, fix it, put it on your hard drive somewhere then add it to the XML catalog.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Instruction target matching [xX][mM][lL] not allowed

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