XML C++ Parser in Solaris 2.6 could not parse with encoding UTF-16

I tried to use UTF-16 encoding in the XML C++ Parser in Solaris 2.6.
xmlinit() fails and returns error 201 - i.e.Unknown encoding. Though the ORACLE documentation has many encodings including UTF-16. Quite a few of these encodings are not working.
Can any one help about UTF-16.
Thanks
Vijay Kumar

Do you have Oracle's NLS data files?

Similar Messages

  • XML C++ Parser in Solaris 2.6 could not parse with base64

    I am using XML C++ Parser (version 2.0.4) in Solaris 2.6
    I am using the following definition in dtd file to process binary data.
    <!ELEMENT Agent (base64)>
    I have two problem from xmlparse() function.
    1. This declaration always produces a warning:
    LPX-00103: warning: document structure does not match DTD.
    2. This causes the parser to fail completely if the corresponding data is empty. This field needs to be optional.
    Any ideas how to handle this situation.
    Thanks in advance
    Vijay Kumar

    You can either turn off validation or read section 3.2 of http://www.w3.org/TR/1998/REC-xml-19980210 on how to write a proper DTD.
    null

  • XML: LPX-00200: could not convert from encoding UTF-8 to UCS2

    Hi,
    Greetings!
    I have special character(s) in a column and that character is chr(189) and because of that when i use the xml functions in my query it returns below error.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    I am using sys_xmlagg and getting above error when i encounter the data as below:
    "Dixon¿s Chicago".
    Note: When ever It encounters the bold character string it fails ... Any help !!!
    And one more thing when i create another record with same data by copy and pasting it works fine and when i did a dump on that column data its different. see the below result of dump.
    Naveen.
    SQL> desc temp_xml;
    Name Null? Type
    TNO NUMBER(4)
    NAME VARCHAR2(255)
    SQL> select name,length(name),dump(replace(name,chr(189),'')) data_dmp from temp_xml;
    NAME LENGTH(NAME) DATA_DMP
    ¿s Chicago 10 Typ=1 Len=12: 239,191,189,115,32,67,104,105,99,97,103,111
    ¿s Chicago 10 Typ=1 Len=11: 194,191,115,32,67,104,105,99,97,103,111
    SQL>
    if you observe the above 2 rows the fist row shows length as 12 and second shows as 11. actually 2nd rows works fine but first gives error. I am not able to see where that hidden character is and not able to remove that character.
    Message was edited by:
    naveenhks

    Hi,
    I have a similar problem:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to ISO-8859-1I'm executing the following Select when encountering this error:
    SELECT /*+ INDEX(resource_view XDBHI_IDX) */
               extract(resource_view.res, '/Resource/Contents/*').getClobVal()           AS Dokument
      FROM  resource_view
    WHERE resource_view.any_path LIKE '%PATH_TO_FILE%';I have 5 XML-documents and this error occurs at two ('A' and 'B') of them. When I transfer the same 5 documents from another PC the error occurs at document 'C' and not at 'A' and 'B'.
    Any clue or hint which could explain this behaviour? What NLS parameters can I check in order to help you understand the situation?
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

  • LPX-00200: could not convert from encoding UTF-8 to UCS2 during

    When doing an query with SQL/XML on a database with the following characterics
    NLS_LANGUAGE -- AMERICAN
    NLS_CHARACTERSET - UTF8
    NLS_NCHAR_CHARACTERSET - AL16UTF16
    Database version is 9.2.0.5.0
    I get the following error on a text with special characters
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    I used the tip from another developer to use the convert function :
    XMLForest(convert(train.programma, 'UTF8', 'WE8ISO8859P1') AS "programma"
    Now at least I don't get the error but in the resulting all special characters (and there are a lot of them!) are garbled
    So for example (hope this comes across during the post)
    original : coördinatoren
    in xml : coördinatoren
    Any suggestions here? I'm not really allowed to change any database-parameters or doing an upgrade
    Maybe using something else in the convert function?

    Here's the complete query (with the convertfunction in it). Hope this helps
    select XMLElement("lmsImport", XMLAttributes('LmsImportSchema.xsd' as "xsi:noNamespaceSchemaLocation",
    'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi"),
    XMLElement("trainingen",(
    Select XMLAGG(XMLElement("training",
    XMLElement("id", train.id),
    XMLElement("code", train.code),
    XMLElement("leverancier",
    XMLElement("leverancier",
    XMLATTRIBUTES(NVL(train.leverancier, 'vendr000000000001021') as "leverancierId"))),
    XMLElement("status", (CASE when TRUNC(NVL(train.disc_from, sysdate)) >= TRUNC(sysdate) then
    'Actief'
    else
    'Inactief'
    END )),
    XMLElement("naam", train.naam),
    XMLForest(
    XMLForest(Decode(train.afronding, 'Bewijs van Deelname', 'Instituutsdiploma', train.afronding) AS "afronding") as "afrondingen"),
    XMLForest(
    XMLForest(train.lesmethode AS "lesmethode") as "lesmethodes"),
    XMLForest(
    XMLForest(convert(train.programma, 'UTF8', 'WE8ISO8859P1') AS "programma") as "memos"),
    XMLForest(train.lesduur AS "lesduur")).extract('/*'))
    FROM (select cours.id id, cours.course_no code, cours.custom2 leverancier, cours.disc_from disc_from, cours.title naam, 'Training' lesmethode,
    cours.desc1||cours.desc2||cours.desc3||cours.desc4 programma, ROUND(cours.num_days) lesduur, ddcus.str_value afronding
    from tpt_courses cours
    inner join fgt_domain domin
    on cours.split = domin.id
    left join (fgt_dd_custom ddcus
    inner join fgt_dd_domain_to_attr ddoat
    on ddoat.id = ddcus.attr_id
    on ddcus.owner_id = cours.id
    where (domin.name = 'Content' or domin.name like 'CT%')
    and ddoat.attr_id = 'ddatr900000000000009'
    union
    select prdct.id id, prdct.part_no code, prdct.vendor_id, prdct.disc_from disc_from, prdct.name naam,
    decode(prdct.equip_cat_id, 'eqcat000000000000005', 'WBT', 'eqcat000000000001006', 'Book', 'eqcat000000000001019', 'Training', 'eqcat000000000001037', 'Training') lesmethode,
    prdct.desc1||prdct.desc2||prdct.desc3||prdct.desc4, null, custom7
    from tpt_product_catalog prdct, fgt_domain domin
    where prdct.split = domin.id
    and (domin.name = 'Content' or domin.name like 'CT%')) train )).extract('/*')).extract('/*') from dual;

  • LPX-00200: could not convert from encoding UTF-8 to UCS2

    Dear Gurus,
    I am facing this error while I am parsing an XML File.
    My Database settings are
    NLS_LANGUAGE -- AMERICAN
    NLS_CHARACTERSET - AL32UTF8
    NLS_NCHAR_CHARACTERSET - AL16UTF16
    Database version is 10gr2. (10.2.0.3.0 )
    My XML File is having version encoding given below
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    If I convert encoding to UTF-8 Then the XML Parsing is doing fine, but the special characters are like Ö ß converted to some other Characters like öß, which I don't want.
    Appreciate any help.
    Regards
    Madhu K

    I have been across the this problem. I solve the problem that come to original ml file. '-' character cause this problem:
    <?xml version="1.0" ?>
    - <ROWSET>
    - <ROW>
    <DEPTNO>10</DEPTNO>
    <DNAME>ACCOUNTING</DNAME>
    <LOC>NEW YORK</LOC>
    </ROW>
    - <ROW>

  • Windows 8.1 having same issue: Windows could not parse or process unattend answer file (C:\Windows\Panther\unattend.xml) for pass [specialize]. A component or setting specified in the answer file does not exist.

    I know there are similar other issues with IE 10 and Windows 7.  This is WINDOWS 8.1, and the IE Welcome message is totally absent from the default unattend.xml in the c:\windows\panther directory.  In fact, I did a sysprep without using any injected
    unattend.xml - this is the Microsoft Default!
    So I suspect this will start appearing all over again soon.  Anyone figure out what was causing it?
    Here is the new Specialize section from the xml:
    <settings pass="specialize">
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CEIPEnabled>0</CEIPEnabled>
            </component>
            <component name="Microsoft-Windows-SQMApi" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CEIPEnabled>0</CEIPEnabled>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <!--<CopyProfile>true</CopyProfile>-->       
                <ComputerName>Win8</ComputerName>
                <TimeZone>Pacific Standard Time</TimeZone>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <!--<CopyProfile>true</CopyProfile>-->         
                <ComputerName>Win8</ComputerName>
                <TimeZone>Pacific Standard Time</TimeZone>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                   <!--<RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Description>Disable UAC for Users</Description>
                        <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA"  /t REG_DWORD /d
    0 /f</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <Description>Disable UAC for Admin</Description>
                        <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "FilterAdministratorToken" /t REG_DWORD
    /d 0 /f</Path>
                    </RunSynchronousCommand>-->
                    <RunSynchronousCommand wcm:action="add">
                        <Description>Enable Admin Account</Description>
                        <Order>3</Order>
                        <Path>net user administrator /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>powercfg -h off</Path>
                        <Order>4</Order>
                    </RunSynchronousCommand>               
                    <RunSynchronousCommand wcm:action="add">
                        <Order>5</Order>
                        <Path>cmd /c %WINDIR%\Setup\Specialize_x64.cmd</Path>
                    </RunSynchronousCommand>                
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                   <!--<RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Description>Disable UAC for Users</Description>
                        <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA"  /t REG_DWORD /d
    0 /f</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <Description>Disable UAC for Admin</Description>
                        <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "FilterAdministratorToken" /t REG_DWORD
    /d 0 /f</Path>
                    </RunSynchronousCommand>-->
                    <RunSynchronousCommand wcm:action="add">
                        <Description>Enable Admin Account</Description>
                        <Order>3</Order>
                        <Path>net user administrator /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>powercfg -h off</Path>
                        <Order>4</Order>
                    </RunSynchronousCommand>               
                    <RunSynchronousCommand wcm:action="add">
                        <Order>5</Order>
                        <Path>cmd /c %WINDIR%\Setup\Specialize_x86.cmd</Path>
                    </RunSynchronousCommand>                
                </RunSynchronous>
            </component>
             <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <BlockPopups>yes</BlockPopups>
                <CompanyName>FYM Inc</CompanyName>
                <DisableAccelerators>true</DisableAccelerators>
                <DisableDevTools>false</DisableDevTools>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <DisableOOBAccelerators>true</DisableOOBAccelerators>
                <DisableWelcomePage>true</DisableWelcomePage>
                <EnableLinksBar>false</EnableLinksBar>
                <FavoritesDelete>true</FavoritesDelete>
                <FilterLevel>High</FilterLevel>
                <Help_Page>www.google.com</Help_Page>
                <Home_Page>www.google.com</Home_Page>
                <LockToolbars>false</LockToolbars>
                <MSCompatibilityMode>false</MSCompatibilityMode>
                <NoDial>true</NoDial>
                <ShowCommandBar>true</ShowCommandBar>
                <ShowInformationBar>true</ShowInformationBar>
                <SuggestedSitesEnabled>false</SuggestedSitesEnabled>
                <SearchScopes>
                    <Scope wcm:action="add">
                        <DisplayQuickPick>true</DisplayQuickPick>
                        <ScopeDefault>true</ScopeDefault>
                        <ScopeDisplayName>Google</ScopeDisplayName>
                        <ScopeKey>Search1</ScopeKey>
                        <ScopeUrl>http://www.google.com/advanced_search?hl=en</ScopeUrl>
                        <ShowSearchSuggestions>true</ShowSearchSuggestions>
                        <ShowTopResult>true</ShowTopResult>
                    </Scope>
                </SearchScopes>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <BlockPopups>yes</BlockPopups>
                <CompanyName>FYM Inc</CompanyName>
                <DisableAccelerators>true</DisableAccelerators>
                <DisableDevTools>false</DisableDevTools>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <DisableOOBAccelerators>true</DisableOOBAccelerators>
                <DisableWelcomePage>true</DisableWelcomePage>
                <EnableLinksBar>false</EnableLinksBar>
                <FavoritesDelete>true</FavoritesDelete>
                <FilterLevel>High</FilterLevel>
                <Help_Page>www.google.com</Help_Page>
                <Home_Page>www.google.com</Home_Page>
                <LockToolbars>false</LockToolbars>
                <MSCompatibilityMode>false</MSCompatibilityMode>
                <NoDial>true</NoDial>
                <ShowCommandBar>true</ShowCommandBar>
                <ShowInformationBar>true</ShowInformationBar>
                <SuggestedSitesEnabled>false</SuggestedSitesEnabled>
                <SearchScopes>
                    <Scope wcm:action="add">
                        <DisplayQuickPick>true</DisplayQuickPick>
                        <ScopeDefault>true</ScopeDefault>
                        <ScopeDisplayName>Google</ScopeDisplayName>
                        <ScopeKey>Search1</ScopeKey>
                        <ScopeUrl>http://www.google.com/advanced_search?hl=en</ScopeUrl>
                        <ShowSearchSuggestions>true</ShowSearchSuggestions>
                        <ShowTopResult>true</ShowTopResult>
                    </Scope>
                </SearchScopes>
            </component>
             <component name="Microsoft-Windows-RemoteAssistance-Exe" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <fAllowFullControl>true</fAllowFullControl>
                    <fAllowToGetHelp>true</fAllowToGetHelp>
             </component>
             <component name="Microsoft-Windows-RemoteAssistance-Exe" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <fAllowFullControl>true</fAllowFullControl>
                    <fAllowToGetHelp>true</fAllowToGetHelp>
             </component>
             <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableWER>1</DisableWER>
             </component>
             <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableWER>1</DisableWER>
             </component>         
            <component name="Microsoft-Windows-powercpl" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                 <!--  High Performance -->
                 <PreferredPlan>8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</PreferredPlan>
                 <!--  Power saver -->
                 <!--  <PreferredPlan>a1841308-3541-4fab-bc81-f71556f20b4a</PreferredPlan> -->
                 <!--  Balenced -->
                 <!--  <PreferredPlan>381b4222-f694-41f0-9685-ff5bb260df2e</PreferredPlan> -->
            </component>
            <component name="Microsoft-Windows-powercpl" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                 <PreferredPlan>8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</PreferredPlan>
            </component>      
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                    <JoinWorkgroup>Workgroup</JoinWorkgroup>
                </Identification>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                    <JoinWorkgroup>Workgroup</JoinWorkgroup>
                </Identification>
            </component>                
            <component name="Microsoft-Windows-AllUserInstallAgent" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <LogonWaitForPackageRegistration>false</LogonWaitForPackageRegistration>
            </component>
            <component name="Microsoft-Windows-AllUserInstallAgent" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <LogonWaitForPackageRegistration>false</LogonWaitForPackageRegistration>
            </component>        
        </settings>
    I'm thinking of dumping the entire IE section and see what happens.

    I too received this error as I tried to run my first Windows 8.1 deployment. Per another post I commented out this line
    <IEWelcomeMsg>false</IEWelcomeMsg>
    from the IE section of the unattend.xml. I was then able to run my deployment. I do not see this line in your posting though.
    I referenced this link even though it was for Windows 7.
    http://social.technet.microsoft.com/Forums/en-US/c41a2b69-a591-4cd3-86ab-6a0f8a73b858/getting-windows-could-not-parse-or-process-the-unattend-answer-file-for-pass-specialize-with?forum=mdt
    Hope this helps someone.
    JayTheTech
    To clarify, I edited the unattend.xml file from from Deployment Share, not C:\Windows\Panther.
    DS\control\task sequence ID\unattend.xml
    JayTheTech

  • Could not parse deployment descriptor: org.xml.sax.SAXParseException

    I am using Taglib in JSP file .
    I am calling the AbcTagLib from my jsp Login.jsp file.
    The entries for the taglib is there in web.xml file.
    Please see the attachments.
    I am getting the following errors while running my JSP file:
    Parsing of JSP File '/jsp/Login.jsp' failed:
    /jsp/Login.jsp: Could not parse deployment descriptor: org.xml.sax.SAXParseException:
    Could not parse: taglib starting at line 1
    probably occurred due to an error in /jsp/Login.jsp:
    <%@ taglib uri="AbcTagLib" prefix="abc" %>
    Please look in to it and suggest some solution.
    The files are :
    AbcTagLib.tld
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc. //DTD JSP Tag Library 1.1//EN"
    "web-jsptaglib_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>TagLib</shortname>
         <tag>
         <name>label</name>
         <tagclass>com.abc.internet.common.taglib.LiteralTag</tagclass>
         <bodycontent>empty</bodycontent>
         <info>This is a simple tag for ABC</info>
              <attribute>
                   <name>name</name>
                   <required>false</required>
                   <rtexpvalue>false</rtexpvalue>
              </attribute>
         </tag>
         <tag>
         <name>linkAccess</name>
         <tagclass>com.abc.internet.common.taglib.LinkAccessTag</tagclass>
         <bodycontent>JSP</bodycontent>
         <info>this is the tag class for showing the button</info>
         <attribute>
         <name>linkId</name>
         <required>true</required>
         <rtexpvalue>false</rtexpvalue>
         </attribute>
         <attribute>
         <name>flag</name>
         <required>true</required>
         <rtexpvalue>false</rtexpvalue>
         </attribute>
         </tag>
    </taglib>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN'
    'file:///D:/bea/wlserver6.0sp1/web-app_2_2.dtd'>
    <web-app>
    <taglib>
    <taglib-uri>AbcTagLib</taglib-uri>
    <taglib-location>/WEB-INF/AmsTagLib.tld</taglib-location>
    </taglib>
    </web-app>
    Login.jsp
    <%@ page language="Java" errorPage="/jsp/AbcJspError.jsp" import="java.util.Vector,com.abc.internet.common.util.UtilFunctions,com.abc.internet.welcome.form.LoginForm,com.abc.internet.common.util.*"%>
    <%@ taglib uri="AbcTagLib" prefix="abc" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <HTML>
    <HEAD>
         <TITLE>LOGIN SCREEN</TITLE>
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </HEAD>
    <BODY class="imgSpacerTan" onUnload="javascript:funcCloseErrorWindow();">
    <html:form action="/struts/Login" name="LoginForm" type="com.abc.internet.welcome.form.LoginForm"
    onsubmit="onLogin()">
         <table align="center" cellpadding=0 cellspacing=0 border=0 class="imgSpacerTan">
              <tr>
                   <td align="left">
                        <img border="0" src="../images/logo.gif">
                   </td>
              </tr>
         </table>
         <table align="center" cellpadding=0 cellspacing=0 border=0 class="imgSpacerTan">
              <tr> <td ALIGN="center" class="header" height=30px><font class="fontBlue" >Welcome
    to the</font></td></tr>
              <tr> <td ALIGN="center" class="header" height=30px><font class="fontBlue" >ABC
    System</font></td></tr>
              <tr> <td ALIGN="center" class="header" height=20>  </td></tr>
         </table>
         <table cellpadding=0 cellspacing=0 border=5 bordercolor="#293163" class="deadlineHistoryTablebgcolor"
    align="center">
              <tr class="deadlineHistoryTablebgcolor">
                   <td class="deadlineHistoryTablebgcolor">
                        <table cellpadding=10 cellspacing=10 border=0 width="400" class="deadlineHistoryTablebgcolor"
    align="center">
                             <tr>
                                  <td>
                                       <script language="javascript">
                                            if(navigator.appName.indexOf("Netscape") != -1)
                                                      document.write('<table cellpadding=0 cellspacing=0 border=1 width="400"
    bordercolor="#293163" class="deadlineHistoryTablebgcolor" align="center">');
                                            else
                                                      document.write('<table cellpadding=0 cellspacing=0 border=1 width="400"
    bordercolorlight="#293163" class="deadlineHistoryTablebgcolor" align="center">');
                                       </script>
                                            <tr>
                                                 <td>
                                                      <table cellpadding=7 cellspacing=7 border=0 width="400" bordercolor="#293163"
    class="deadlineHistoryTablebgcolor" align="center">
                                                           <tr>
                                                                <td>
                                                                     <font class="fontBlue">   USER ID       &nbsp:  </font><input
    type="text" name="iv-user">
                                                                </td>
                                                           </tr>
                                                      </table>
                                                 </td>
                                            </tr>
                                       </table>     
                                  </td>
                             </tr>
                             <tr>
                                  <td>
                                       <table cellpadding=0 cellspacing=0 border=1 width="400" class="borderBlue"
    class="deadlineHistoryTablebgcolor" align="center">
                                            <tr>
                                                 <td>
                                                      <table cellpadding=7 cellspacing=7 border=0 width="400" class="borderBlue"
    class="deadlineHistoryTablebgcolor" align="center">
                                                           <tr>
                                                                <td align="center" ><input type="submit" value="Submit" onclick="return
    (onLogin())" ></td>
                                                           </tr>
                                                      </table>
                                                 </td>
                                            </tr>
                                       </table>
                                  </td>
                             </tr>
                        </table>
                   </td>
              </tr>
         </table>
    </html:form>     
    </body>
    </html>
    Thanks

    I am using Taglib in JSP file .
    I am calling the AbcTagLib from my jsp Login.jsp file.
    The entries for the taglib is there in web.xml file.
    Please see the attachments.
    I am getting the following errors while running my JSP file:
    Parsing of JSP File '/jsp/Login.jsp' failed:
    /jsp/Login.jsp: Could not parse deployment descriptor: org.xml.sax.SAXParseException:
    Could not parse: taglib starting at line 1
    probably occurred due to an error in /jsp/Login.jsp:
    <%@ taglib uri="AbcTagLib" prefix="abc" %>
    Please look in to it and suggest some solution.
    The files are :
    AbcTagLib.tld
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc. //DTD JSP Tag Library 1.1//EN"
    "web-jsptaglib_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>TagLib</shortname>
         <tag>
         <name>label</name>
         <tagclass>com.abc.internet.common.taglib.LiteralTag</tagclass>
         <bodycontent>empty</bodycontent>
         <info>This is a simple tag for ABC</info>
              <attribute>
                   <name>name</name>
                   <required>false</required>
                   <rtexpvalue>false</rtexpvalue>
              </attribute>
         </tag>
         <tag>
         <name>linkAccess</name>
         <tagclass>com.abc.internet.common.taglib.LinkAccessTag</tagclass>
         <bodycontent>JSP</bodycontent>
         <info>this is the tag class for showing the button</info>
         <attribute>
         <name>linkId</name>
         <required>true</required>
         <rtexpvalue>false</rtexpvalue>
         </attribute>
         <attribute>
         <name>flag</name>
         <required>true</required>
         <rtexpvalue>false</rtexpvalue>
         </attribute>
         </tag>
    </taglib>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN'
    'file:///D:/bea/wlserver6.0sp1/web-app_2_2.dtd'>
    <web-app>
    <taglib>
    <taglib-uri>AbcTagLib</taglib-uri>
    <taglib-location>/WEB-INF/AmsTagLib.tld</taglib-location>
    </taglib>
    </web-app>
    Login.jsp
    <%@ page language="Java" errorPage="/jsp/AbcJspError.jsp" import="java.util.Vector,com.abc.internet.common.util.UtilFunctions,com.abc.internet.welcome.form.LoginForm,com.abc.internet.common.util.*"%>
    <%@ taglib uri="AbcTagLib" prefix="abc" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <HTML>
    <HEAD>
         <TITLE>LOGIN SCREEN</TITLE>
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </HEAD>
    <BODY class="imgSpacerTan" onUnload="javascript:funcCloseErrorWindow();">
    <html:form action="/struts/Login" name="LoginForm" type="com.abc.internet.welcome.form.LoginForm"
    onsubmit="onLogin()">
         <table align="center" cellpadding=0 cellspacing=0 border=0 class="imgSpacerTan">
              <tr>
                   <td align="left">
                        <img border="0" src="../images/logo.gif">
                   </td>
              </tr>
         </table>
         <table align="center" cellpadding=0 cellspacing=0 border=0 class="imgSpacerTan">
              <tr> <td ALIGN="center" class="header" height=30px><font class="fontBlue" >Welcome
    to the</font></td></tr>
              <tr> <td ALIGN="center" class="header" height=30px><font class="fontBlue" >ABC
    System</font></td></tr>
              <tr> <td ALIGN="center" class="header" height=20>  </td></tr>
         </table>
         <table cellpadding=0 cellspacing=0 border=5 bordercolor="#293163" class="deadlineHistoryTablebgcolor"
    align="center">
              <tr class="deadlineHistoryTablebgcolor">
                   <td class="deadlineHistoryTablebgcolor">
                        <table cellpadding=10 cellspacing=10 border=0 width="400" class="deadlineHistoryTablebgcolor"
    align="center">
                             <tr>
                                  <td>
                                       <script language="javascript">
                                            if(navigator.appName.indexOf("Netscape") != -1)
                                                      document.write('<table cellpadding=0 cellspacing=0 border=1 width="400"
    bordercolor="#293163" class="deadlineHistoryTablebgcolor" align="center">');
                                            else
                                                      document.write('<table cellpadding=0 cellspacing=0 border=1 width="400"
    bordercolorlight="#293163" class="deadlineHistoryTablebgcolor" align="center">');
                                       </script>
                                            <tr>
                                                 <td>
                                                      <table cellpadding=7 cellspacing=7 border=0 width="400" bordercolor="#293163"
    class="deadlineHistoryTablebgcolor" align="center">
                                                           <tr>
                                                                <td>
                                                                     <font class="fontBlue">   USER ID       &nbsp:  </font><input
    type="text" name="iv-user">
                                                                </td>
                                                           </tr>
                                                      </table>
                                                 </td>
                                            </tr>
                                       </table>     
                                  </td>
                             </tr>
                             <tr>
                                  <td>
                                       <table cellpadding=0 cellspacing=0 border=1 width="400" class="borderBlue"
    class="deadlineHistoryTablebgcolor" align="center">
                                            <tr>
                                                 <td>
                                                      <table cellpadding=7 cellspacing=7 border=0 width="400" class="borderBlue"
    class="deadlineHistoryTablebgcolor" align="center">
                                                           <tr>
                                                                <td align="center" ><input type="submit" value="Submit" onclick="return
    (onLogin())" ></td>
                                                           </tr>
                                                      </table>
                                                 </td>
                                            </tr>
                                       </table>
                                  </td>
                             </tr>
                        </table>
                   </td>
              </tr>
         </table>
    </html:form>     
    </body>
    </html>
    Thanks

  • Could not parse xml on Weblogic!

    Hello
    My ear file have aldready deployed successfull on Oracle Appllication Server. And now I try deploy on weblogic but I reiceive the error could not parse xml file. I think It may be the problem with security in weblogic.
    # java.lang.NullPointerException
    # at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
    # at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
    # at org.apache.commons.digester.Digester.endElement(Digester.java:1225)
    # at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
    # at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
    # at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809)
    # at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
    # at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    # at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    # at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:153)
    # at org.apache.commons.digester.Digester.parse(Digester.java:1785)
    # at com.toranto.cmsserver.util.TorantorevisorUtil.createOrganizationOrgEntityIdXml(TorantorevisorUtil.java:3636)
    # at jsp_servlet.__test._jspService(__test.java:119)
    If any one have the same error on weblogic, please help me.
    Thanks in advance.

    Because this ear is ok in oracle apllication server.
    the code here:
    Digester digester = DigesterLoader.createDigester(rulesURL);
    Object rootElement = null;
    InputStream is = null;
    try {
    is = initURL.openStream();
    //3. parse initialization file
    try {
    rootElement = digester.parse(is);
    } catch (SAXException e) {
    String msg = "Digester parse error! Message: " + e.getMessage();
    log.error(msg, e);
    throw e;
    The error cause by rootElement = digester.parse(is);
    So I think in weblogic not accept common-digester.jar to parse xml
    Do you have any idea for this problem.
    Thanks in advance.
    Tang Chow

  • Windows could not parse or process unattend answer file (c:windows\panther\unattend.xml). Error message during setup.

    I'm having an issue, with Windows 8.1 sysprep WIM, when applying the image and don't know what to do.
    I am using the Windows 8.1 WADK/Windows Kits for Windows 8.1. Using the Image Manager for creating my answer file, using deployment/imaging tool for creating and editing my images, and using the same Windows 8.1 DVD media for my catalog as in my WIM. No MDT
    involvement.
    Using WinPE to clean and partition my disk and to apply the image.
    I have done the best research I'm able to do at the moment and for this issue it all comes back to removing/editing the "IEWelcomeMsg" line.
    I have left at false and removed the line as all have mentioned, however I'm still getting the error "windows setup: windows could not parse or process unattend answer file (c:windows\panther\unattend.xml). A component or setting specified in the answer
    file does not exist".
    Is there something I missed? From what I can tell for now, nope.
    Any help to enlighten what might have been over looked would be beneficial.

    Hi JFrederick,
    Please try what Tripredacus suggested first.
    For the error message, we have a similar thread for reference:
    Windows
    Could Not parse or process unattend answer file for pass [specialize]
    The cause might be different, you may refer to the others who offered suggestions in the above thread.
    Regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Could not parse XMBMessage due to invalid content type for SOAP: TEXT/HTML

    Hi all,
       I am working on a SOAP scenario,
    the soap body is as follows
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
              <m:MT_test xmlns:m="http://titan.co.in/test">
                   <name>String</name>
                   <age>String</age>
              </m:MT_test>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    when i tried to request it using XML spy, following error i am getting ,
    <?xml version="1.0"?>
    <!-- see the documentation -->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>Server Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>ADAPTER.JAVA_EXCEPTION</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to invalid content type for SOAP: TEXT/HTML
         at com.sap.aii.af.ra.ms.impl.core.queue.consumer.CallConsumer.onMessage(CallConsumer.java:158)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:916)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
              ]]></text>
                        </s:SystemError>
                   </detail>
              </SOAP:Fault>
         </SOAP:Body>
    </SOAP:Envelope>
    the  request is coming to xi, when i am monitoring the communication channel in RWB,
    i am getting message, "request received, error occured"
    this is anew xi server, is ther any configuration need to do.
    Please help me.
    Regards
    Pradeep P N

    I'm getting the same error. Please tell me how do i resolve this?
    request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap2soap">
       <soapenv:Header/>
       <soapenv:Body>
          <soap:mt_soapreqsender>
             <years>?</years>
             <interest>?</interest>
             <loan>?</loan>
             <tax>?</tax>
             <insurance>?</insurance>
          </soap:mt_soapreqsender>
       </soapenv:Body>
    </soapenv:Envelope>
    response:
    <!see the documentation>
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>DeliveryException</code>
                   <text>com.sap.aii.af.ra.ms.api.DeliveryException: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to invalid content type for SOAP: APPLICATION/OCTET-STREAM
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:144)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:831)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)</text>
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>

  • Could not parse mapping document form resource

    What is meaning of this error
    Could not parse mapping document from resource user.hbm.xml
    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" java.lang.NullPointerException
         at UserClient.main(UserClient.java:39)

    I also faced same problem when i wrote my first hibernate mapping file, this error will accur because of bad xml parser design, the parser developer did not even validate and remove blank lines from xml before parsing it, becuse of that if there is first blank line in your xml mapping file then we will get "The processing instruction target matching "[xX][mM][lL]" is not allowed" error.
    Solution: Just check is there any blank line at the begining of your hibernate mapping file if so remove that then it will works fine.

  • Getting "Windows could not parse or process the unattend answer file for pass [specialize]" with IE10 integration? Read this...

    Hey guys,
    I just discovered an issue with using MDT to integrate Internet Explorer 10 into Windows 7 & 2008 R2 image files. Building the images was no problem at all, but when I tried to deploy them it would bomb with this error every time:
    "Windows could not parse or process the unattend answer file for pass [specialize]."
    So a very annoying and cryptic error to say the least. Obviously the issue was with the unattend.xml file that gets auto-generated by MDT, but all the items under "specialize" had worked just fine when I built the image and the IE version
    was the only item that had changed. After comparing the Windows 7 & Server 2008 R2 unattend.xml files to my Windows 8 & Server 2012 unattend.xml files (because they have IE 10 native) I discovered that the following flag was missing
    from the Windows 8 & Server 2012 unattend.xml files:
    <IEWelcomeMsg>false</IEWelcomeMsg>
    So I simply commented it out like so:
    Re-ran my test deployment and viola, 100% successful with zero errors. I was a little embarrassed/annoyed that this took me so long to track down, then I realized others might be struggling with this too so thought I'd share.
    Hope my time spent saves someone else some grief!

    I know the last reply was from a couple weeks ago, but honestly, I haven't been able to find anything else in the last week of searching Google. I'm new to the MDT process but I'm having the same issue with what you posted. I can shift-F10 during the "Applying
    system settings" and open my unattend.xml file and remove the IEWelcomeMsg line and the image deploys perfectly, so I know that's my problem. I can't figure out where that line is coming from. I have edited every unattend.xml file in the Templates folder under
    MDT and also the one in my deployment task sequence, but somewhere during that deployment, that one setting gets added back to the unattend file and nukes the whole image. I'm about to pull my hair out. I'm implementing MDT to save time but I feel like the
    last couple of weeks trying to get it to work have been a waste. I have thought about backing my reference image back to IE9, but having to deploy IE10 post image seems like it's an unnecessary burden. Any help would be appreciated.
    ~Adam

  • Ldmp2v prepare :could not parse manifest

    Source OS: solaris 8  (sunfire v125)
    as the required, patchadd 109318-39
    "ldmp2v collect -d /export/yy -a flash yy" generates "manifest"and "yy.flar",copy the two file to the target machine.
    then on the target machine "ldmp2v prepare -d /root/yy yy"
    faults: could not parse manifest /root/yy/manifest !
    why? or How can I find some help information ?
    thank!

    Hmm, SUNWldmp2v is independent of SUNWldm so installing the rest of the 1.3 software probably won't make a difference.
    Can you mail me the failing manifest (put @sun.com at the end of my username).
    As for upgrading to LDoms 1.3, it should have no impact on your existing configs (but be sure to do backups
    in case - see http://docs.sun.com/app/docs/doc/821-0406/upgradeldomssystem?a=view)
    You could upgrade SUNWldm now without rebooting and apply the firmware and S10 patches the
    next time you have to powercycle the machine.

  • Could not parse manifest

    I am trying to P2V a physical machine running Solaris 10, the collect phase works, the prepare phase on the target gives Could not parse manifest error, has anybody got a solution to this?

    Hmm, SUNWldmp2v is independent of SUNWldm so installing the rest of the 1.3 software probably won't make a difference.
    Can you mail me the failing manifest (put @sun.com at the end of my username).
    As for upgrading to LDoms 1.3, it should have no impact on your existing configs (but be sure to do backups
    in case - see http://docs.sun.com/app/docs/doc/821-0406/upgradeldomssystem?a=view)
    You could upgrade SUNWldm now without rebooting and apply the firmware and S10 patches the
    next time you have to powercycle the machine.

  • Could not parse mapping document from resource

    HI All,
    I'm using hibernate3.2.2 I wrote the following code to contact the database but the system tells the error on it. My code is
    Dealer.java:
    package com.mapping;
    public class Dealer {
         private int id;
         private String name;
         private int did;
         public int getDid() {
              return did;
         public void setDid(int did) {
              this.did = did;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    Product.java
    ------------------package com.mapping;
    public class Product {
         private int id;
         private int did;
         private String name;
         private double price;
         public int getDid() {
              return did;
         public void setDid(int did) {
              this.did = did;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public double getPrice() {
              return price;
         public void setPrice(double price) {
              this.price = price;
    JoinExample.java
    package com.mapping;
    import java.util.Iterator;
    import org.hibernate.Query;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.cfg.Configuration;
    import com.HibernateSessionFactory;
    public class JoinExample {
         public static void main(String args[]){
              Session session=null;
              try{
                   session = HibernateSessionFactory.getInstance().getCurrentSession();
                   session.beginTransaction();
                   String sql_query = "from Product p inner join p.dealer as d";
                        Query query = session.createQuery(sql_query);
                        Iterator ite = query.list().iterator();
                        System.out.println("Dealer Name\t"+"Product Name\t"+"Price");
                        while ( ite.hasNext() ) {
                        Object[] pair = (Object[]) ite.next();
                        Product pro = (Product) pair[0];
                        Dealer dea = (Dealer) pair[1];
                        System.out.print(pro.getName());
                        System.out.print("\t"+dea.getName());
                        System.out.print("\t\t"+pro.getPrice());
                        System.out.println();
                        session.close();
              }catch(Exception e){
                   e.printStackTrace();
    Dealer.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
    "http://hibernate.sourceforge.net/
    hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="com.mapping.Dealer" table="dealer">
    <id name="id" type="java.lang.Integer" column="id">
    <generator class="increment"/>
    </id>
    <property name="name" type="java.lang.String" column="name"/>
    <property name="did" type="java.lang.Integer" column="did"/>
    <bag name="product" inverse="true" cascade="all,delete-orphan">
              <key column="did"/>
    <one-to-many class="com.mapping.Product"/>
    </bag>
    </class>
    </hibernate-mapping>
    Product.xml
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-mapping
    PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
    "http://hibernate.sourceforge.net/
    hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="com.mapping.Product" table="product">
    <id name="id" type="java.lang.Integer" column="id">
    <generator class="increment"/>
    </id>
    <property name="name" type="java.lang.String" column="name"/>
    <property name="did" type="java.lang.Integer" column="did"/>
    <property name="price" type="java.lang.Double" column="price"/>
    <many-to-one name="dealer" class="com.mapping.Dealer" column="did" insert="false" update="false"/>
    </class>
    </hibernate-mapping>
    hibernate.cfg.xml
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory>
    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="hibernate.connection.url">jdbc:mysql://localhost/hibernate</property>
    <property name="hibernate.connection.username">root</property>
    <property name="hibernate.connection.password"></property>
    <property name="hibernate.connection.pool_size">10</property>
    <property name="show_sql">true</property>
    <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
    <property name="hibernate.hbm2ddl.auto">update</property>
    <!-- Mapping files -->
    <mapping resource="com/mapping/Dealer.hbm.xml"/>
    <mapping resource="com/mapping/Product.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>
    it throws the following example:
    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.
    %%%% Error Creating HibernateSessionFactory %%%%
    org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mapping/Dealer.hbm.xml
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:575)
         at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
         at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
         at com.HibernateSessionFactory.initSessionFactory(HibernateSessionFactory.java:39)
         at com.HibernateSessionFactory.getInstance(HibernateSessionFactory.java:23)
         at com.mapping.JoinExample.main(JoinExample.java:19)
    Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
         at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:514)
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
         ... 8 more
    Caused by: org.dom4j.DocumentException: hibernate.sourceforge.net Nested exception: hibernate.sourceforge.net
         at org.dom4j.io.SAXReader.read(SAXReader.java:484)
         at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:505)
         ... 9 more
    org.hibernate.HibernateException: Could not initialize the Hibernate configuration
         at com.HibernateSessionFactory.initSessionFactory(HibernateSessionFactory.java:56)
         at com.HibernateSessionFactory.getInstance(HibernateSessionFactory.java:23)
         at com.mapping.JoinExample.main(JoinExample.java:19)
    regards,
    Maheshwaran Devaraj

    I also faced same problem when i wrote my first hibernate mapping file, this error will accur because of bad xml parser design, the parser developer did not even validate and remove blank lines from xml before parsing it, becuse of that if there is first blank line in your xml mapping file then we will get "The processing instruction target matching "[xX][mM][lL]" is not allowed" error.
    Solution: Just check is there any blank line at the begining of your hibernate mapping file if so remove that then it will works fine.

Maybe you are looking for

  • Air has sound but no picture

    I have a new iMac and apple tv. When trying to use airplay to mirror video using safari on my iMac to apple tv, alI get is sound but no picture. Can I get the picture??

  • Same document Number in different Co. codes ?

    Hi SAP gurus, Can we maintain same doc no. in different co. codes?

  • Easy ? for an Easy helpful response

    New to Photoshop and want to add text to a photo. I want to create a text box that has a masked background( I think it is?) Where the text is laid on a (color of choice) in the text box. Then then the Text is typed on that masked portion on the pic..

  • File Permissions randomly changing

    We have a small network with 3 machines connecting to our mac mini (snow leopard) server to access work stored on on it. We have a problem when any one of the machines saves work to the server it rewrites the permissions to be read only and non of th

  • 10.4.9 to 10.5.4 - should I update to 10.4.11 first?

    I'm running great on 10.4.9 and just ordered 10.5.4 and just wondered if the upgrade would go smoother if I updated to 10.4.11 first. If for some reason 10.5.4 doesn't run well, would it make more sense to do an archive and install or copy back my Su