Load sp1Metadata.xml from liberty sso sample failed

Hello
I have federation manager installed on sun web server. When i try to load sp1Metadata.xml from liberty sso samples, i receive an error:
/opt/identity/fm/bin/amadmin -i /opt/identity/fm/web-src-staging/ -u amadmin -w 11111111 -t /opt/identity/fm/web-src-staging/web-src/samples/liberty/sso/sp1MetaData.xml
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/serialize/DOMSerializer
at com.sun.identity.federation.alliance.FSAllianceManager.<init>(FSAllianceManager.java:155)
at com.iplanet.am.admin.cli.FedServicesRequestHandler.<init>(FedServicesRequestHandler.java:114)
at com.iplanet.am.admin.cli.AdminXMLParser.createFederationAuthenticationDomain(AdminXMLParser.java:1673)
at com.iplanet.am.admin.cli.AdminXMLParser.doOrganizationRequests(AdminXMLParser.java:635)
at com.iplanet.am.admin.cli.AdminXMLParser.processAdminReqs(AdminXMLParser.java:421)
at com.iplanet.am.admin.cli.Main.processDataRequests(Main.java:1033)
at com.iplanet.am.admin.cli.Main.processDataRequests(Main.java:824)
at com.iplanet.am.admin.cli.Main.runCommand(Main.java:704)
at com.iplanet.am.admin.cli.Main.main(Main.java:1083)
Have you any ideas?
Best regards,
Roman

Are you running your FM in HTTPS mode ? If yes then load the Root CA Certs or Server Certificates (in case of Self signed certs) in /usr/java/jre/lib/security/cacerts file using keytool.
Note: I am assuming your Java path is /usr/java. If it is different then load the certs in that JVM cacerts file.
Vivek

