Schema Parser - Can not build Schema

I keep getting the following exception error:
"Can not build schema '' located at 'http://localhost/cv_enterprise.xsd''"
This is the Code which throws the error :
Reader r = cvcontext.Request.getReader();
InputSource in_src = new InputSource(r);
try {
schemadoc = (XMLSchema)builder.build("c:/broadwing/xml/cv_enterprise.xsd");
}catch(Exception ept){writeError("error in builiding " + ept.getMessage());}
writeError("three");*/
DOMParser dp = new DOMParser();
dp.setValidationMode(false);
dp.setSchemaValidationMode(true);
dp.setPreserveWhitespace(true);
dp.parse(r);
But the following lines of code works perfect:
try{
File f =new File(filename);
FileReader r = new FileReader(f);
DOMParser dp = new DOMParser();
URL url = createURL (filename);
dp.setValidationMode(false);
dp.setSchemaValidationMode(true);
dp.setPreserveWhitespace(true);
dp.parse(url);
System.out.println("it is parsed");
}catch(Exception e){System.out.println("there is error"+e.getMessage());}
The only difference between two is the first one works under a servlet environment and the second is a standalone application. Both use the same xml and xsd documents. The servlet receives the xml via http post and the application takes the xml as commandline argument.
The xml document has the xsd reference as http url.
null

I keep getting the following exception error:
"Can not build schema '' located at 'http://localhost/cv_enterprise.xsd''"
This is the Code which throws the error :
Reader r = cvcontext.Request.getReader();
InputSource in_src = new InputSource(r);
try {
schemadoc = (XMLSchema)builder.build("c:/broadwing/xml/cv_enterprise.xsd");
}catch(Exception ept){writeError("error in builiding " + ept.getMessage());}
writeError("three");*/
DOMParser dp = new DOMParser();
dp.setValidationMode(false);
dp.setSchemaValidationMode(true);
dp.setPreserveWhitespace(true);
dp.parse(r);
But the following lines of code works perfect:
try{
File f =new File(filename);
FileReader r = new FileReader(f);
DOMParser dp = new DOMParser();
URL url = createURL (filename);
dp.setValidationMode(false);
dp.setSchemaValidationMode(true);
dp.setPreserveWhitespace(true);
dp.parse(url);
System.out.println("it is parsed");
}catch(Exception e){System.out.println("there is error"+e.getMessage());}
The only difference between two is the first one works under a servlet environment and the second is a standalone application. Both use the same xml and xsd documents. The servlet receives the xml via http post and the application takes the xml as commandline argument.
The xml document has the xsd reference as http url.
null

