XSD Changes - Problem Exception - creating schema

I am having a problem and need your help. New to SOA.
I have a xsd file in my project. Based on the xsd definition in the file I have created a BPEL variable (using element) refering to the xsd element name. Added a simplae assign statement and I could see the child elements fine during the Assign statement.
However when I add new child element in the xsd file or even change the name of the pre-existing child element name the variable in the assign activity gives the error "Problem Exception - creating schema". I created a completely new variable by refering the xsd element but still the new variable also gives error "Problem Exception - creating schema".
It appears that it does not like me changing the xsd file at all. Am I missing any step. Do I need to take any more step after changing the xsd to be able to create a new variable based on the xsd file.
Please help.
Thanks

I looked it from the variable definition by clicking on "Exeception - Problem Building Schema" and it showing more details. The error is "Duplicated definition for : VariableFetchPOData"
Where can I see the duplicated definition information. ?
Please advise
Thanks

Similar Messages

  • Problem creating schema source while using WebService in MessageMapping

    Hi, scenario is RFC2WS.
    Problem that occurs is that when i want to use a method from WebService in MessageMapping XI won't import the structure. I am getting following error. The WSDL is from an external portal on which a WebService is ready to invoke.
    <b>What might be the problem?! </b>
    <i>
    Problem when creating schema source:
    Details
    java.lang.NullPointerException
    STACKTRACE:
    com.sap.aii.utilxi.misc.api.BaseException: java.lang.NullPointerException
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdSchemaTextable.setSchema(XsdSchemaTextable.java:86)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.setSchema(XsdContainerTextView.java:46)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.<init>(XsdContainerTextView.java:36)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.makeFromTreeDoc(MultiViewEditor.java:216)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.<init>(MultiViewEditor.java:64)
        at com.sap.aii.mappingtool.mf.TransformationPanel.createTargetView(TransformationPanel.java:264)
        at com.sap.aii.mappingtool.mf.TransformationPanel.<init>(TransformationPanel.java:100)
        at com.sap.aii.mappingtool.mf.MappingTool.<init>(MappingTool.java:32)
        at com.sap.aii.mappingtool.api.MappingToolFactory.getInstance(MappingToolFactory.java:96)
        at com.sap.aii.mappingtool.fwutil.util.ToolUtil.restartTool(ToolUtil.java:315)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView.loadIfrSchema(XiTransformationView.java:274)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiMappingView$LinkDataTarget.setData(XiMappingView.java:378)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView$MessageDataTarget.setData(XiTransformationView.java:973)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.setData(DataTarget.java:514)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.drop(DataTarget.java:462)
        at java.awt.dnd.DropTarget.drop(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    STACKTRACE:
    java.lang.NullPointerException
        at com.sap.aii.utilxi.xsd.api.XsdHandler.saveSchemaToDocument(XsdHandler.java:61)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdSchemaTextable.setSchema(XsdSchemaTextable.java:82)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.setSchema(XsdContainerTextView.java:46)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.<init>(XsdContainerTextView.java:36)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.makeFromTreeDoc(MultiViewEditor.java:216)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.<init>(MultiViewEditor.java:64)
        at com.sap.aii.mappingtool.mf.TransformationPanel.createTargetView(TransformationPanel.java:264)
        at com.sap.aii.mappingtool.mf.TransformationPanel.<init>(TransformationPanel.java:100)
        at com.sap.aii.mappingtool.mf.MappingTool.<init>(MappingTool.java:32)
        at com.sap.aii.mappingtool.api.MappingToolFactory.getInstance(MappingToolFactory.java:96)
        at com.sap.aii.mappingtool.fwutil.util.ToolUtil.restartTool(ToolUtil.java:315)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView.loadIfrSchema(XiTransformationView.java:274)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiMappingView$LinkDataTarget.setData(XiMappingView.java:378)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView$MessageDataTarget.setData(XiTransformationView.java:973)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.setData(DataTarget.java:514)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.drop(DataTarget.java:462)
        at java.awt.dnd.DropTarget.drop(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    </i>

    Hi ,
    Can you please cross check these steps carefully.
    1. After importing the WSDL using external definition, did you checked msges Tab for for the included msg to see what msges you have added.
    and be careful that the namespaces of the messages are part of the WSDL description and can differ from the namespace of the external definition object.
    2.Did you created message Interface corresponding to the message types from the external definition? it is needed to route the message to webService. Here select message types of the external definition object. Assign input and output messages.
    3. Creating a SOAP Receiver Channel
    To call the Web service, you create a communication channel with type SOAP and
    direction receiver in the Integration Directory. The obligatory parameters in the
    configuration are Target URL and SOAP action. You get the values you have to enter
    here from the WSDL file.
    Creating a SOAP Sender Channel
    When you create a SOAP sender channel you have to define the namespace and the
    name of a message interface. Since no input help is provided, you copy and paste the
    values from your Integration Repository.
    Select the Quality of Service according to your interface type. If you are using a
    synchronous interface, select Best Effort. Otherwise, select Exactly Once or EOIO.
    Hope this will help you to figure out.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • XSD Resolution problem - Unable to load Translation schemas

    Hi,
    I've run into a very strange kind of problem (not to say some are less strange then others). Let me explain the context of the situation.
    I've got a BPEL process calling two plsql packages on ORA database, one Java web service running on the same weblogic server and couple of other services (eg. notification services, jdbc select/insert, etc.). There is no problem with the last listed, but definitely something wrong with the web service and the plsql callouts.
    When I deploy the BPEL process and execute it, the first two instances always fail. The same happens when I restart the server, the errors are repeated after a certain period as well (for example over night). The process always fails EXACTLY TWICE, before running normally. Every other instance executed after the two initial failures runs WITHOUT the following error.
    I mentioned there are two plsql callouts in the process, earlier the first instance failed on the second one and the second instance failed on the first. Now, it mostly fails on the second callout. I've made no significant changes in the code. Perhaps the strangest thing about this is that it fails when invoking the plsql package but the error concerns xsd definitions of the web service that plays no role at this stage.
    All my services are correctly deployed, I deleted all interface definitions from MDS repository and redeployed SOA bundle again before installing each service.
    I think it has something to do with generated xsd definitions by the java web service (it's the http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 and http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 from following stack trace), but I can't figure out what exactly is wrong with them.
    Anybody come accross a similar error? Thanks for tips, I've run out of ideas.      
    Error Message: {http://schemas.oracle.com/bpel/extension}bindingFault
    Fault ID     default/S50001KontrolaSouboruBS!1.0*soa_be986963-f9d9-412d-b692-43804a35b3ee/KontrolaSouboru/830023-BpInv18-BpSeq8.12-2
    Fault Time     14-Feb-2012 11:11:16
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'LogFile' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.db.DBStoredProcedureInteractionSpec due to: XSD Resolution problem. XSD Resolution problem. Unable to load Translation schemas from for http://xmlns.oracle.com/pcbpel/adapter/db/TST_IP/LOG_FILE/LOG_FILE/ due to: Different schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentGlobal element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 82] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:82] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 36] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:36] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 21] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:21] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 51] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:51] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 66] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:66] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 112] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:112] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 127] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:127] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 97] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:97] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 115] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 52] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:117] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:54] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 175] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 98] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:177] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:100] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 153] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 128] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:155] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:130] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 64] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 83] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:66] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:85] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 93] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 22] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:95] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:24] Please make sure all used XML schemas are imported/included correctly. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>Different schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentGlobal element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 82] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:82] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 36] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:36] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 21] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:21] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 51] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:51] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 66] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:66] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 112] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:112] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 127] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:127] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 97] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:97] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 115] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 52] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:117] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:54] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 175] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 98] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:177] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:100] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 153] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 128] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:155] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:130] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 64] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 83] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:66] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:85] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 93] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 22] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:95] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:24] </detail></part><part name="code"><code>null</code></part></bindingFault></bpelFault>

    I had similar issue, when i deployed composite using Jdeveloper. The problem was with my adf-config.xml pointing to dev server and all my references in my composite.xml referring to test server.
    I changed property of 'oracle.mds.persistence.stores.db.DBMetadataStore' in adf-config.xml to test server. After adf-config.xml change in Jdev my compilation went smooth.
    Note: If above changes doesn't work, try restarting JDeveloper, sometimes the changes in adf-config.xml is not getting effect immediately.
    Regards,
    Ziaur Rahuman S
    Edited by: Ziaur Rahuman on Feb 13, 2013 10:58 PM

  • Problem in creating XMLTYPE table using schema validation

    Hi All,
    While executing  the follwing script there is an error :
    Script : " CREATE TABLE FINAPI_ONLINE_SEC_LOGIN_TMP1 OF  
                  SYS.XMLTYPE XMLSCHEMA
                  "http://www.finnone.com/xsd/TransactionDataRequest.xsd"
                   ELEMENT "transactiondatarequest"
    Error is :
    ERROR at line 1:
    "ORA-31000: Resource 'http://www.finnone.com/xsd/BaseSchema.xsd' is not an XDB schema document"
    why this problem is coming though transactiondatarequest.xsd is reguisterd
    Regards,
    Vikas Kumar

    Check with XMLSpy, JDeveloper or for instance use http://tools.decisionsoft.com/schemaValidate/
    Some pointers to start:
    SQL> conn marco/marco
    Connected.
    SQL> select * from session_roles;
    -- Quick and Dirty: grant xdbadmin, dba to marco
    ROLE
    XDB_WEBSERVICES
    XDB_WEBSERVICES_WITH_PUBLIC
    XDB_WEBSERVICES_OVER_HTTP
    DBA
    SELECT_CATALOG_ROLE
    HS_ADMIN_ROLE
    EXECUTE_CATALOG_ROLE
    DELETE_CATALOG_ROLE
    EXP_FULL_DATABASE
    IMP_FULL_DATABASE
    DATAPUMP_EXP_FULL_DATABASE
    ROLE
    DATAPUMP_IMP_FULL_DATABASE
    GATHER_SYSTEM_STATISTICS
    SCHEDULER_ADMIN
    WM_ADMIN_ROLE
    JAVA_ADMIN
    JAVA_DEPLOY
    XDBADMIN
    XDB_SET_INVOKER
    OLAP_XS_ADMIN
    OLAP_DBA
    21 rows selected.
    SQL> set pages 5000
    SQL> set long 1000000000
    SQL> set trimspool on
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> desc dba_xml_schemas
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    SCHEMA_URL                                         VARCHAR2(700)
    LOCAL                                              VARCHAR2(3)
    SCHEMA                                             SYS.XMLTYPE
    INT_OBJNAME                                        VARCHAR2(4000)
    QUAL_SCHEMA_URL                                    VARCHAR2(2839)
    HIER_TYPE                                          VARCHAR2(11)
    BINARY                                             VARCHAR2(3)
    SCHEMA_ID                                          RAW(16)
    HIDDEN                                             VARCHAR2(3)
    SQL> select OWNER, SCHEMA_URL, BINARY
      2  from dba_xml_schemas
      3 
    SQL> col SCHEMA_URL for a80
    SQL> set lines 200
    SQL> select OWNER, SCHEMA_URL, BINARY
      2  from dba_xml_schemas
      3  ;
    OWNER                          SCHEMA_URL                                                                       BIN
    XDB                            http://xmlns.oracle.com/xdb/XDBStandard.xsd                                      NO
    XDB                            http://xmlns.oracle.com/xdb/log/xdblog.xsd                                       NO
    XDB                            http://xmlns.oracle.com/xdb/log/ftplog.xsd                                       NO
    XDB                            http://xmlns.oracle.com/xdb/log/httplog.xsd                                      NO
    XDB                            http://www.w3.org/2001/xml.xsd                                                   NO
    XDB                            http://xmlns.oracle.com/xdb/xmltr.xsd                                            NO
    XDB                            http://xmlns.oracle.com/xdb/XDBFolderListing.xsd                                 NO
    XDB                            http://www.w3.org/1999/xlink.xsd                                                 NO
    XDB                            http://www.w3.org/1999/csx.xlink.xsd                                             YES
    XDB                            http://www.w3.org/2001/XInclude.xsd                                              NO
    XDB                            http://www.w3.org/2001/csx.XInclude.xsd                                          YES
    XDB                            http://xmlns.oracle.com/xdb/stats.xsd                                            NO
    XDB                            http://xmlns.oracle.com/xdb/xdbconfig.xsd                                        YES
    SYS                            kuscomm.xsd                                                                      NO
    SYS                            kusindxt.xsd                                                                     NO
    SYS                            kusindex.xsd                                                                     NO
    SYS                            kuscnstr.xsd                                                                     NO
    SYS                            kusrlsct.xsd                                                                     NO
    SYS                            kusrlsc.xsd                                                                      NO
    XDB                            http://xmlns.oracle.com/xdb/XDBSchema.xsd                                        NO
    XDB                            http://xmlns.oracle.com/xdb/XDBResource.xsd                                      NO
    XDB                            http://www.w3.org/2001/csx.xml.xsd                                               YES
    XDB                            http://xmlns.oracle.com/xdb/csx.xmltr.xsd                                        YES
    XDB                            http://xmlns.oracle.com/xdb/acl.xsd                                              YES
    XDB                            http://xmlns.oracle.com/xdb/dav.xsd                                              YES
    XDB                            http://xmlns.oracle.com/xdb/XDBResConfig.xsd                                     YES
    SYS                            kusrlsgt.xsd                                                                     NO
    SYS                            kustrigt.xsd                                                                     NO
    SYS                            kustrig.xsd                                                                      NO
    SYS                            kusviewt.xsd                                                                     NO
    SYS                            kusview.xsd                                                                      NO
    SYS                            kususert.xsd                                                                     NO
    SYS                            kususer.xsd                                                                      NO
    SYS                            http://xmlns.oracle.com/streams/schemas/lcr/streamslcr.xsd                       NO
    SYS                            kusrlsg.xsd                                                                      NO
    SYS                            kusrlspt.xsd                                                                     NO
    SYS                            kusrlsp.xsd                                                                      NO
    SYS                            kusrolet.xsd                                                                     NO
    SYS                            kusrole.xsd                                                                      NO
    SYS                            kusseqt.xsd                                                                      NO
    SYS                            kusseq.xsd                                                                       NO
    SYS                            kussynt.xsd                                                                      NO
    SYS                            kussyn.xsd                                                                       NO
    SYS                            kustblst.xsd                                                                     NO
    SYS                            kustbls.xsd                                                                      NO
    SYS                            kustablt.xsd                                                                     NO
    SYS                            kustable.xsd                                                                     NO
    SYS                            kusclust.xsd                                                                     NO
    SYS                            kusclus.xsd                                                                      NO
    SYS                            kusctxt.xsd                                                                      NO
    SYS                            kusctx.xsd                                                                       NO
    SYS                            kusdblkt.xsd                                                                     NO
    SYS                            kusdblk.xsd                                                                      NO
    SYS                            kusfgat.xsd                                                                      NO
    SYS                            kusfga.xsd                                                                       NO
    SYS                            kusmvt.xsd                                                                       NO
    SYS                            kusmv.xsd                                                                        NO
    SYS                            kusmvlt.xsd                                                                      NO
    SYS                            kusmvl.xsd                                                                       NO
    SYS                            kusquet.xsd                                                                      NO
    SYS                            kusque.xsd                                                                       NO
    SYS                            kusquetbt.xsd                                                                    NO
    SYS                            kusquetb.xsd                                                                     NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/exif                                            NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/rpdatatype_1_0                                 NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/ordimage                                        NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/datatype_1_0                                   NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/mddatatype_1_0                                 NO
    XDB                            http://xmlns.oracle.com/xs/dataSecurity.xsd                                      YES
    XDB                            http://xmlns.oracle.com/xs/aclids.xsd                                            NO
    XDB                            http://xmlns.oracle.com/xs/principal.xsd                                         YES
    XDB                            http://xmlns.oracle.com/xs/roleset.xsd                                           NO
    XDB                            http://xmlns.oracle.com/xs/securityclass.xsd                                     YES
    ORDSYS                         http://xmlns.oracle.com/ord/meta/dicomImage                                      NO
    EXFSYS                         http://xmlns.oracle.com/rlmgr/rclsprop.xsd                                       NO
    EXFSYS                         http://xmlns.oracle.com/rlmgr/rulecond.xsd                                       NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/iptc                                            NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/xmp                                             NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/anonymity_1_0                                  NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/constraint_1_0                                 NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/metadata_1_0                                   NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/mapping_1_0                                    NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/preference_1_0                                 NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/privateDictionary_1_0                          NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/standardDictionary_1_0                         NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/orddicom_1_0                                   NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/UIDdefinition_1_0                              NO
    MDSYS                          http://www.w3.org/1999/xlink/xlinks.xsd                                          NO
    MDSYS                          http://www.opengis.net/gml/geometry.xsd                                          NO
    MDSYS                          http://www.opengis.net/gml/feature.xsd                                           NO
    MDSYS                          http://xmlns.oracle.com/spatial/georaster/georaster.xsd                          NO
    91 rows selected.
    SQL> set lines 80
    SQL> desc path_view
    Name                                      Null?    Type
    PATH                                               VARCHAR2(1024)
    RES                                                SYS.XMLTYPE(XMLSchema "http:
                                                        //xmlns.oracle.com/xdb/XDBRe
                                                        source.xsd" Element "Resourc
                                                        e")
    LINK                                               SYS.XMLTYPE
    RESID                                              RAW(16)
    SQL> desc resource_view
    Name                                      Null?    Type
    RES                                                SYS.XMLTYPE(XMLSchema "http:
                                                        //xmlns.oracle.com/xdb/XDBRe
                                                        source.xsd" Element "Resourc
                                                        e")
    ANY_PATH                                           VARCHAR2(4000)
    RESID                                              RAW(16)
    SQL> select *
      2  from path_view
      3  where rownum <= 1;
    PATH
    RES
    LINK
    RESID
    /OLAP_XDS
    <Resource xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
      <CreationDate>2007-10-29T14:59:01.968000</CreationDate>
      <ModificationDate>2007-10-29T14:59:02.281000</ModificationDate>
      <DisplayName>OLAP_XDS</DisplayName>
      <Language>en-US</Language>
      <CharacterSet>UTF-8</CharacterSet>
      <ContentType>application/octet-stream</ContentType>
      <RefCount>1</RefCount>
    </Resource>
    <LINK>
      <ParentName>/</ParentName>
      <ChildName>OLAP_XDS</ChildName>
      <Name>OLAP_XDS</Name>
      <Flags>AAAABA==
    </Flags>
      <ParentOid>C4LJcGdKQ3+9zJ4w9efpxQ==
    </ParentOid>
      <ChildOid>8yNpXjvxQJeoruzx3GXRlQ==
    </ChildOid>
      <LinkType>Hard</LinkType>
    </LINK>
    F323695E3BF14097A8AEECF1DC65D195
    SQL> select *
      2  from resource_view
      3  where rownum <= 1;
    RES
    ANY_PATH
    RESID
    <Resource xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
      <CreationDate>2007-10-29T14:59:01.968000</CreationDate>
      <ModificationDate>2007-10-29T14:59:02.281000</ModificationDate>
      <DisplayName>OLAP_XDS</DisplayName>
      <Language>en-US</Language>
      <CharacterSet>UTF-8</CharacterSet>
      <ContentType>application/octet-stream</ContentType>
      <RefCount>1</RefCount>
    </Resource>
    /OLAP_XDS
    F323695E3BF14097A8AEECF1DC65D195
    SQL> select any_path from resource_view
      2  where any_path like '%xsd%';
    ANY_PATH
    /public/root.xsd
    /sys/schemas/PUBLIC/www.opengis.net/gml/feature.xsd
    /sys/schemas/PUBLIC/www.opengis.net/gml/geometry.xsd
    SQL> select xdbURIType ('/public/root.xsd').getClob() from dual;
    XDBURITYPE('/PUBLIC/ROOT.XSD').GETCLOB()
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
               xmlns:xdb="http://xmlns.oracle.com/xdb"
        elementFormDefault="qualified" attributeFormDefault="unqualified"
        xdb:storeVarrayAsTable="true">
            <xs:element name="ROOT" xdb:defaultTable="ROOT_TABLE" xdb:maintainDOM="false">
                    <xs:annotation>
                            <xs:documentation>Example XML Schema</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element name="ID" type="xs:integer" xdb:SQLName="ID"/>
                                    <xs:element ref="INFO"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <xs:element name="INFO" xdb:defaultTable="INFO_TABLE" xdb:SQLName="INFO_TYPE">
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element name="INFO_ID" type="xs:integer" xdb:SQLName="TYPE_INFO_ID"/>
                                    <xs:element name="INFO_CONTENT" xdb:SQLType="CLOB"
                    xdb:SQLName="TYPE_INFO_CONTENT" type="xs:string"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
    </xs:schema>
    SQL> select s.xmldata.schema_owner, s.xmldata.schema_url, s.xmldata.TARGET_NAMESPACE
      2  from xdb.xdb$schema s
      3  where rownum < 5;
    XMLDATA.SCHEMA_OWNER
    XMLDATA.SCHEMA_URL
    XMLDATA.TARGET_NAMESPACE
    XDB
    http://xmlns.oracle.com/xdb/XDBStandard.xsd
    http://xmlns.oracle.com/xdb/XDBStandard
    XDB
    http://xmlns.oracle.com/xdb/log/xdblog.xsd
    http://xmlns.oracle.com/xdb/log
    XDB
    http://xmlns.oracle.com/xdb/log/ftplog.xsd
    http://xmlns.oracle.com/xdb/log
    XDB
    http://xmlns.oracle.com/xdb/log/httplog.xsd
    http://xmlns.oracle.com/xdb/log
    4 rows selected.
    -- Author     : Mark Drake
    -- Purpose    : Compiling XML Schema
    -- Altered    : Marco Gralike
    -- Date       : 09/02/2007
    -- Alteration : Different, simplified error handling
    -- URL        : http://www.liberidu.com/blog/?p=57
    SET echo ON
    -- spool compileSchemas.log
    -- connect &USERNAME/&PASSWORD
    -- set serveroutput on
    declare
    cursor getSchemaList IS
      SELECT schema_url
      FROM user_xml_schemas;
    begin
    FOR schema IN getSchemaList
    loop
      begin
        dbms_output.put_line('Processing : ' || schema.schema_url);
        dbms_xmlschema.compileSchema(schema.schema_url);
        dbms_output.put_line('Compiled');
      exception when others then
        dbms_output.put_line('Failed ('||SQLCODE||'): ' ||SQLERRM);
      end;
    end loop;
    end;
    -- --------------------------------------------------------etc, etc, etc.
    By the way IMHO there are no stupid questions, only stupid answer, and the learning curve on XMLDB is steep, so if I sometimes look back on my answers...
    Message was edited by:
    Marco Gralike

  • Facing problem in xml schema xsd file registration

    Hi,
    i am facing problem in xml schema xsd file registration when
    the number of column is more. It is showing persing error.
    if i am deleting few column from xsd file . It is working otherwise
    showing error. Is there any solution for that please suggest me.
    The Error is
    ORA-31011:XML parsing failed
    ORA_19202: Error occurred in XML processing
    LPX-00230 : (message vary time to time-like invalid tag ending etc.)
    Regards
    Manoranjan
    and thanks in advance

    Where is you XML coming from. Are you sure it's valid. If you are hard coding it as a SQL String constant are you hitting the 4k / 32K limit on the size of SQL / PL/SQL constant. Have you tried loading the content from a bfile..

  • Desired change to CREATE SCHEMA

    Create Schema command allows multiple create table, create view and grant statements to be grouped together so that if one fails, none of them are actioned. This is excellent for "production release" scripts, as it means that we don't have to back out those changes that worked before re-running the corrected script.
    However, a lot of our database changes are of the "ALTER TABLE ADD" or "ALTER TABLE MODIFY" these days, since we have tables for all our logical objects. I'd dearly love these commands to be added to CREATE SCHEMA (or some similar command) so that they could also be "rolled back" in a group.
    Am I crazy or would this be useful to others?

    Create Schema command allows multiple create table,
    create view and grant statements to be grouped
    together so that if one fails, none of them are
    actioned. This is excellent for "production release"
    scripts, as it means that we don't have to back out
    those changes that worked before re-running the
    corrected script.
    However, a lot of our database changes are of the
    "ALTER TABLE ADD" or "ALTER TABLE MODIFY" these days,
    since we have tables for all our logical objects. I'd
    dearly love these commands to be added to CREATE
    SCHEMA (or some similar command) so that they could
    also be "rolled back" in a group.
    Am I crazy or would this be useful to others?It seems like a sensible addition to me, though I personally would be looking for an ALTER SCHEMA command.
    I have to say though that the CREATE SCHEMA command looks rather limited to me in general - no CREATE INDEX, no CREATE PROCEDURE and so on. The wording in the docs
    The CREATE SCHEMA statement supports the syntax of these statements only as defined by standard SQL, rather than the complete syntax supported by Oracle Database
    rather suggests to me that this a compatibility only statement rather than an actively developed one (which is a shame).
    Niall Litchfield
    http://www.orawin.info/
    Message was edited by:
    Niall Litchfield

  • We have problem to create or change users

    Hi All,
                   We have problem to create or change users we are getting error:
               /GMIES/USR1VAR  is not defined in the ABAP Dictionary as a table, projection view or database view.
          Please let me know what needs to be done.
      Thanks in advance
    Thanks&Regards
    Shams

    Hi Markus,
                            It was  due to plugin we had problem , it was not allowing to do any changes  in user master records .no one could able to do anything but then we got some correction transport request  containing correction to that after importing that transport request it solved the problem.
    Thanks&Regards
    Shams

  • I used to have a podcast that had been accepted on Itunes, but my I began to have problems with my host, so I changed host and created a new podcast, and I submitted my new podcast, Apple refused, and now says the feed has already been submitted??

    I used to have a podcast that had been accepted on Itunes, but my I began to have problems with my host, so I changed host and created a new podcast, and I submitted my new podcast, Apple refused, and now says the feed has already been submitted? Maybe Itunes thought that I was someone trying to copy my old podcast because I kept the same name, I tried to change the names but it looks like I'm on a blocked list...

    There is a procedure for changing the feed URL for a podcast, which it seems you haven't followed: you have to add a special tag to the old feed - just submitting a new feed will have exactly the effect you describe. The proper method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/podcast.html#move

  • Problem to create change pointer for custom message type - Idoc creation

    Hi,
    We want to create IDOC and send it out when the data of "planning calendar" changes. So we are trying to generate change pointers whenever entries in Table T439I (Planniing calendar) data change.
    We created a message type, activated change pointers generally and maintained change relevant fields for message type (not sure if this step is done correctly). But not getting any change pointer in table BDCP2 when I create a new planning calendar in MD25.
    Can anybody help / guide?

    Thanks once again,
    I had linked idoc type and message type in we82. Now after i activate the change pointers. I try to generate the IDOC type using BD21. It gives me the error message :<b> "Message type ZP2PPROJ_MSG cannot be sent with change pointers"</b>
    whereas in my segments i am using all the master data only (i.e. PRPS, PROJ,PRHI). Please throw some light on this.
    Also please clarify, do i need to make an entry of this custome message type in the partner profile ?
    Rgds
    kewal.

  • Problem to create a Schema

    After installing Oracle 8i, I can't create a schema.
    Can you help me please to indicate to me how I can create a schema?
    Should I download other file?
    Thank You
    null

    You donot need download any thing for this.
    First create a user say scott.
    Create user scott identified by tiger;
    grant connect , resource to scott;
    If the user is alreadt there , please ignore the above.
    Now run the following statement.
    CREATE SCHEMA AUTHORIZATION SCOTT
    CREATE TABLE sox
    (color VARCHAR2(10) PRIMARY KEY, quantity NUMBER)
    CREATE VIEW red_sox
    AS SELECT color, quantity FROM sox WHERE color = 'RED'
    GRANT select ON red_sox TO public;
    Hope the above will help you.

  • Problem in building schema when try to invoke the another BPEL service

    Hi all,
    Whenever try to Invoke a another BPEL service using the Invoke activiy and Partnerlink, we need to create a variable structure similar to the providing service.
    For this I used create Auto Varible option available in the invoke activity. But after creating the variable, I tried to expand the variable for the copy operation, the error iam getting is Problem in building schema.
    This error never happened to me before. I have no clue.
    Jdev version:10.1.3.3.0
    Soa version:10.1.3.3.0
    Please help me on this.
    Thanks.

    Hi Lokesh,
    Iam not able to understand what you are trying to say. But my Input variable and Invoke Input variable are compatible, no problem on this. I got some clue from your reply.
    Finally I got it worked by doing it in another way.
    In my Invoking BPEL Process(ie. BPEL Process is trying to invoke the another BPEL Process using Partnerlink) wsdl I imported the partnerlink BPEL schema and it get solved my problem.
    eg) <import namespace="http://xmlns.oracle.com/BpelProcessname" schemaLocation="ParnerLinkBPELSchema.xsd"/>
    This can be usefull for others and I never did this to import the schema manually before, but it works without any errors.
    Now only it causing this problem, whether it is any Jdeveloper issue.
    And i tryed this using Jdev version 10.1.3.4.0, but still the same exception.
    This workaround will usefull for others.
    Thanks for your reply.
    bye.....

  • Problem in creating workspaces..Please guide

    Hello All,
    Am facing a problem in creating workspaces in DTR. Am working on EP7 SR2 (SP9)
    Have read mostly all related posts on SDN but cannot catch the missing link...Please guide me for the same:
    <u><b>setvars.bat</b></u>
    @echo off
    rem Default properties definition for the DTR Client Commandline Tool:
    rem -
    rem (1) Mandatory: DTR configuration folder:
    set DTR_HOME=C:\Documents and Settings\RHunjan
    set CFG_DIR=%DTR_HOME%\.dtr
    rem Remark: How to find DTR_HOME folder?
    rem - In Release 6.40:
    rem          The default location is C:\Documents and Settings\<user>\.sapnetweaver.
    rem - In Release 7.1:
    rem      Start Netweaver Developer Studio and login to the configuration / client
    rem      where you would like to work, then choose the menu: 'file' -> 'Switch workspace'.
    rem      The upcoming dialog shows the currently used Eclipse workspace.
    rem      The DTR configuration folder is <currently used eclipse workspace>.jdi
    rem (2) Optional: Folder with the definition of logging properties:
    set LOGGING=%DTR_HOME%\logging.properties
    rem (3) Default properties:
    rem set DEFAULT_PROPERTIES=-Dvfs.configfolder=%CFG_DIR% -Dvfs.logging=%LOGGING%
    <u><b>dtrshell.bat</b></u>
    @echo off
    rem Run DTR Commandline Shell:
    rem -
    rem (1) Get it running:
    rem -
    rem - Adapt configuration settings in setvars.bat.
    rem - Uncomment the settings for the used archives
    rem       that fit to the currently used Netweaver Developer Studio.
    call setvars.bat
    set CLASS_PATH=
    rem (2) Used Archives Settings:
    rem -
    rem Used Archives in 6.40 and 7.00 Netweaver Developer Studio installation:
    rem -
    set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_vfs.jar
    set CLASS_PATH=%CLASS_PATH%;httpclient.jar
    set CLASS_PATH=%CLASS_PATH%;httpclientext.jar
    set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_commandline.jar
    rem Archives from foreign Plugins:
    set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.xmltoolkit\lib\sapxmltoolkit.jar
    set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.logging\lib\logging.jar
    set CLASS_PATH=%CLASS_PATH%;..\com.sap.tc.jarm\lib\jARM.jar
    rem The recommended value for maximum heap size for the JVM to run DTR Commandline client is 256M or higher.
    rem You can change the settings based on system resources available.
    set VM_PARAMS=-Xmx256m
    rem (3) Run DTR Commandline Shell:
    rem -
    java %VM_PARAMS% -classpath %CLASS_PATH% %DEFAULT_PROPERTIES% com.tssap.dtr.client.commandline.DTRShell %*
    ===================
    I get an error saying:
    <i><b>Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/tc/logging/Lo
    cation
            at com.tssap.dtr.client.commandline.DTRShell.<clinit>(DTRShell.java:21)</b></i>
    Please guide......
    Awaiting Reply.
    Thanks & WArm Regards,
    Ritu
    Message was edited by:
            Ritu  Hunjan

    Hello Ritu,
    the problem is probably in these lines:
    rem Archives from foreign Plugins:
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkitlibsapxmltoolkit.jar
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.loggingliblogging.jar
    set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarmlibjARM.jar
    For a NW04s studio these paths are not correct, the plugin directories have some version suffix.
    rem Archives from foreign Plugins:
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkit_2.0.0libsapxmltoolkit.jar
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.logging_2.0.0liblogging.jar
    set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarm_2.0.0libjARM.jar
    Please check the folder names in the /eclipse/plugins/ directory to verify that this is correct for your installation.
    Regards,
    Marc

  • DB Adapter JCA-12563, XSD Resolution problem

    Hi,
    I am using Oracle SOA Suit, 11.1.1.4 and I am getting error in my db adapter.
    Below is the SOA adapter logs.
    This is intermittent issue, and occurs If i test the process for some time. After reeploying the service, same does not happen for some time but reoccurs after some good amount of testing.
    Can anybody help me with this issue?
    [2011-07-23T14:48:31.398+01:00] [managed1_metbsoa2] [ERROR] [] [oracle.soa.adapter] [tid: orabpel.engine.pool-5.thread-26] [userId: <anonymous>] [ecid: 16acbfc99351d211:2a7cdad1:13156bb951c:-8000-0000000000118eab,0:1:100392924] [APP: soa-infra] JCABinding=> NotificationService:DBA_GetConfigurationDetail [ DBA_GetConfigurationDetail_ptt::DBA_GetConfigurationDetailSelect(DBA_GetConfigurationDetailSelect_inputParameters,TConfigurationCollection) ] Could not invoke operation 'DBA_GetConfigurationDetailSelect' against the 'Database Adapter' due to: [[
    BINDING.JCA-12563
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.db.DBReadInteractionSpec due to: XSD Resolution problem.
    XSD Resolution problem.
    Unable to load Translation schemas from for http://xmlns.oracle.com/pcbpel/adapter/db/top/DBA_GetConfigurationDetail due to:
    Please make sure all used XML schemas are imported/included correctly.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.

    I am also observing the similar issue , when db adapter is called getting the error
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'ObjectVersionNumber' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.db.DBPureSQLInteractionSpec due to: XSD Resolution problem. XSD Resolution problem. Unable to load Translation schemas from for http://xmlns.oracle.com/pcbpel/adapter/db/ObjectVersionNumber due to: Global element declaration/definition of name '{http://xmlns.oracle.com/apps/cac/soaprovider/plsql/jtf_tasks_pub/create_task/}InputParameters' are duplicated at the following locations: oramds:/apps/crm/services/IntegratedSoaGateway/APPS_ISG_CREATE_TASK_JTF_TASKS_PUB-24CREATE_TASK.xsd [line#: 3] http://civiceb.mfltest.co.uk/webservices/SOAProvider/plsql/jtf_tasks_pub/APPS_ISG_CREATE_TASK_JTF_TASKS_PUB-24CREATE_TASK.xsd [line#: 1] There are at least two of them looking different: oramds:/apps/crm/services/IntegratedSoaGateway/APPS_ISG_CREATE_TASK_JTF_TASKS_PUB-24CREATE_TASK.xsd [difference starting at line#:79] http://civiceb.mfltest.co.uk/webservices/SOAProvider/plsql/jtf_tasks_pub/APPS_ISG_CREATE_TASK_JTF_TASKS_PUB-24CREATE_TASK.xsd [difference starting at line#:1] Please make sure all used XML schemas are imported/included correctly. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    There is a retry logic in a composite and after 2 or 3 retries this error does not comes, Its an intermittent issue.
    Is anyone able to find the resolution for this issue?.

  • XSD Loading problem

    I got this error from bpel console .. Can any one please update on this.. Why this this error should occur?.
    <messages><input><InvokePlanningOrderRoadshowProducerInputVariable><part name="PlanningOrderRequest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><PlanningOrderRequest xmlns:ns0="http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder" xmlns="http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder">
    <ns0:PlanningOrderHeader>
    <ns0:OrderId>10215568</ns0:OrderId>
    <ns0:BookingId/>
    <ns0:OrderType>Standard</ns0:OrderType>
    <ns0:CustomerName>MRS JUNE OCKWELL</ns0:CustomerName>
    <ns0:ClientAccountId>EMP</ns0:ClientAccountId>
    <ns0:ClientPreAdviceNumber/>
    <ns0:Title/>
    <ns0:ClientOrderNumber>W3221000-36</ns0:ClientOrderNumber>
    <ns0:Latitude>53.526969</ns0:Latitude>
    <ns0:Longitude>-2.657221</ns0:Longitude>
    <ns0:Street/>
    <ns0:HouseNumber>8 Bentinck Street</ns0:HouseNumber>
    <ns0:Postcode>WN3 6RB</ns0:Postcode>
    <ns0:Town>WIGAN</ns0:Town>
    <ns0:Status/>
    <ns0:PhoneCallRequired>Y</ns0:PhoneCallRequired>
    <ns0:Phone1>01942202596</ns0:Phone1>
    <ns0:Phone2>07584651731</ns0:Phone2>
    <ns0:SlotPeriodStart/>
    <ns0:SlotPeriodEnd/>
    <ns0:SlotLength/>
    <ns0:StopDuration/>
    <ns0:PlanningOrderLines>
    <ns0:PlanningOrderLine>
    <ns0:OrderLineId>443405</ns0:OrderLineId>
    <ns0:OrderId>10215568</ns0:OrderId>
    <ns0:ItemNumber>EMP-TC750</ns0:ItemNumber>
    <ns0:ItemDescription>RICHMOND KING BED</ns0:ItemDescription>
    <ns0:NoOfPieces>03</ns0:NoOfPieces>
    <ns0:ServiceString>01000</ns0:ServiceString>
    <ns0:ShipsetId>01</ns0:ShipsetId>
    <ns0:ClientUPI>009707300553D094</ns0:ClientUPI>
    <ns0:OrderLineType>Delivery</ns0:OrderLineType>
    <ns0:OrderLineNumber>01</ns0:OrderLineNumber>
    <ns0:SpecialInstruction>IF NOT IN GO TO NUMBER 6 FOR KEY</ns0:SpecialInstruction>
    <ns0:DeliveryVolume/>
    <ns0:DeliveryWeight/>
    <ns0:CollectionWeight/>
    <ns0:CollectionVolume/>
    <ns0:Status>LOADED</ns0:Status>
    </ns0:PlanningOrderLine>
    </ns0:PlanningOrderLines>
    </ns0:PlanningOrderHeader>
    </PlanningOrderRequest>
    </part></InvokePlanningOrderRoadshowProducerInputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>file:/SOA2M01/app/oracle/product/10.1.3/bpel/domains/operations/tmp/.bpel_PlanningOrder_1.0_06bcbd311b9a0d44d808edcbcee42770.tmp/PlanningOrderRoadShowProducer.wsdl [ Produce_Message_ptt::Produce_Message(PlanningOrderRequest) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec due to: XSD Loading problem.
    Unable to load Translation schemas from for http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder due to: XSD Location problem.
    No XSD (XML Schema) found for target namespace http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder and input element PlanningOrderRequest
    Please make sure the WSDL message points to a valid type.
    Please make sure all used XML schemas are imported/included correctly.
    ; nested exception is:
    ORABPEL-12537
    XSD Loading problem.
    Unable to load Translation schemas from for http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder due to: XSD Location problem.
    No XSD (XML Schema) found for target namespace http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder and input element PlanningOrderRequest
    Please make sure the WSDL message points to a valid type.
    Please make sure all used XML schemas are imported/included correctly.
    ; nested exception is:
    org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec due to: XSD Loading problem.
    Unable to load Translation schemas from for http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder due to: XSD Location problem.
    No XSD (XML Schema) found for target namespace http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder and input element PlanningOrderRequest
    Please make sure the WSDL message points to a valid type.
    Please make sure all used XML schemas are imported/included correctly.
    ; nested exception is:
    ORABPEL-12537
    XSD Loading problem.
    Unable to load Translation schemas from for http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder due to: XSD Location problem.
    No XSD (XML Schema) found for target namespace http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder and input element PlanningOrderRequest
    Please make sure the WSDL message points to a valid type.
    Please make sure all used XML schemas are imported/included correctly.
    </summary>
    </part><part name="detail"><detail>org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec due to: XSD Loading problem.
    Unable to load Translation schemas from for http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder due to: XSD Location problem.
    No XSD (XML Schema) found for target namespace http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder and input element PlanningOrderRequest
    Please make sure the WSDL message points to a valid type.
    Please make sure all used XML schemas are imported/included correctly.
    ; nested exception is:
    ORABPEL-12537
    XSD Loading problem.
    Unable to load Translation schemas from for http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder due to: XSD Location problem.
    No XSD (XML Schema) found for target namespace http://xmlns.hdnl.com/EnterpriseObject/Core/PlanningOrder and input element PlanningOrderRequest
    Please make sure the WSDL message points to a valid type.
    Please make sure all used XML schemas are imported/included correctly.
    </detail>
    </part></bindingFault></fault></messages>

    You remove xmlns:ns0 attribute from PlanningOrderRequest and the prefix ns0: from xsd tags. When you declare xmlns:ns0 means it is looking for that ns0 namespace in the project directory or oracle server global directory.

  • What's this?--Exception creating DataSource: org.hsql.jdbcDriver

    How to register the MS-SQL Server2000 DataSource in Tomcat4.04?
    Hi friends,
         I only have the MS SQL Server 2000 Database,and prog with jsp and Tomcat.
    Since the MS issue their JDBC Driver for SQL Server,I always use "DriverManager"
    to get the database connection,
    eg:
         Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://server1:1433","username","password");
    Now I want to use "DataSource" to get connection in my prog,and I know it is necessary to register the DataSouce with JNDI in Tomcat before I can use it.
    But how to register and use the SQL Server DataSource in Tomcat4.04? I had tried some times and all failed,tomcat throws a exception like this:"javax.servlet.ServletException: Exception creating DataSource: org.hsql.jdbcDriver"
    what is "org.hsql.jdbcDriver"? may be it is tomcat's build in,but how can make my sql server driver work?
         Any Commnet Will Be Appreicate!
    ----Below is my fail trail when try to config the Tomcat--------------------
    Fellow the Tomcat's document,I modify the
    "$CATALINA_HOME/conf/server.xml" like this.
    <Context path="/MySite" docBase ="MySite" debug = "0" privileged = "true">
    <Resource name="jdbc/pubsDb" auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/pubsDb">
    <parameter>
              <name>user</name>
              <value>LJS</value>
         </parameter>
         <parameter>
              <name>password</name>
              <value>121212</value>
         </parameter>
    <parameter>
              <name>driverClassName</name>
    <value>com.microsoft.jdbcx.sqlserver.SQLServerDriver</value>
    </parameter>
    <parameter>
    <name>driverName</name>
    <value>jdbc:microsoft:sqlserver://localhost:1433/pubs</value>
    </parameter>
    </ResourceParams>     
    </Context>
    PS: the MSSQL Sever2000 has installed and had a user named "LJS" which password is 121212
    and default database is "pubs".
    Then,I modified the $CATALINA_HOME/webapps/MySite/WEB-INF/web.xml like this
         <resource-ref>
              <description>
                   Resource reference to a factory for java.sql.Connection
                   instances that may be used for talking to a particular
                   database that is configured in the server.xml file.
              </description>
              <res-ref-name>
                   jdbc/pubsDB
              </res-ref-name>
              <res-type>
                   javax.sql.DataSource
              </res-type>
              <res-auth>
                   Container
              </res-auth>
         </resource-ref>     
    finally I code a DB.jsp like this
    <%@ page content="text/html"%>
    <%@ page import="java.sql.*,javax.sql.*,java.naming.*"%>
    <%
         Context ctx = new InitialContext();
         DataSource ds = (DataSource)(new InitialContext().lookup("java:comp/env/jdbc/pubsDB"));
    %>
         after all done, I launch the Tomcat 4.0 and type "http://localhost:8080/MySite/DS.jsp" in
    my browser.
         then Tomcat throw exception like this:
    javax.servlet.ServletException: Exception creating DataSource: org.hsql.jdbcDriver
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
         at org.apache.jsp.DS$jsp._jspService(DS$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)
    root cause
    javax.naming.NamingException: Exception creating DataSource: org.hsql.jdbcDriver
         at
    org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexDataSourceFactory.java:233)
         at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:165)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
         at org.apache.jsp.DS$jsp._jspService(DS$jsp.java:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)

    Hi,
    don't know if you've already found a solution to this problem. Anyway, I had the same problem and the cause turned out to be a non-valid server.xml file.
    Here is my (working) server.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- Example Server Configuration File --><!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other --><!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    --><Server debug="0" name="TestServer" port="8005" shutdown="SHUTDOWN">
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Tomcat-Standalone">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps:
    * Download and install JSSE 1.0.2 or later, and put the JAR files
    into "$JAVA_HOME/jre/lib/ext".
    * Edit "$JAVA_HOME/jre/lib/security/java.security" and add
    security.provider.2=com.sun.net.ssl.internal.ssl.Provider
    * Execute: keytool -genkey -alias tomcat -keyalg RSA
    with a password value of "changeit".
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector acceptCount="10" className="org.apache.catalina.connector.http.HttpConnector" connectionTimeout="60000" debug="0" enableLookups="true" maxProcessors="75" minProcessors="5" port="8080" redirectPort="8443"/>
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    <!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
         acceptCount="10" debug="0" scheme="https" secure="true">
    <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
    clientAuth="false" protocol="TLS"/>
    </Connector>
    -->
    <!-- Define a Proxied HTTP/1.1 Connector on port 8081 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8081" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="10" debug="0" connectionTimeout="60000"
    proxyPort="80"/>
    -->
    <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -->
    <!--
    <Connector className="org.apache.catalina.connector.http10.HttpConnector"
    port="8082" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0"/>
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine debug="0" defaultHost="localhost" name="Standalone">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.3
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <Realm className="org.apache.catalina.realm.MemoryRealm"/>
    <!-- Define the default virtual host -->
    <Host appBase="webapps" debug="0" name="localhost" unpackWARs="true">
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn"
    debug="0"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="common" prefix="localhost_access_log." suffix=".txt"/>
    <!-- Logger shared by all Contexts related to this virtual host. By
    default (when using FileLogger), log files are created in the "logs"
    directory relative to $CATALINA_HOME. If you wish, you can specify
    a different directory with the "directory" attribute. Specify either a
    relative (to $CATALINA_HOME) or absolute path to the desired
    directory.-->
    <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/>
    <!-- Define properties for each web application. This is only needed
    if you want to set non-default properties, or have web application
    document roots in places other than the virtual host's appBase
    directory. -->
    <!-- Tomcat Root Context -->
    <!--
    <Context path="" docBase="ROOT" debug="0"/>
    -->
    <Context docBase="D:\Program Files\IBM\WebSphere Studio\workspaces\Test\StudentWEB\Web Content"
                   path="/StudentWEB"
                   reloadable="true"
                   source="com.ibm.etools.webtools.server:StudentWEB">
                   <Logger className="org.apache.catalina.logger.FileLogger"
         prefix="localhost_DBTest_log." suffix=".txt"
         timestamp="true"/>
                   <Resource name="jdbc/TestDB"
              auth="Container"
    type="javax.sql.DataSource"/>
                   <ResourceParams name="jdbc/TestDB">
                   <parameter>
                        <name>factory</name>
                        <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                   </parameter>
                   <!-- Maximum number of dB connections in pool. Make sure you
              configure your mysqld max_connections large enough to handle
              all of your db connections. Set to 0 for no limit.
              -->
                   <parameter>
                        <name>maxActive</name>
                        <value>100</value>
                   </parameter>
                   <!-- Maximum number of idle dB connections to retain in pool.
              Set to 0 for no limit.
              -->
                   <parameter>
                        <name>maxIdle</name>
                        <value>30</value>
                   </parameter>
                   <!-- Maximum time to wait for a dB connection to become available
              in ms, in this example 10 seconds. An Exception is thrown if
              this timeout is exceeded. Set to -1 to wait indefinitely.
              -->
                   <parameter>
                        <name>maxWait</name>
                        <value>10000</value>
                   </parameter>
                   <!-- MySQL dB username and password for dB connections -->
                   <parameter>
                        <name>username</name>
                        <value>admin</value>
                   </parameter>
                   <parameter>
                        <name>password</name>
                        <value>admin</value>
                   </parameter>
                   <!-- Class name for mm.mysql JDBC driver -->
                   <parameter>
                        <name>driverClassName</name>
                        <value>org.gjt.mm.mysql.Driver</value>
                   </parameter>
                   <!-- The JDBC connection url for connecting to your MySQL dB.
              The autoReconnect=true argument to the url makes sure that the
              mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
              connection. mysqld by default closes idle connections after 8 hours.
              -->
                   <parameter>
                        <name>url</name>
                        <value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
                   </parameter>
                   </ResourceParams>
         </Context>
    </Host>
    </Engine>
    </Service>
    <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
    as its servlet container. Please read the README.txt file coming with
    the WebApp Module distribution on how to build it.
    (Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
    To configure the Apache side, you must ensure that you have the
    "ServerName" and "Port" directives defined in "httpd.conf". Then,
    lines like these to the bottom of your "httpd.conf" file:
    LoadModule webapp_module libexec/mod_webapp.so
    WebAppConnection warpConnection warp localhost:8008
    WebAppDeploy examples warpConnection /examples/
    The next time you restart Apache (after restarting Tomcat, if needed)
    the connection will be established, and all applications you make
    visible via "WebAppDeploy" directives can be accessed through Apache.
    -->
    <!-- Define an Apache-Connector Service -->
    <Service name="Tomcat-Apache">
    <Connector acceptCount="10" className="org.apache.catalina.connector.warp.WarpConnector" debug="0" enableLookups="true" maxProcessors="75" minProcessors="5" port="8008"/>
    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
    <Engine appBase="webapps" className="org.apache.catalina.connector.warp.WarpEngine" debug="0" name="Apache">
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="apache_log." suffix=".txt" timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <Realm className="org.apache.catalina.realm.MemoryRealm"/>
    </Engine>
    </Service>
    </Server>
    My web.xml looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    <servlet>
         <servlet-name>TestServlet</servlet-name>
         <display-name>TestServlet</display-name>
         <servlet-class>TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>TestServlet</servlet-name>
         <url-pattern>/TestServlet</url-pattern>
    </servlet-mapping>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    You can of course leave out the comments if you want...
    Please let me know if this works on [email protected].
    Kind regards,
    Johan

Maybe you are looking for

  • What you need to know about British Telecom Total ...

    I don't want to waste time on this forum. I've changed to Virgin - and thank God ! Here's the text of the last letter I wrote to Customer Service Director, BT plc, Correspondence Centre, Durham, DH98 1BT.  I got the briefest of replies, which dealt w

  • Accessing custom classes from JSP

    Hi Guys, I am having some problems accessing my custom classes from my JSP. 1) I've created a very simple class, SimpleCountingBean that just has accessors for an int. The class is in the package "SimpleCountingBean". I compiled this class locally on

  • How to integrate google.map.places.AutoComplete widget in sap.m.Input field?

    Hello Folks,                  i have requirement of auto-search in ui5 project.For that i have used sap.m.input control and register in controller like below: onInit : function() {   var g = this.getView().getController(); /*Input field defined in vi

  • Can't get flash to play in DW

    Hello, I'm trying to get a flash file .swf to play in dreamweaver. i have a few other flash video files that i've embedded in dw and all work fine, but for the life of me i can't get the swf to preview in dreamweaver. it will preview if i view in fir

  • Adobe photoshop elements 8  downoad

    My old computer with Adobe Photoshop Elements 8 crashed - where can I download the old software version since I don't believe my license key will work with the newest version? Thank you