Similar Messages

  • Unable to load any XML from JAR - Please help!!

    Hi All,
    I am a student in the final days of my degree. I have been working on my final project for some time now, an applet which converts input text to a signal plot for line encoding schemes - AMI, NRZ etc. It is pretty much finished, but one small bug threatens to scuttle the entire project! I have been searching the web all day long for answers with little success, and as the castor forum still appears to be down I am posting here. Any suggestions or advice would be greatly appreciated.
    The applet uses the castor databinding framework to load various XML data. I am using Eclipse 3.01 for development - when the program is run locally as an applet, everything works fine. When the program is bundled into a JAR file and nested into a clean folder with a html page and the jar file, when the command to read in XML is given, a NullPointerException occurs, indicating that castor was unable to access the XML files.
    Below is one of the methods used to make castor load XML data:
         public CodeSet loadCodeXML(String _codesetFilename)
              String _mappingURI = "schema/codes/codesets-mapping.xml";
              String _codesetURI = "schema/codes/" + _codesetFilename;
                    // Create a new Castor mapping object
              Mapping mapping = new Mapping();                         
            try                                                                 // Attempt to load in the selected XML character set
                 mapping.loadMapping(_mappingURI);                    // Initialize 'mapping' with the map file
                Unmarshaller unmar = new Unmarshaller(mapping); // Create a new XML Unmarshaller that uses 'mapping'
                // The line below creates a new CharSet object called _codeset and populates it with the XML data
                CodeSet _codeset = (CodeSet)unmar.unmarshal(new InputSource(new FileReader(_codesetURI)));
                // The character set was successfully loaded, so pass new CharSet object back to caller and end
                return _codeset;
            } catch (Exception e) {
                 // If an error occurs while extracting the XML data, this block will execute:
                JOptionPane.showMessageDialog(null, e);               // Display a message dialog containing the exception error
                return null;                                             // Do not return a CharSet object to caller
         }It would seem to me the problem lies within
              String _mappingURI = "schema/codes/codesets-mapping.xml";
              String _codesetURI = "schema/codes/" + _codesetFilename;I have read that files inside a JAR can be accessed in this way ( http://archive.codehaus.org/castor/user/msg00025.html ) but it won't appear to work.
    If these are set to a full system path (outside any JAR) i.e. "/home/me/proj/schema/codes/codesets-mapping.xml", the application operates fine. Clearly this is no good however, as the XML data must reside within the JAR package. I have tried many permutations such as "jar://schema/..." , "/schema/..", "schema/..", with no success. I have read of using InputStream and getResource methods to access files within the jar but have had no success. I have checked the schema dir is being put into the JAR archive.
    Could anyone suggest an appropriate way of loading XML files from within a JAR file in this context?
    Thanks in advance for any replies.

    Hi, me again..
    Re: mr_doghead - the filename of the file is passed from the calling function
    public CodeSet loadCodeXML(String _codesetFilename)eg loadCodeXML(ami.xml) will return a CodeSet object containing the ami xml data
    Anyway, I've manged to fix it up. The problem actually lies within castor, not my code at all. This is a known bug in castor that the dev's deemed 'not important' to fix, but I have to say the work around is EXTREMLY poorly documented online. Hence, this post is just to say how to fix it up if ne1 else is having trouble...
    To load mappings, use:
    mapping.loadMapping(getClass().getResource(_mappingURI).toString());where _mappingURI is a string such as "/xml/mapfile.xml"
    However, the unmarshalling method takes in a file object, so getResourceAsStream must be used:
    CharSet _charset = (CharSet)unmar.unmarshal(new InputSource(getClass().getResourceAsStream(_charsetURI)));Where CharSet is your custom object you are marshalling into, and _charsetURI is a relative path to your xml file.
    Ugly as hell? Very.
    Does it work? Perfectly.
    take it ez guys, time for me to go hand this sht in! ;D

  • Loading local xml from iPhone

    Hi,
    I would like an xml settings file that is packed with my application by the packager. Does anyone know which path I should use to do this? I tried the relative path (filename only), and a couple of 'standard' locations from the AIR File class.
    http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html
    private var file1:File = File.applicationDirectory.resolvePath("test.xml");
    private var file2:File = File.applicationStorageDirectory.resolvePath("test.xml");
    private var file3:File = File.documentsDirectory.resolvePath("test.xml");
    private var file4:File = File.desktopDirectory.resolvePath("test.xml");
    private var file5:File = File.userDirectory.resolvePath("test.xml");
    As far as I know now none of these actually point at the right file in my application package.
    Does anyone know how to do this? If I know the correct path, I would like to load it using  the URLLoader class.
    cheers, Bart

    var file1:File = File.applicationDirectory.resolvePath("test.xml");
    Worked for me actually. What I did was in iPhone Settings on the file menu I included my xml file, in your case test.xml, and then I deployed. The applicationDirectory is the directory where the ipa is generated so your xml file should reside there before you publish. After that I loaded my xml with the xml loader using the URLLoaded class. I passed in the File.url parameter like so:
    var xml_loader:URLLoader = new URLLoader(new URLRequest(file.url));
    Hope this helps,
    James

  • How to load the xml from swf

    Hi,
    I have one intro.swf from that am loading one interface.swf by using loader.In interface i am loading some of the swf and xml am getting the swf but the xml files are not loading.When i run from interface file it is loading fine. only when i load the intro file the xml files are not loading. can any one tell me what is the problem how to access the xml content.
    This is the code am using in interface.swf to to get the xmlpath
    MovieClip(root).param1 = xmlPath;
    to access the xml content i have written the code
    var xmlPath:String=MovieClip(stage.getChildAt(0)).param1;
    I am using one moviclip in interface to load the other swf and xml. I am not using any moviclip in intro file to load the interface swf for that i am using only the loader.

    Where are the files located relative to each other?  If the intro and interface are in different folders then the problem could be that you need to adjust the path the interface uses for targeting the files it loads.

  • Exception caught while loading events.xml: Accès refusé.

    I receive this message "Exception caught while loading
    events.xml: Accès refusé (access denied)" when i try to
    launch a file including a "Spry.Data.XMLDataSet", even with the
    last sample files of Adobe Labs (ex : b_06_spry_widgets.html in
    "vid0167" folder).
    I saw there was 0 reply to the same kind of topic in the
    forum.
    Is there a truly solution ?
    Best regards
    Philippe

    Hello Yveline,
    The problem appears because you try to load an XML from a
    different server than the server of your HTML origin. This is one
    of the browser's JavaScript security model. You'll have to put the
    XML file to be used by the Spry XML DataSet on the server as the
    HTML file.
    The only solution that allow you to call a file from a
    different server is to create an XML proxy on your server so the JS
    to be allowed to make the server call. The proxy gateway either
    written in a server side scripting like CF, PHP or ASP or using a
    dedicated proxy server application will get the file from the
    external server and will make it appear to the browser as living on
    your server.
    Cristian

  • Check if Load Multiple XML file Complete. How ?!

    Hello,
    I want to create loading screen and i want to check if all my XML file ( class10.xml, class11a.xml & class11s.xml ) finish loading go to frame 2. How can i do that ?!
    Regards,

    No there are no core class doing that but it's quite easy to do it sequentially or to create a simple class that does that. That could go something like that:
    1. pass an array of paths to your custom loader class:
    var loader:MultipleLoader = new MultipleLoader(["path1.xml", "path2.xml"])
    loader.addEventListener(Event.COMPLETE, moveOn);
    loader.load();
    Then in your MultipleLoader class you can do:
    public function load():void
         loadNextXML();
    private function loadNextXML(e:Event = null):void
         if(!myxmlarray.length)
              dispatchEvent(e);
              return;
         var path:String = myxmlarray.shift();
         //code to load each xml from the array that was passed and stored in myxmlarray Array
         //you register Event.COMPLETE with loadNextXML method so you can cycle until the array is empty

  • Read XML from remote server

    Not sure if this is even possible.
    I am using APEX on a INTERNAL server, on the same network is another server hosting files.
    Using PL/SQL code, I need to read the XML file.
    So APEX/ORACLE is at http:\\server1\apex\f?p........
    And the files are at \\server2\xml\file.xml
    Can I load the xml from server2 using pl/sql in server1?
    The XML is generated automatically from another system and can not be stored on the APEX server. It does not need to go into the database, just read, parced, and displayed.

    Hi,
    Using PL/SQL code, I need to read the XML file. You can create a directory object pointing to the location on server2 :
    CREATE DIRECTORY xml_dir AS '\\server2\xml';then you can access the XML content like this :
    DECLARE
    v_xml_doc xmltype;
    BEGIN
    v_xml_doc := xmltype(bfilename('XML_DIR', 'file.xml'), nls_charset_id('CHAR_CS'));
    -- XML processing here...
    END;
    /

  • Failed to load XML from the package file "" due to error 0xC00CE556 "Invalid at the top level of the document.Line.

    Using Installation wizard to deploy SSIS packages from DEV server to QA server package store cause this error;
    Failed to load XML from the package file "" due to error 0xC00CE556 "Invalid at the top level of the document. Line 773, Column 93". This happens when loading a package and the file cannot be opened or loaded correctly into XML document.  This can be the
    result of either providing an incorrect file name to the LoadPackage method or the XML file specified having an incorrect format.  Please who have the idea of how this issue can be resolved?BI Developer

    Hi ,
       for this Error one and only one solution 
    go to view Code, line number and Column number shown in error message,
    and Remove code from there till last and save it,  it happens when we are moving Package from one server to another server. and VS adds some lines of code at the bottom of package
    something like this 
    andles="1" allownudging="1" isannotation="0" dontautolayout="0" groupcollapsed="0" tabstop="1" visible="1" snaptogrid="0"&gt;
        &lt;control&gt;
          &lt;ddsxmlobjectstreaminitwrapper binary="00080000921400008c040000" /&gt;
        &lt;/control&gt;
        &lt;layoutobject&gt;
          &lt;ddsxmlobj&gt;
            &lt;property name="LogicalObject" value="{BBFB0E
    Remove this code and save package it will work.  
    hope this will help to Developers who are searching for same ......... :) 

  • Load of XML datstore fails after change of PK in from numeric to varchar

    I am facing the following problem.
    I am trying to load an XML datastore (target) from an Oracle table (source) via an interface.
    The primary key in the Oracle table is of data type varchar. However, the primary key in the XML datastore after reverse engineering is created as datatype numeric. When I change the data type of the XML data store PK from numeric to varchar and then execute the interface the load fails with error:
    Wrong data type for input string.
    Taking the geo_dim.xml in the ODI demo folder as an example I take the following steps:
    - I reverse engineered the geo_dim XML that creates amongst other things the Country datastore in the XML model
    - When reverse engineering, ODI adds surrogate PK keys to the XML datastore. These are of data type numeric.
    - I change this surrogate PK key to data type varchar via the ODI designer and load the XML via an Interface from an Oracle source table that has a PK of type varchar.
    - The load of the XML datastore fails with the error "Wrong data type for input string."
    Looks like a bug to me. Any ideas?
    Thanks
    uli

    I figured this one out myself. As part of the JDBC URL you can submit a parameter ni. If set to false this will generate FKs and PKs as varchar.
    It's in the documentation:
    numeric_id or ni
    No
    boolean (true | false)
    true
    If set to true, all internal Primary and Foreign Keys are of NUMERIC type. Otherwise, they are of the VARCHAR type.

  • Loading an xml file from jws : a nightmare !

    Hi all:
    I'm trying to load a xml file packed inside a jar file, and when i call getresource it keeps always returning null !!!
    When i run the application (not in JWS) the file is loaded, but when i run it from a jnlp file with jws no !!
    I tried all possible solutions wihout success :(
    the last portion of code i used is :
    ClassLoader cl = this.getClass().getClassLoader();
         URL xmlFile=cl.getResource("configure.xml"); why is it working when run from Eclipse but fails when using jws ?
    I packed all my .class files together with xml file in one jar.
    please help me ! this stuff is driving me crazy :(
    thanks.

    Hi phasse !
    Yes I've fortenatly managed to solve my problem .here is the desription:
    Actually my problem was not with loading the xml file but in reading it .
    my problem was in the statement builder.parse(xmlFile.getPath()); this will not work with jws .I replaced this with : Document document = null;
              try {
                    ClassLoader cl = this.getClass().getClassLoader();
                   DocumentBuilderFactory factory = DocumentBuilderFactory
                             .newInstance();
                   DocumentBuilder builder = factory.newDocumentBuilder();
                      document=builder.parse(cl.getResourceAsStream("resources/configure.xml"));I would suggest to use ClassLoader and getResourceAsStream("xmlfile") method .
    I hope this would be helpfull for you .Good luck !

  • Weblogic Start script fails while Loading trusted certificates from jks

    Hi,
    I have a Weblogic Portal 10.3.2 installation on a Solaris Unix box. There is one Admin server and two Managed servers. I am trying to deploy an EJB based application on one of the Managed servers. Note that this application has been working fine in the Weblogic 9.2 environment.
    When the Managed Server is started, I get the below messages in the Weblogic console log. We have an internal SSO authentication system, which is integrated with this application. When this integration is removed, we are able to login to the application without any issues. When it is turned on, the redirection from SSO to the application fails - most likely because of the below SSL related errors.
    I have accessed the below link and accordingly set the property -Dweblogic.ssl.JSSEEnabled=true. But it didn't help.
    http://justasg.blogspot.com/2012/04/tlsssl-certificate-errors-and-warnings.html
    Please let me know if you have any suggestions.
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /data/applications/norkom/BEA103/wlserver_10.3/server/lib/DemoTrust.jks.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /opt/jdk1.6.0_32/jre/lib/security/cacerts.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 4, 2012 4:51:59 PM MEST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "DefaultSecure[1]". The address 127.0.0.1 might be incorrect or another process is using port 7022: java.net.BindException: Address already in use.>
    <Jun 4, 2012 4:51:59 PM MEST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "DefaultSecure". The address 10.228.12.24 might be incorrect or another process is using port 7022: java.net.BindException: Address already in use.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.228.12.24:7020 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7020 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <WebLogicServer> <BEA-000332> <Started WebLogic Managed Server "NCA_Server" for domain "norkom" running in Development Mode>
    <Jun 4, 2012 4:52:01 PM MEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Jun 4, 2012 4:52:01 PM MEST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <WSEE:27>Warning: JMS queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:287>
    <WSEE:27>Warning: JMS queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:287>
    <WSEE:27>Warning: JMS queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:287>
    <WSEE:27>Warning: JMS queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:287>
    <WSEE:27>Warning: JMS queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:287>
    <WSEE:27>Warning: JMS queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:287>
    Note: We have another Solaris Unix box, with the same installation of Weblogic with the same SSO redirection, but another EJB application is deployed. Also, there is no Managed and the application is deployed on the Admin server itself. But when the server is started, I don't see any attempts to load any certificates and also there are no issues.
    So either please suggest how this certificate loading can be rectified or suggest a way to disable the certificate loading (if at all its an option).
    Please let me know if you need any further details.

    Firstly,
    938767 wrote:
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /opt/jdk1.6.0_32/jre/lib/security/cacerts.>
    <Jun 4, 2012 4:51:59 PM MEST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>I don't think that this will be your problem... Unless you are actually using some of those certificates you can ignore those messages.
    But the following looks suspicious, I guess 7022 is your SSL port...
    <Jun 4, 2012 4:51:59 PM MEST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "DefaultSecure[1]". The address 127.0.0.1 might be incorrect or another process is using port 7022: java.net.BindException: Address already in use.>
    <Jun 4, 2012 4:51:59 PM MEST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "DefaultSecure". The address 10.228.12.24 might be incorrect or another process is using port 7022: java.net.BindException: Address already in use.>Hope that helps.
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question. If you think this answer is helpful, please consider giving points.

  • XML load and retrive from oracle.

    Hi
    I am able to validate and load the xml file to xmltype column of database table. how can i get the inforation of each node sepeately (row wise) from sql query.
    I tried following query but giving me error.
    <?xml version="1.0" encoding="utf-8" ?>
    <caieers>
         <caieers_header>
              <file_name>eers000252.xml</file_name>
              <business_unit>CAI Common Services</business_unit>
              <sson_id>255</sson_id>
              <date>2006-12-30</date>
         </caieers_header>
         <caieers_entitlements>
              <caieers_data>
                   <soeid>in12345</soeid>
                   <role_code>read_only</role_code>
                   <role_desc>Read-only access to reports</role_desc>
                   <as_of_date>2006-12-30</as_of_date>
              </caieers_data>
              <caieers_data>
                   <soeid>pp12345</soeid>
                   <role_code>Admin</role_code>
                   <as_of_date>2006-12-30</as_of_date>
              </caieers_data>
              <caieers_data>
                   <soeid>ns12345</soeid>
                   <role_code>read_write</role_code>
                   <role_desc>Can update data</role_desc>
                   <as_of_date>2006-12-30</as_of_date>
              </caieers_data>
         </caieers_entitlements>
    </caieers>
    SELECT p.XML_DOC.extractvalue('/caieers/caieers_header/file_name/text()').getstringval() as File_name,
    p.XML_DOC.extract('/caieers/caieers_header/business_unit/text()').getstringval() as Business_unit,
    p.XML_DOC.extract('/caieers/caieers_header/sson_id/text()').getstringval() as sson_id,
    p.XML_DOC.extract('/caieers/caieers_header/date/text()').getstringval() as Dateoffile,
    p.XML_DOC.extract('/caieers/caieers_entitlements/caieers_data//soeid/text()').getstringval() as soeid,
    p.XML_DOC.extract('caieers/caieers_entitlements/caieers_data//role_code/text()').getstringval() as role_code,
    p.XML_DOC.extract('caieers/caieers_entitlements/caieers_data//role_desc/text()').getstringval() as role_desc,
    p.XML_DOC.extract('caieers/caieers_entitlements/caieers_data//as_of_date/text()').getstringval() as asofdate
    FROM test p,
    table(xmlsequence(extract(value(mat),'/caieers/caieers_entitlements/caieers_data'))) ctb
    ERROR at line 10:
    ORA-00904: "MAT": invalid identifier
    Aslo if anybody help me to find best way to load this file in relational table (at present it was loaded as xmltype column)
    Thanks a lot
    Regards
    Raju

    Try this example
    I"ve modified the XML Schema to automatically create the table during schema registration.
    SQL>
    SQL>
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'http://www.w3.org/2001/XMLSchema/CAIEERS.xsd';
      3    :schemaPath := '/public/CAIEERS.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Call completed.
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<?xml version="1.0" encoding="utf-8"?>
      5  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
      6     <xsd:element name="caieers" type="caieers_type" xdb:defaultTable="caieers_tb"/>
      7     <xsd:complexType name="caieers_type">
      8             <xsd:sequence>
      9                     <xsd:element name="caieers_header" type="caieers_header_type"/>
    10                     <xsd:element name="caieers_entitlements" type="caieers_entitlements_type"/>
    11             </xsd:sequence>
    12     </xsd:complexType>
    13     <xsd:complexType name="caieers_entitlements_type">
    14             <xsd:sequence>
    15                     <xsd:element name="caieers_data" type="caieers_data_type" maxOccurs="unbounded"/>
    16             </xsd:sequence>
    17     </xsd:complexType>
    18     <xsd:complexType name="caieers_header_type">
    19             <xsd:sequence>
    20                     <xsd:element name="file_name" type="xsd:string"/>
    21                     <xsd:element name="business_unit" type="xsd:string"/>
    22                     <xsd:element name="sson_id" type="xsd:integer"/>
    23                     <xsd:element name="date" type="xsd:date"/>
    24             </xsd:sequence>
    25     </xsd:complexType>
    26     <xsd:complexType name="caieers_data_type">
    27             <xsd:sequence>
    28                     <xsd:element name="soeid" type="soeid_type"/>
    29                     <xsd:element name="role_code" type="role_code_type"/>
    30                     <xsd:element name="role_desc" type="role_desc_type" minOccurs="0"/>
    31                     <xsd:element name="as_of_date" type="xsd:date"/>
    32             </xsd:sequence>
    33     </xsd:complexType>
    34     <xsd:simpleType name="soeid_type">
    35             <xsd:restriction base="xsd:string">
    36                     <xsd:pattern value="[a-zA-Z]{2}\d{5}"/>
    37             </xsd:restriction>
    38     </xsd:simpleType>
    39     <xsd:simpleType name="role_code_type">
    40             <xsd:restriction base="xsd:string">
    41                     <xsd:maxLength value="30"/>
    42             </xsd:restriction>
    43     </xsd:simpleType>
    44     <xsd:simpleType name="role_desc_type">
    45             <xsd:restriction base="xsd:string">
    46                     <xsd:maxLength value="255"/>
    47             </xsd:restriction>
    48     </xsd:simpleType>
    49  </xsd:schema>
    50  ');
    51  begin
    52    if (dbms_xdb.existsResource(:schemaPath)) then
    53      dbms_xdb.deleteResource(:schemaPath);
    54    end if;
    55    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    56  end;
    57  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> declare
      2    xmldoc xmltype := xmltype(
      3  '<?xml version="1.0" encoding="utf-8"?>
      4  <caieers>
      5     <caieers_header>
      6             <file_name>eers000252.xml</file_name>
      7             <business_unit>CAI Common Services</business_unit>
      8             <sson_id>255</sson_id>
      9             <date>2006-12-30</date>
    10     </caieers_header>
    11     <caieers_entitlements>
    12             <caieers_data>
    13                     <soeid>in12345</soeid>
    14                     <role_code>read_only</role_code>
    15                     <role_desc>Read-only access to reports</role_desc>
    16                     <as_of_date>2006-12-30</as_of_date>
    17             </caieers_data>
    18             <caieers_data>
    19                     <soeid>pp12345</soeid>
    20                     <role_code>Admin</role_code>
    21                     <as_of_date>2006-12-30</as_of_date>
    22             </caieers_data>
    23             <caieers_data>
    24                     <soeid>ns12345</soeid>
    25                     <role_code>read_write</role_code>
    26                     <role_desc>Can update data</role_desc>
    27                     <as_of_date>2006-12-30</as_of_date>
    28             </caieers_data>
    29     </caieers_entitlements>
    30  </caieers>');
    31  begin
    32    xmldoc := xmldoc.createSchemaBasedXML(:schemaURL);
    33    insert into "caieers_tb" values ( xmldoc );
    34  end;
    35  /
    PL/SQL procedure successfully completed.
    SQL> set autotrace on explain pages 0 lines 150 long 1000
    SQL> --
    SQL> select extractValue(value(p),'/caieers/caieers_header/file_name') FileName,
      2         extractValue(value(p),'/caieers/caieers_header/business_unit') Business_unit,
      3         extractValue(value(p),'/caieers/caieers_header/sson_id')  sson_id,
      4         extractValue(value(p),'/caieers/caieers_header/date')  Dateoffile,
      5         extractValue(value(ctb),'/caieers_data/soeid') soeid,
      6         extractValue(value(ctb),'/caieers_data/role_code') role_code,
      7         extractValue(value(ctb),'/caieers_data/role_desc') role_desc,
      8         extractValue(value(ctb),'/caieers_data/as_of_date') as asofdate
      9    FROM "caieers_tb" p,
    10   table (xmlsequence(extract(value(p),'/caieers/caieers_entitlements/caieers_data'))) ctb
    11  /
    eers000252.xml
    CAI Common Services
           255 30-DEC-06
    in12345
    read_only
    Read-only access to reports
    30-DEC-06
    eers000252.xml
    CAI Common Services
           255 30-DEC-06
    pp12345
    Admin
    30-DEC-06
    eers000252.xml
    CAI Common Services
           255 30-DEC-06
    ns12345
    read_write
    Can update data
    30-DEC-06
    Execution Plan
    Plan hash value: 3549528997
    | Id  | Operation          | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |                    |     3 | 19983 |   805   (1)| 00:00:10 |
    |   1 |  NESTED LOOPS      |                    |     3 | 19983 |   805   (1)| 00:00:10 |
    |*  2 |   TABLE ACCESS FULL| caieers_tb         |     1 |  4056 |     3   (0)| 00:00:01 |
    |*  3 |   INDEX RANGE SCAN | SYS_IOT_TOP_379781 |     3 |  7815 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter(SYS_CHECKACL("ACLOID","OWNERID",xmltype('<privilege
                  xmlns="http://xmlns.oracle.com/xdb/acl.xsd"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://xmlns.oracle.com/xdb/acl.xsd
                  http://xmlns.oracle.com/xdb/acl.xsd DAV:http://xmlns.oracle.com/xdb/dav.xsd"><rea
                  d-properties/><read-contents/></privilege>'))=1)
       3 - access("NESTED_TABLE_ID"="caieers_tb"."SYS_NC0001900020$")
           filter("SYS_NC_TYPEID$" IS NOT NULL)
    Note
       - dynamic sampling used for this statement
    SQL>
    SQL>
    SQL>

  • Data load from DSO to cube fails

    Hi Gurus,
    The data loads have failed last night and when I try to dig inside the process chains I find out that the cube which should be loaded from DSO is not getting loaded.
    The DSO has been loaded without errors from ECC.
    Error Message say u201DThe unit/currency u2018source currency 0currencyu2019 with the value u2018spaceu2019 is assigned to the keyfigure u2018source keyfigure.ZARAMTu2019 u201D
    I looked in the  PSA has about 50, 000 records .
    and all data packages have green light and all amounts have 0currency assigned
    I went in to the DTP and looked at the error stack it has nothing in it then I  changed the error handling option from u2018 no update,no reportingu2019 to u2018valid records update, no reporting (resquest red)u2019 and executed then the error stactk showed 101 records
    The ZARAMT filed has 0currency blank for all these records
    I tried to assign USD to them and  the changes were saved and I tried to execute again but then the message says that the request ID should be repaired or deleted before the execution. I tried to repair it says can not be repaired so I deleted it and executed . it fails and the error stack still show 101 records.when I look at the records the changes made do not exist anymore.
    If I delete the request ID before changing and try to save the changes then they donu2019t get saved.
    What should I do to resolve the issue.
    thanks
    Prasad

    Hi Prasad....
    Error Stack is request specific.....Once you delete the request from the target the data in error stach will also get deleted....
    Actually....in this case what you are suppose to do is :
    1) Change the error handling option to u2018valid records update, no reporting (resquest red)u2019 (As you have already done....) and execute the DTP......all the erroneous records will get sccumulated in the error stack...
    2) Then correct the erroneos records in the Error Stack..
    3) Then in the DTP----in the "Update tab"....you will get the option "Error DTP".......if it is already not created you will get the option as "Create Error DT".............click there and execute the Error DTP..........The Error DTP will fetch the records from the Error Stack and will create a new request in the target....
    4) Then manually change the status of the original request to Green....
    But did you check why the value of this field is blank....if these records again come as apart of delta or full then your load will again fail.....chcek in the source system and fix it...for permanent solution..
    Regards,
    Debjani......

  • XML file not loading in FF from server

    I've created a web page that loads an external XML file and
    then uses javascript code to parse the file for requested
    information. I know it's not the best way to do this, but I'm
    trying to get this working before I move on to "better" methods.
    When I run the page using the "Preview/Debug in browser"
    funtionality of DW everything works great both in IE and FF. But
    when I load the page to the server and then load the page in a
    browser, it works in IE but not in FF. It looks as though FF is
    just not loading the XML file. I can't figure out why the page
    would work if launched from DW, but not work if the page is loaded
    on the server and then run from there, and only in FF.
    The code I'm using to load the XML file is supposed to be
    cross-browser compatible. I've seen many versions like from various
    sources, so it should be OK. I'm pretty new to all of this so I'm
    hoping that I'm just missing something simple. Does anyone have any
    idea why this is behaving this way?
    Thanks for any help.

    so, in frame 1 of your fla before you execute that cross-domain load method, use:
    System.security.loadPolicyFile("http:www.yourcrossdomain.com/subdirectoriesIfNeeded/crossd omain2.xml");
    where the following (crossdomain.xml) is in www.yourcrossdomain.com's root (IF you want to allow allow subdirectory policy files):
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    </cross-domain-policy>
    and in the subdirectory (and its descendents) that you want to allow access put crossdomain2.xml:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="www.thedomainthatstryingtoloadcrossdomaindata.com" />
    </cross-domain-policy>

  • How do I Load a clob from an XML field in an XMLTYPE using XMLTABLE ?

    I am trying to load data into a CLOB from a XML field using XMLTABLE.
    I have a SUMMARY xml field with over 100 K of data (potentialy)
    and I can load all the other datatype fields to columns but can not load the xml fields over 4000 characters.
    example
    First I create a table of XMLTYPE. I need to sqlload new files in at regular intervals.
    Create table WEB_XML of XMLTYPE;
    Then I create my relational table....
    create table WEB_WORKING
    request_id varchar(10),
    ref_number varchar(20),
    summary clob
    The I use the .ctl file to sqlload the xml data in
    LOAD DATA
    INFILE *
    INTO TABLE WEB_XML
    append
    xmltype(XMLDATA)
    ext_fname filler char(90),
    XMLDATA LOBFILE(ext_fname) TERMINATED BY EOF
    BEGINDATA
    XMLFILE1.xml
    After loading the WEB_XML table using sqlldr, I try to load my relational table using XMLTable
    INSERT into WEBBAR_WORKING
    request_id ,
    ref_number ,
    summary
    SELECT X.* FROM WEB_XML P2,
    XMLTable ( '//Request//REQUESTVIEW'
    PASSING P2.object_value
    COLUMNS
    "request_id" VARCHAR(10) PATH 'REQUEST_ID',
    "ref_number" VARchar(20) PATH 'REF_NUMBER',
    "SUMMARY" clob PATH 'SUMMARY'
    ) AS X;
    This gives an error saying its not expecting clob
    My XML looks somthing like
    -<Request>
    -<REQUESTVIEW>
    <REQUEST_ID>3140</REQUEST_ID>
    <ref_number>2003-04-02</RECEIVED_DATE>
    <SUMMARY>
    OVER 100 K of data
    </SUMMARY>
    </REQUESTVIEW>
    </Request>

    ok
    that helped lot, im getting there however some more help please
    This SQL
    SELECT request_id, recieved_by, X.SUMMARY.getClobVal()
    FROM WEB_XML P2,
    XMLTable
    '//Request//REQUESTVIEW'
    PASSING P2.object_value
    COLUMNS
    "request_id" VARCHAR(10) PATH 'REQUEST_ID',
    "received_by" VARCHAR(10) PATH 'RECEIVED_BY',
    "SUMMARY" xmltype PATH 'SUMMARY'
    ) AS X;
    SELECT request_id, recieved_by, X.SUMMARY.getClobVal()
    ERROR at line 1:
    ORA-00904: "RECIEVED_BY": invalid identifier
    If I use the X.request_id, X.received_by ......
    i get the error message
    Package or function is in aan invalid state.
    But this SQL was successful in getting the clob by itself but with the XML tgs around it still, how do I strip the XML tags from around this result ?
    SELECT X.SUMMARY.getClobVal()
    FROM WEBBAR_XML P2,
    XMLTable
    '//Request//REQUESTVIEW'
    PASSING P2.object_value
    COLUMNS
    "SUMMARY" XMLTYPE PATH 'SUMMARY'
    ) AS X;
    ----------------------------------------------------------

Maybe you are looking for

  • I can't update my ipod to the other pc

    when i try to update my ipod to the other pc it won't let me update. When i tried to plug in my ipod it would still show please plug in your ipod to update it. Please help me! I update this already to my dad's computer and now he sold his computer to

  • Please help! problem with my registration form

    Hi all im hoping someone can point out a problem in the code to me cuz i have searched and searched the form and all seems completely fine. I am trying to have a message to popup in the header if someone tries to register with an already registered e

  • How to move large audio files to deskop from iPhone?

    How can I move large audio files from my iPhone 4S (IOS7) to my iMac (OSX 10.5.8)? I can not use: - iTunes (will not install high enough to this ol'mac to work with IOS7) - cloud-servers - email, iPhone will not mail that big files... - image transfe

  • Error 4002

    I keep getting this error message when clicking on itunes Match to add a song to icloud.  Any ideas?

  • SQL Developer generating an XML Schema for a table

    I hope I've put this question in to correct area of the forum! My question is how do you generate an XML schema of a table layout in SQL Developer? You can generate an XML schema for the DATA, but I just want to generate one with all the column defin