The markup in the document preceding the root element must be well-formed

Hi,
Each time I add some library, something serious happens to my NetBeans5.5 and Tomcat 5.5.17. This time I added jsf-facelets.jar and now nothing is being deployed. I m getting following exception
javax.servlet.ServletException: Error Parsing /Dept.jsp: Error Traced[line: 1] The markup in the document preceding the root element must be well-formed.
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
Is there any special procedure to follow to add libraries?
Plz help.

Facelets is XHTML. XHTML is XML-HTML. XML require strict well-formness of the tags. I.e. every tag should be correctly nested and closed.
I would say, read the Facelets Developer Documentation: http://www.google.com/search?q=facelets+developer+documentation

Similar Messages

  • The markup in the document following the root element must be well-formed.

    I have my XML root element that looks like this:
    <DataResponseOfListOfSite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www
    .w3.org/2001/XMLSchema" xmlns="http://xxxxxx/webservices/sites/">
    and I get the error "The markup in the document following the root element must be well-formed."
    If I use this it works fine:
    <DataResponseOfListOfSite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www
    .w3.org/2001/XMLSchema" xmlns:xsi="http://xxxxxx/webservices/sites/">
    Does anyone know why I have to have the xmlns:xsi="" instead of just xmlns=""
    If I paste this XML into any validator, it says that its good, so I dont know why Flex is complaining about it.

    In the first one you have two namespaces both with the same prefix.
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xmlns:xsi="http://xxxxxx/webservices/sites/"
    Thanks,
    Gaurav Jain
    Flex SDK Team
    http://www.gauravj.com/blog

  • Xsl:include msg - document following root element must be well-formed

    I am getting the following message when I try to execute a transaction that takes an XML file & transforms it.  The message is:
    "[ERROR]: XSLTransform error: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed."
    The transaction loads an xml input file, and then transforms it.  The transformation stylesheet does some formatting to the xml.  The stylesheet has an include in it that adds an element to the output. 
    Input XML data
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowset>
        <Row>
            <ItemNo>00000000001884304</ItemNo>
            <ItemDesc>Test Item Description</ItemDesc>
        </Row>
    </Rowset>
    Expected output:
    <?xml version="1.0" encoding="UTF-8"?>
    <Item>
        <Items ItemDesc="Test Item Description" RawItemNo="00000000001884304" dotties="...................." editedItemNo="1884304" supernova="**********" />
    </Item>
    If I point the <xsl:include to a web folder on a test box, it will read & translate the data into the expected output.  However, when I have both the initial stylesheet and the include stylesheet in the same Web folder in MII, I get the above message.  If the URL is any different, it generates an IO error. 
    The initial stylesheet is
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:output method="xml" />
    <xsl:include href="http://myserver:myport/XMII/CM/foldername/testcalls_2.xsl"/>
    <xsl:variable name="wrkitem" select="//ItemNo"/>
    <xsl:template match="Row">
         <xsl:call-template name="RowEdit"/>
    </xsl:template>
    <xsl:template name="RowEdit" match="Row">
          <Item>
         <xsl:element name="Items" use-attribute-sets="RowChange">
               </xsl:element>
           </Item>
    </xsl:template>
    <xsl:attribute-set name="RowChange">
         <xsl:attribute name="RawItemNo">
               <xsl:value-of select="//ItemNo"/>
         </xsl:attribute>
         <xsl:attribute name="editedItemNo">
              <xsl:call-template name="removeLeadingZeros">
                   <xsl:with-param name="originalString" select="$wrkitem"/>
              </xsl:call-template>
         </xsl:attribute>
         <xsl:attribute name="ItemDesc">
                   <xsl:value-of select="//ItemDesc"/>
         </xsl:attribute>
         <xsl:attribute name="dotties">
              <xsl:call-template name="dots">
                         <xsl:with-param name="count" select="20"/>
                  </xsl:call-template>
         </xsl:attribute>
         <xsl:attribute name="supernova">
              <xsl:call-template name="stars">
              </xsl:call-template>
         </xsl:attribute>
    </xsl:attribute-set>
      <xsl:template name="dots">
            <xsl:param name="count" select="1"/>
          <xsl:if test="$count > 0">
            <xsl:text>.</xsl:text>
            <xsl:call-template name="dots">
              <xsl:with-param name="count" select="$count - 1"/>
            </xsl:call-template>
          </xsl:if>
      </xsl:template>
    <xsl:template name="removeLeadingZeros"> 
      <xsl:param name="originalString"/> 
      <xsl:choose> 
        <xsl:when test="starts-with($originalString,'0')"> 
          <xsl:call-template name="removeLeadingZeros"> 
            <xsl:with-param name="originalString"> 
              <xsl:value-of select="substring-after($originalString,'0' )"/> 
            </xsl:with-param> 
          </xsl:call-template> 
        </xsl:when> 
        <xsl:otherwise> 
          <xsl:value-of select="$originalString"/>
        </xsl:otherwise> 
      </xsl:choose> 
    </xsl:template>
    </xsl:stylesheet>
    and the stylesheet being called by the xsl:include -
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template name="stars" match="Item">
    <Stars>
         <xsl:element name="BBB">
              <xsl:text>**********</xsl:text>
         </xsl:element>
    </Stars>
    </xsl:template>
    </xsl:stylesheet>
    FYI, both of the stylesheets above are in the same folder on the WEB tab in MII.  The full name (properties tab) is:
    foldername/WEB/Test/stylesheet.xsl
    Also, I am able to browse & view each of them in IE.  The url they are at is:
    http://server:port/XMII/CM/foldername/test/stylesheet.xsl
    Both stylesheets appear to be well-formed.
    If I use any other syntax other than the full URL, the error it generates is an IO Exception on the included stylesheet.  The markup message above makes me believe that it is at least attempting to handle the included stylesheet. 
    In the Link editor of the xsl Transformation Incoming tab, there are two assignments being made.
    1.  Transform property
    object= xsl_transformation_0
    property=Transform
    expression="db://foldername/WEB/Test/stylesheet.xsl" (this is the initial, not included stylesheet)
    Link type=Assign Value
    2.  Input property
    object= xsl_transformation_0
    property=Input
    Expression=testitems_0.XmlContent
    Link type=Assign XML
    Running MII 12.0
    Thoughts?  Any input appreciated.

    In the first one you have two namespaces both with the same prefix.
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xmlns:xsi="http://xxxxxx/webservices/sites/"
    Thanks,
    Gaurav Jain
    Flex SDK Team
    http://www.gauravj.com/blog

  • Warnings about root element must be well-formed

    Hey, I just downloaded and am getting running with FlexMetrics.  I'm running this from the ant taskdef.  When I run it, I get what looks to be valid and fine XML reports generated, but I also get a bunch of warnings, each of which reads:
    [flex-metrics] Oct 25, 2010 11:54:00 AM de.bokelberg.flex.parser.AS3Scanner$XMLVerifier verify [flex-metrics] WARNING: The markup in the document preceding the root element must be well-formed. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Error HandlerWrapper.java:195) [flex-metrics] com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrappe r.java:174) [flex-metrics] com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav a:388)
    The taskdef element is pretty standard:
    <taskdef name="flex-metrics" classname="com.adobe.ac.pmd.metrics.ant.FlexMetricsAntTask" classpath="${flexpmd.libs}/flex-pmd-metrics-ant-task-${flexpmd.version}.jar">
        <classpath>
            <pathelement location="${flexpmd.libs}/flex-pmd-files-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/flex-pmd-metrics-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/as3-plugin-utils-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/as3-parser-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/as3-parser-api-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/commons-lang-2.4.jar" />
            <pathelement location="${flexpmd.libs}/flex-pmd-ruleset-api-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/pmd-4.2.5.jar" />
            <pathelement location="${flexpmd.libs}/dom4j-1.6.1.jar"/>
        </classpath>
    </taskdef>
    References to this look like this:
    <flex-metrics sourcedirectory="${home.project}\src" outputfile="${deploy.dir}/metrics/project.javancss.xml" />
    So I'm not doing anything weird or crazy with it.  I get that error message repeated 42 times.  I can't really seem to correlate that number with anything in my project, i.e. we've got more than 42 mxml files (59 of them), we've got more than 42 AS3 files, etc.  So I'm not really sure what it's hitting 42 times to come up with that error.
    Any ideas on what this might indicate would be greatly appreciated!

    My working theory is that it chokes on instances of the Vector Object (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html) but I have yet to verify that conclusively.

  • TLD Error:The markup in the document preceding the root element must...

    Hello, I am new to using the Tag Libraries, i am getting the following error which seems to be in my treeTag.tld file, I am pasting the error message and the treeTag.tld at the bottom of this message. Any help is much appreciated.
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: XML parsing error on file /TreeTag/treeTag.tld: (line 5, col 1): The markup in the document preceding the root element must be well-formed.
         at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:218)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
         at ***************************************************
    Here is my treeTag.tld file
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    - <taglib>
         <tlibversion>1.1</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>Tree taglib</shortname>
         <uri>http://www.servletsuite.com/servlets/treetag</uri>
         <info>Tree tags</info>
         - <tag>
              <name>createTree</name>
              <tagclass>com.cj.tree.createTree</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Creates HTML-based tree view</info>
         </tag>
         - <tag>
              <name>addNode</name>
              <tagclass>com.cj.tree.addNode</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>adds node</info>
              - <attribute>
                   <name>code</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
         </tag>
    </taglib>
    Regards,
    Navin Pathuru.

    You might make sure - if you havent already - that you are using the must up to date jsp version

  • Org.xml.sax.SAXParseException: The markup in the document preceding the roo

    Below is the XML we are using to parse:
    <?xml version="1.0" encoding="UTF-8"?>
    <ead><archdesc level="class">desc</archdesc><eadheader audience="internal"><eadid>eadid23456</eadid></eadheader></ead>
    The application throws the exception:
    org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
         at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
         at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
         at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
         at gov.nysed.vrc.xml.FAHandler.parse(FAHandler.java:44)
         at gov.nysed.vrc.web.actions.FAEditorDispatchAction.validateFA(FAEditorDispatchAction.java:857)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)...
    I tried using several editors and online XML syntax checkers. None of them complained. Also I tried removing the newline character or any spaces in the document. Didn't help either. I read in some of the forums that Xerces could be picky about spaces but even without any spaces, I am getting this exception.
    We are using Weblogic 8.1 and the default parsers... Any help is appreciated. - Thanks...

    The Java API documentation (the bit about character encodings) mentions "ISO-8859-1" but not "ISO8859-1". Try that instead?

  • The markup must be well-formed.

    Hi,
    I am beginer in SAX and Java.
    I am tring to read Information from not well formed XML File.
    When I try to use SAX or DOM Parser then I have this error:
    The markup in the document following the root element must be well-formed.
    My XML File looks like this:
    <format type="filename" t="13241">0;W650;004;AG-Erzgeb</format>
    <format type="driver" t="123412">001;023</format>
    Can I force SAX or DOM to parse not well-formed XML files?
    Thank you for your help.
    Haythem
    Edited by: Haythem on Mar 23, 2010 3:52 AM

    Thank you it helps.
    I used ByteArrayInputStream and InputStream to add <root>... </root> for the file on the fly and it is well formed now.
    String rootB ="<wrapper>";
         String rootE= "</wrapper>";
         Vector<InputStream> v = new Vector<InputStream>();
         byte[] bArray = rootB.getBytes();
         byte[] eArray = rootE.getBytes();
         ByteArrayInputStream baisB = new ByteArrayInputStream(bArray);
         ByteArrayInputStream baisE = new ByteArrayInputStream(eArray);
         InputStream fisFile = new FileInputStream(file);
         v.addElement( baisB );
         v.addElement( fisFile );
         v.addElement( baisE );
         InputStream combined = new SequenceInputStream(v.elements());
            Document doc = docBuilder.parse (combined);....
    Edited by: Haythem on Mar 25, 2010 4:15 AM
    Edited by: Haythem on Mar 25, 2010 4:17 AM
    Edited by: Haythem on Mar 25, 2010 4:18 AM

  • Exception:"Decrease the number of char between the beginning of the document and its root element"

    I'm now using a javabean in my jsp page to parse xml;when my xml file's size is
    about 10k,it just work fine;when my xml file's size became 50k,it throws the followng
    Exception:
    Failed to open xml document,Failed to retrieve Public id or system id from the
    document. Decrease the number of char between the beginning of the document and
    its root element. But when I run this javabean in JBuild ,it works fine no matter
    how big the xml file becomes;
    Why? the error message is in the attachment.

    The prologue must be included at the top of the document, followed by the root
              element.
              joden2000 wrote:
              > what does this exception mean:decrease the number of char between the beginning
              > of the document and its root element? When my xml file is about 10k,it works
              > just fine,when it becomes 50k ,the exception show.How can I deal with this?
              

  • Whenever i click on word or powerpoint it always brings up a recent document. I want to have the option like when i had first opened the app that gives the options of new document and the variety of different documents. how do i get it back to that?

    whenever i click on word or powerpoint it always brings up a recent document. I want to have the option like when i had first opened the app that gives the options of new document and the variety of different documents. how do i get it back to that?

    tbreezy wrote:
    THANK U!! K ONE MORE QUICK QUESTION. HOW DO I GET RID OF THAT POP UP BOX?
    Not sure, try googling "the global template normal.dotm is already open as an add-in program"

  • How do i get my team to all see the same say, ID, document using the cloud?

    how do i get my team to all see the same say, ID, document using the cloud?

    Adobe Max was a smoke and mirror show and they demonstrated "Folder Sharing" so we bought into it. Myself and 7 of my clients. After the Max show they turned it off like nobody would notice. Two weeks after they stopped the folder sharing feature they put a little notice that they had did this. Nice how they treat their loyal customers. Every month they charged us an extra $20 over a single account without the folder sharing. What good is "team work" if you can't share a folder of files. Sharing a single file at a time is a waste of time.
    After a year still no folder sharing but the same old story of "soon". Adobe is using the extra money they are "stealing" from paying clients to pay for this development. We are being forced to pay the extra money again for another year as there is no way to downgrade to a single user account. Adobe likes to use this as an excuse to continue to rob and steal from loyal user that have no choice but to deal with these crooks.
    My only suggestion is for new users not to buy the team account package. There marketing material is filled with misleading statements that gives the potential new customer the impression that they can work in teams, as if a team can  work sharing single files. This is a sign that Adobe is about the cash grab and not about the quality of software and the end user experience.

  • How to push the two pdf opened documents in the array?

    Hi all,
    I need to store the two pdf opened documents in the array value(i.e array(0), array(1)) and then get that array value one by one, and print it through AVAlertNote(). Kindly advise me the possiblities and solution.
    Thanks for looking into this.

    What do you mean you want to put the "pdf open documents" in an array?  You mean the PDDoc structures?  Just use a std::vector<> or the like.
    And what did you want to print?
    If you are trying to debug, why not use the source debugger for your platform?

  • Will Word 2016 have the option to save documents as the Word 97-2003 file format like Word 2013 does?

    This is talking about if Word 2016 will have the option to save documents as the Word 97-2003 format like Word 2013 does or not.

    Hi Carolyn,
    It sounds as though the filename extension association has become confused on your system. It's odd that it happened after conversion, but it should be easy to fix nonetheless.
    Here are some instructions for changing file associations on both Mac OS and Windows:
    Change File Associations in Mac OS X - OS X Daily
    Change which programs Windows uses by default ... (Windows 7)
    Change which programs Windows uses by default - Windows Help (Windows Vista)
    Please let us know if you have additional questions.
    Best,
    Sara

  • Table having the link between  Clearing document and the Invoice document

    pls can someone tell me the table that having the relationship between clearing document and the Invoice document.
    Thanx .

    Hi,
    You can try with the following tables: BSE_CLR, BSEG, BSAD, BSAK.
    Regards,
    Svetlin

  • Java/lang/RuntimeException: Document has no root element

    Hi all,
    Regarding xml parsing in j2me motorola sdk.
    i'm trying to parse an xml file but whenever i run in motorola sdk i get document as no root element error,bt
    if i run with default configuration it runs perfectly fine..,
    would some one come up with the solution for motorola sdk.
    snippet of xml fie:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Procedure >................</Procedure >
    Regards,
    sheetal

    it throughs the exception as and when it encounters xml file..,n its nly in motorola sdk ,bt its working fine in other sdk's. http://www.catb.org/~esr/faqs/smart-questions.html#writewell
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal � in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse �its� with �it's�, �loose� with �lose�, or �discrete� with �discreet�. Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o ob to save two entire keystrokes. Worse: writing like a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best, a heaping helping of scorn and sarcasm) in return.
    If you are asking questions in a forum that does not use your native language, you will get a limited amount of slack for spelling and grammar errors � but no extra slack at all for laziness (and yes, we can usually spot that difference). Also, unless you know what your respondent's languages are, write in English. Busy hackers tend to simply flush questions in languages they don't understand, and English is the working language of the Internet. By writing in English you minimize your chances that your question will be discarded unread.

  • Printing the contents of word document in the smartform

    Hi all,
       Can anyone help me out in solving my problem. Problem is that i need to read a MS word document from a specified location given on the selection and print it in the smart form with the exact formatting options as in the MS word. If possible provide me with some smaple code for this.
    Thanks in advance,
    Swamy Mantha

    Hi all,
      it seems all are busy with their work.. A gentle request. Can any one solve the problem which i had posted earlier. for convenience i am posting the query once again.
    Can anyone help me out in solving my problem. Problem is that i need to read a MS word document from a specified location given on the selection and print it in the smart form with the exact formatting options as in the MS word. If possible provide me with some smaple code for this.
    Thanks in advance for ur efforts,
    Swamy Mantha

Maybe you are looking for

  • Legacy conversion

    There is this function module in R/3 which converts legacy vendor # into SAP vendor #. I am loading the purchasing history and I am being provided the legacy vendor # , I need to convert that into SAP # before loading into BW. Otherwise for the legac

  • Pages disappeared

    Today, I tried opening a document. But, it failed to open. A message popped up saying.. "The document could not be opened. The file is not in the right format." It also cannot be found in my applications. But, numbers and key note is showing on appli

  • Function Module to Dealy the JOB

    Hi, I have a program and inside it submiting one JOB. So i have wait for execution of further program till the previous job finises. So how can i do this? Is there any function module to wait for the JOB. Thanks Ku

  • Cannot Save File.  File is Locked

    Good morning.  I just downloaded the Cloud CS6 and am working with Fireworks. I saved a PNG file then later went back to modify and now cannot save the file.  I am trying to save as with a png extension but keep getting the message cannot save file. 

  • Download linked file  contextual missing ellipsis

    Under Tiger 10.4.2 Safari 2.0 and 2.01 (on two macs a G4 QuickSilver & G4iMac) the contextual menu item DOWNLOAD LINKED FILE no longer has an ellipsis. In prior OS or prior Safari versions the command via the ellipsis and a further dialog, allowed us