Similar Messages

  • JDeveloper, Can not build schema - Help Required

    Hi everyone,
    I am facing a peculiar problem with Jdeveloper. (10.1.3.4.4270)
    I am developing an ESB project. When referring to a XSD from within a XSD using a URL i.e. import, It's giving me error.
    Here is the sample code:_
    <?xml version="1.0" encoding="utf-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    <xsd:import namespace="http://xmlns.mysite.com/q/types"
              schemaLocation="http://192.168.8.10:7072/mySchemas/xmltypes.xsd" />
    ( [http://192.168.8.10:7072/mySchemas/xmltypes.xsd|http://192.168.8.10:7072/mySchemas/xmltypes.xsd] is accessible from a browser directly on the machine where project dir exists)
    When opening the XSD is design mode its showing red(error) for any element that uses types from xmltypes.xsd. When opening the XSL mapping which uses the current XSD its gives the following error:
    "Failed to open the target schema:
    Can not build schema 'http://xmlns.mysite.com/q/types' located at 'file :/C: /....../*xmltypes.xsd*'"
    +(It seems Jdeveloper is looking for the xmltypes.xsd in project dir, even though the import points to a URL)+
    The same code above works fine in Eclipse Gynamade and elements in current XSD are able to refer to types in xmltypes.xsd.
    What could be the problem. I am not finding any solution for this.
    Thanks in advance.

    Thank you for your reply.ButI had assign the dba role to the user,and could you tell me what version can build the schema.I had use the RAM 6.3.4.0.0 Complete 6.334
    Thank in advance
    Chris

  • Can not build schema in the ram

    Hi
    I setup a simple data module in RAM,
    dimensions:Product
    level:Total>Item
    variables:Price,Quantity.
    save,and the message appear,data module complete.
    and go to poject>build schema,entry the prefix 'osa',press the next button,go thought the step 2,in the step 3,select preview,in the note you can see the error :'Write Drop/Create Lkup Tbl Indices for Dimension: There was an error committing the Project to the database. All changes will be rolled back. '
    I do not what lead to this error,Pls tell me what happen and how can I fix this.
    Thank in advance
    Chris

    Thank you for your reply.ButI had assign the dba role to the user,and could you tell me what version can build the schema.I had use the RAM 6.3.4.0.0 Complete 6.334
    Thank in advance
    Chris

  • Can not build a Universe based on a SAP/BW Query:

    Hi,
    In Universe Designer I can not build a Universe based on a SAP/BW Query:
    -The Universe Items -> Sight -> Universe Window and -> Sight -> Liste Mode are greyed our
    - Its simply not possible to move Universe "Objects" = "Classes" into the Table, Join or
    Item Plane.
    I am useing:
    -BO XI 3.1
    -BO Solutions for SAP Integration
    -Universe Designer
    Universe Designer based on a Database is ok
    The Connection to the SAP System is stored in BO XI 3.1
    What's missing ?
    Any Rights/Authorizations are Misseing ?
    Thanks a lot !
    Martin

    Hi
    when working with OLAP universes (eg. universes based on SAP BW queries) it is not possible to work as you normally do when you have a universe based on a relational data source. The data madel is the one from the OLAP source (cube) so it is not possible to create your on joins, tables etc. In this case you can only add/modify the objects in the object browser (left panel).
    Regards,
    Stratos
    PS: The Data Federator will allo you to create relational universes on an SAP BW source. Still this is a product that must be licensed seperately and currently does not support SAP logon ticket-based SSO.

  • Can not delete schema with RCU (Repository Creation Tool)

    Hello together,
    i want delete a new schema with the RCU (Repository Creation Utility) until now it goes without prolems. Now i want delete a schema - goes to the delete option give in my database connection and in the next step (3 of 5 ) he show me the Schema which i will delete. I choose it (Next) and accept the warning and it comes the summary what i want delete-->delete. It appear follow message:
    RCU-6130: Action not succesful- RCU-6131: Failure by the database registration
    That sounds a little bit crazy for me then i have already give in the database connection details?
    So why is the reason why i can not delete my choosen schema.
    Give it another way to delete the schema.
    I look forward for you help:)

    Please go through the below link.
    http://docs.oracle.com/cd/E23943_01/doc.1111/e14259/rcu_screens.htm#BABGIAEE

  • Can not build a template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • Can someone help me? Why i can not build RSA key pair

    i download the java_card_kit-2_2_01-win-gl.zip from sun's web site
    and i use the keypair class to build a RSA key pair
    but it always throws NO_SUCH_ALGORITHM excption.
    how can i build a key pair

    This has been covered a million times. There isn't any crypto implementation with Sun's kit. This is mentioned in the documentation.

  • WLW on Linux does not build Schemas correctly

    Finally managed to get WLW to build my Schemas project without errors (there were no errors under Windows XP); however for some bizarre reason, given the following
    <pre><xs:complexType name="ErrorInfo">
    <xs:sequence>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="Message" type="xs:string"/>
    </xs:sequence>
    </xs:complexType></pre>
    when I call this method in my code, the element name "Message" has been truncated to "Msg". Again, this does not happen under Windows.
    Can anyone explain?

    Hi,
    You should be able to see the Maintainer and description fields using the command "dpkg -s adobeair" on console and by searching for adobeair package in Synaptic. Hope that helps.
    Thanks!
    Sanika

  • Swingbench2.4: Can not start schema creation wizards

    Hi Community,
    When trying swingbench2.4 I got "java.lang.NoClassDefFoundError: while resolving class: com.dom.benchmarking.swingbench.wizards.Wizard" error.
    I've included $SWINGHOME/lib/swingbench.jar, where the wizard class file can be found, in my classpath, but that didn't work.
    My JDK is jdk1.6.0_23.
    Any help?
    Thanks,
    Todd

    Hi Fahd,
    Thanks, I've filled in all variables including below, but didn't work:
    ORACLE_HOME
    JAVAHOME
    SWINGHOME,
    ANTHOME=$SWINGHOME/lib
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/lib
    CLASSPATH=$JAVAHOME/jre/lib/rt.jar:$JAVAHOME/lib/tools.jar:$ORACLE_HOME/jdbc/lib/ojdbc6.jar:$SWINGHOME/lib/swingbench.jar:$ANTHOME/ant.jar
    PATH=$JAVAHOME/bin:$PATH
    Thanks

  • Call to createxml with a schema url does not create schema based xml

    Unfortunately I am unable to post the exact creates that I have done, but I am having a problem and none of my DBA's were able to help me.
    Basically what I have done is, I had existing tables in our database that have legacy data in them. Our ultimate goal is to export information in xml format from the database.
    The first thing I did was to create objects in oracle that wrapped the logic of these tables and filled the objects in based on on ID parameter. There are 3 separate levels of objects. One object that has tables of two other objects each of which has tables of objects themselves.
    After the objects were created, I used a call to dbms_xmlschema.generateschema to generate the schema for these objects. After that I changed the schema so that the names of the elements in the schema were names that i wanted to be. I THOUGHT that this would map my oracle object names to new element names.
    After the schema was generated and changed, I used a call to dbms_xmlschema.registerSchema with the following options:
    local=>true, genTypes=>false, force=>false, GENTABLES=>false, genbean=>false
    I tried it with gentables = true, but unfortunately i don't have access to create these tables and the dba's were not allowing me to because they aren't familiar with the xml capabilities and I couldn't explain why it was necessary. I'm not sure that it is.
    Once the schema was registered, i made a call to xmltype.createxml
    with a call to my object contstructor method as the first parameter, and the schema url that was registered in the database as the second parameter.
    Now, here is my problem. The xmltype result that comes back from the query to createxml does not return the element tag names that i had written in the schema. The tag names are the same as the object names which are the same as it is if i didn't use the schema url at all. Does anyone know what I could possibly be doing wrong? Maybe I am misunderstanding the functionality of creating xml with an oracle xml annotated schema. Please help!

    code tags and formatting are done with square brackets :-) Check out the Formatting Help on the message entry page
    What does the URL resolve to when you view source on the JSP page?
    Try it just "/ViewScores" rather than "/servlet/ViewScores"
    Apart from that, it looks fine to me
    Cheers,
    evnafets

  • Can not build extensiomn using Extensio

    Hi,
    I am building extension using Flash Builder 4.6 and extension builder 2.1. Compilation job is done corrcetly by FB but extension builder is throwing the error as given below.
    Errors running builder 'Adobe Creative Suite Extension Builder' on project 'AppStudioExporter'.
    Please log in with your Adobe ID to use Adobe Creative Suite Extension Builder.
    I am using correct credentials, still facing the issue.
    any idea what mistake i am doing.

    HI BSW,
    Thanks for sharing the log files with us . It seems like that we hare having trouble extracting the file may be because of an Antivirus running in the background or with the permissions on the machine . Can you please try the following stuff on your machine .
    1) Please try renaming the folder C:\Users\brian\AppData\Local\Adobe\AAMUpdater\1.0 and try creating a fresh package and include the update as well .
    2) If the above mentioned doesnt work , please try the same in a new Admin account and check .
    Please let us know if it works for you or not .
    Cheers,
    Kartikay Sharma

  • Can not build TNS connection from remote station but local do

    i install a new instance, everything work well in local machine,
    invole local service name, however, once i do the same work to
    build a new TNS service name by net assist at another (remote)
    machine, it always prompt on: " target object is not availabe"
    or something like this;
    i wonder why the local TNS service connection can work(it seems
    proved everything well), but remote can't, what is the problem?
    thank in advance

    I entered the following message on Sep. 29th and have not yet received a reply so I'm repeating it here:
    I could not get IIOP to work either remotely or locally on my server. My environment runs Oracle 8.1.6 under Windows 2000 Server.
    Per Oracle documentation, I added:
    DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SERVERNAME)(PORT = 2481))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    to my listener.ora file and:
    mts_dispatchers="(protocol=tcp)(presentation=oracle.aurora.server.SGiopServer)"
    to my init.ora file. When I used the sses_sh command I got the following first few lines:
    "Exception in thread "main" org.omg.CORBA.COM_FAILURE[completed=MAYBE, reason = java.net.SocketException: Socket failed]..."
    Looking at the log I got the following error:
    "TNS-12516 TNS:listener could not find available handler with matching protocol stack".
    I didn't see anything interesting in the trace file.
    Is there something else I need to do to get the listener to find the proper protocol stack? Has anyone encountered and found the solution to this problem?
    null

  • Can not build cRIO host VI - niFpgaDmaChannelImplementation.ctl error

    I am trying to build my host VI on a crio9074.  About half way through the build it hangs up while "Saving niFpgaDmaChannelImplementation.ctl".  It then hangs there for about 10 minutes and then I finally get a error that the build failed with this message:  
    niFpgaDmaChannelImplementation.ctl 
    Invoke Node in AB_Source_VI.lvclass:Close_Reference.vi->AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_RTEXE.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_Application.lvclass:Build.vi->AB_RTEXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCallerMethod Name: Save:Target Instrument 
    Happens consistently every time, so I am stuck.  I searched and the control mentioned is in one of the LV support directories.  The VI I am trying to build does use FIFO reads to communicate with the FPGA.   
    Message Edited by bradh on 04-09-2010 07:55 AM
    Solved!
    Go to Solution.

    Is there a numeric error code associated with this error?  I think what you are seeing is that when you are building the rtexe, files are being pulled in to the executable and causing the file paths to be too long.  Windows can only support file names of 255 characters or less.  What happens if you move the location of the rtexe up on your machine's directory hierarchy?  For instance, if you specify the location of the build to go to C:\ or C:\builds, something with a short path, does the build succeed?
    Donovan

  • [Solved] Can not build modules for VMware Player after kernel updates

    I have a problem generating the modules for VMware Player after kernel updates. I am using  VMware Player version 5.02 (without patches) and the softlink according to the Wiki.
    When I start the installation of the modules from the GUI, the program just closes. Running vmware-modconfig in the CLI generates the following log file:
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Log for VMware Workstation pid=7478 version=9.0.2 build=build-1031769 option=Release
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: The process is 64-bit.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Host codepage=UTF-8 encoding=UTF-8
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Host is Linux 3.8.10-1-ARCH 2012.11.29
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Msg_Reset:
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": Datei oder Verzeichnis nicht gefunden.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: ----------------------------------------
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Msg_Reset:
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/config": Datei oder Verzeichnis nicht gefunden.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: ----------------------------------------
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: PREF Optional preferences file not found at /root/.vmware/config. Using default values.
    2013-04-29T09:49:27.891+01:00| vthread-3| W110: Logging to /tmp/vmware-root/vmware-modconfig-7478.log
    2013-04-29T09:49:27.892+01:00| vthread-3| W110: Icon name must be set.
    Interestingly, after deinstallation and reinstallation the VMWare Player works fine.
    Any hint, what's going wrong?
    Last edited by Thomas_Do (2013-08-07 07:25:51)

    Today, (Kernel  3.10.5-1, VMware Player version 5.02 with kernel patches) the modules could successful be generated from the CLI:
    vmware-modconfig --console --install-all
    Solved (somehow).

  • Can not build export of application

    When i run my application in debug mode .. all works perfectly.
    But when i try build run-mode application. Flash builder returns warnings like that
    Описание Ресурс Путь Расположение Тип
    Design:itemPage is a module or application that is directly referenced. This will cause Design:itemPage and all of its dependencies to be linked in with fx. Using an interface is the recommended practice to avoid this. fx Неизвестно Проблема Flex
    map:mapEdit is a module or application that is directly referenced. This will cause map:mapEdit and all of its dependencies to be linked in with fx. Using an interface is the recommended practice to avoid this. fx Неизвестно Проблема Flex
    map:mapPage is a module or application that is directly referenced. This will cause map:mapPage and all of its dependencies to be linked in with fx. Using an interface is the recommended practice to avoid this. fx Неизвестно Проблема Flex
    menu:myMenu is a module or application that is directly referenced. This will cause menu:myMenu and all of its dependencies to be linked in with fx. Using an interface is the recommended practice to avoid this. fx Неизвестно Проблема Flex
    What does that meen? What i have to do?
    Google is don't know.
    PS Sorry for my english.

    Hi,
    The underlying problem here that the warning is trying to make you aware of:
    If you refer to a module or application directly in your code, that module will become part of your application (thereby losing the advantage of making a separate module out of it that loads later).
    The recommended way in such cases is to define an interface that both the application and module knows about. See http://livedocs.adobe.com/flex/3/html/help.html?content=modular_2.html for more info.
    Cheers,
    Anirudh

Maybe you are looking for

  • Ipad mini safari display size issues

    I created help documentation for an iPad app. The help opens in Safari and it works fine. So, now we support the iPad Mini, but when we open the help in Safari on the Mini, the sizing is messed up. Also, I am told that the links do not go to the corr

  • Got stuck ---- importing java dump while installing NW04s .....

    Hi All, I am installing NW04s. Doing EP on java stack. I got stuck in the 17th step ie..import java dump... the log file says... ERROR 2006-11-28 16:18:17 CJS-30049  Execution of JLoad tool 'C:\j2sdk1.4.2_10\bin\java.exe -classpath "C:\Program Files\

  • IMac OSX 10.5.6 freezing every time - color wheel rampant

    Hi - my 2009 iMac is freezing up with ever point and click. It is nearly unresponsive. I get the colorwheel with almost every click. I am forced to shut it down via the on off button as Force Quit won't even work. This being my first Apple and hence

  • Straightening a photo and missing buttons

    I have a few crooked photos that need straightening. In "iPhoto Help" I'm told to "click the edit button" and then: "Click the Adjust button (shown below)". I don't have an "Adjust button". There is even a picture of it in "Help" with its location, b

  • Help!  weblogic.rmic _WLStub vs. regular _Stub

    Hello, I have WL6.0 sp1. I want to run weblogic.rmic on a Remote class, in order to get the _WLStub classes.  Am I missing lots of weblogic classes? What jars are these in, I don't see them anywhere in weblogic.jar or in ./lib -- weblogic.rmi.extensi