JAXB,xsd,xml problems

Hello all!
I am using JAXB to create xsd files and xml(by marshalling) from my Java beans.
My problems is a bit complicated to explain so I'll do my best.
My beans look like this:
@XmlRootElement(name = "MerchantDetailsRequest")
@XmlType(name = "MerchantDetailsRequest")
public class MerchantDetailsRequest {
    private String merchantName;
    private Long merchantNumber;
    private Long merchantIdentifier;
    private Long status;
    private Long citySymbol;
    @XmlElement(required = false)
    public String getMerchantName() {
        return merchantName;
// More getters and setters, equals & hashcode
}The xsd schema I create looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="MerchantDetailsRequest" type="MerchantDetailsRequest"/>
  <xs:element name="MerchantDetailsResponse" type="MerchantDetailsResponse"/>
  <xs:complexType name="MerchantDetailsRequest">
    <xs:sequence>
      <xs:element name="citySymbol" type="xs:long" minOccurs="0"/>
      <xs:element name="merchantIdentifier" type="xs:long" minOccurs="0"/>
      <xs:element name="merchantName" type="xs:string" minOccurs="0"/>
      <xs:element name="merchantNumber" type="xs:long" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="MerchantDetailsResponse">
    <xs:sequence>
      <xs:element name="address" type="xs:string"/>
      <xs:element name="openDate" type="xs:dateTime"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>Pay attention to the:
<xs:element name="MerchantDetailsResponse" type="MerchantDetailsResponse"/>appearing twice(once for each element), these are required by our 3rd party(some other guys).
The xml that is created by marshalling looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MerchantDetailsRequest>
    <citySymbol>4</citySymbol>
    <merchantIdentifier>9090</merchantIdentifier>
    <merchantName>Marco Van Basten</merchantName>
    <merchantNumber>9</merchantNumber>
</MerchantDetailsRequest>
Now, here comes the problem:
I got a request (from the 3rd party guys) to add a namespace to the XML file.
So I found out, that if I add the 'namespace="<some namespace>" ' attribute to my XmlRootElement annotation (e.g- @XmlRootElement(name = "MerchantDetailsRequest",namespace = "http://www.myaddress.com/myPath/merchant-details")
), then I get the wanted xml:
<ns2:MerchantDetailsRequest xmlns:ns2="http://www.isracard.co.il/cheques/merchant-details">
    <citySymbol>4</citySymbol>
    <merchantIdentifier>9090</merchantIdentifier>
    <merchantName>Marco Van Basten</merchantName>
    <merchantNumber>9</merchantNumber>
</ns2:MerchantDetailsRequest>
BUT, my xsd is now missing the 'element' required fields I discussed earlier. (instead they appear in another xsd file, only the element def)
SO, I read somewhere, that if I create a package-info.java file, with the annotations:
@XmlSchema(namespace="http://www.mySite.com/myPath/MerchantDetailsRequest",elementFormDefault= XmlNsForm.UNQUALIFIED)
that it will take care of this. but instead, when compiling, I get noxsd file at all!!!
I need a simple solution to a simple problem... adding a namespace to my outgoing xml files without changing the sxd's.
If ayone can help, it will be much appreciated!!
Thanks,
Dave
Message was edited by:
Just_Dave

I'm sorry!! but after talking with the 3rd party guys, I understood, that everythingis ok!
What I asked here is not a problem at all.
I have another problem(simple this time...) but it will get a thread of it's oun.

Similar Messages

  • Jaxb xsd:any problem

    I am not sure how to set the namespace (please see schema snippet below). Do I do this with setAny(java.lang.Object)? What kind of object do I pass to setAny() because it is trying to class cast it to JAXBObject. How do I create an instance of JAXBObject?
    I have in my xsd:
    <xsd:element name="order">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:any namespace="urn:abc.com" minOccurs="0" maxOccurs="1"/>
                        <xsd:element ref="a"/>
                        <xsd:element ref="b"/>
                   </xsd:sequence>
                   <xsd:attribute name="locale" type="xsd:string" use="optional"/>
                   <xsd:attribute name="sourceid" type="xsd:string" use="optional"/>
              </xsd:complexType>
         </xsd:element>

    Refer to section
    E.2 Not Required XML Schema
    concepts
    "A JAXB implementation is not required to support the following XML Schema
    concepts for this version of the specification. A JAXB implementation may
    choose to support these features in an implementation dependent manner."
    E.2.2 Not supported while manipulating the XML
    content
    Schema component: wildcard
    (any)
    how can i know if an xml element with xsi:nil="true" (unmarshal)
    and set xsi:nil="true" for an element (marshal) ?
    According to the JAXB 1.0 specification:
    If {nillable} is "true", the methods setNil() and isNil() are
    generated.

  • 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

  • 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?.

  • OpenTrans 2.1 .xsd import problem into PI 7.1

    Hello,
    While trying to import the latest version 2.1 of openTrans .xsd Files (I downloaded "openTRANS_2.1_german_all-in-one_package.zip") into PI 7.1 we fail. Error message while loading the file "opentrans_2_1.xsd" is:
    Unable to convert imported document to WSDL
    Reason:
    Unable to recognize document as valid XSDCheck selected category
    OpenTrans 1.0 we have already in use since several time, however there is a need for the latest version now.
    Has anybody managed to get openTrans 2.1 to work with PI 7.1? And if so - how?
    Thanks!
    Andreas

    Hello Andreas
    This error can occur if there is an element tag with the name XML, e.g.: <xsd:element name="xml">.  If the element name is something other than xml, e.g. <xsd:element name="test">, then the import should be ok.
    SAP does not allow the element name in an XSD to start with the prefix -   xml                                                                               
    This conforms to the xml schema standards set by W3C  i.e.  http://www.w3schools.com/xml/xml_elements.asp
    -> XML Naming Rules section.
    Also, check note #1255351 External Defintion - XSD Checks Problem
    Regards
    Mark

  • 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.

  • Converter XSD-XML  &  XML-XSD

    Hi,
    I am looking for a piece of code for
    a) creating an XML file by given an XSD schema
    b) creating an XSD file by given an XML document
    The given files are dynamically.
    The exported files can be good as possible.
    There are many discussions on internet, unfortunatelly without usefull code fragment.
    Is a simple converting of xsd->xml and xml->xsd a big problem?
    (Of course user needs to modify the converted file, so that it makes also semantically sense. )
    Thanks
    Aykut

    Originally posted by: alexm.xxx.yyy
    The Agent Controller is configured with Java 1.5 (I assume, the Window >
    Preferences is the place to do it.) Java 1.6 is not used in my Eclipse
    setup at all.
    Still, the "Java 1.5-" data collector is nowhere to be found.
    For now, I am using The Java Heap Analysis Tool (HAT), which provides
    the object allocation and retention stats, but getting TPTP to work
    would be a much more preferred choice.
    Thanks,
    Alex
    Asaf Yaffe wrote:
    > Alex,
    >> Asaf,
    >>
    >> Thank you for the response. For some reason, my profiler dialog only
    >> shows "Java Profiling - JRE 1.5 or newer..." option in the Monitor tab.
    >>
    >> Do I need to tweak something in my environment to get the JRE 1.5-
    >> entry in the list?
    >
    > Make sure that the Agent Controller (integrated or standalone, depending
    > on your configuration) is configured with a Java 1.5 or 1.4 JVM. If your
    > default environment (Eclipse) is using Java 1.6, then the "Java 1.5-"
    > data collector will not be available.
    >
    >
    >>
    >> Also, how can one get the object references in Java 1.5+?
    >>
    >
    > Sorry, but this capability is not currently supported in our Java 1.5+
    > collector.
    >
    > HTH,
    > Asaf
    >

  • IOError in IE but not in Firefox (possible crossdomain.xml problem)

    Yesterday, I hopefully debugged a problem that is occuring for our application in IE but not in Firefox.
    It has to do with accessing remote content from a separate domain.
    In every aspect it APPEARS to be a crossdomain.xml issue but the fact that this issue only arrises in IE is what has prompted me to post here.
    We have a solution in the works (bureaucratically speaking) but I want to double check here.
    Our application is on domain "a.domain".
    It access an xml file on "b.domain/xml/".
    And finally (this is the tricky part) it also accesses an xml file at "b.domain/forwardingPath/" which is actually forwarded to "c.domain/xml/".
    The crossdomain.xml is located at "b.domain/crossdomain.xml".
    The request for "b.domain/xml/anXMLFile.xml" works without any problem.
    The request for "b.domain/forwardingPath/anotherXMLFile.xml" succeeds in Firefox but not in IE (remember, the ACTUAL request is forwarded to "c.domain/xml/anotherXMLFile.xml").
    In IE I get an IOError.
    I believe we need an appropriate crossdomain.xml file also located at "c.domain/crossdomain.xml" and have put in that request.  What I want to confirm is whether this understanding is correct.  I am not a server-side person at all.  It's all elves and fairies to me.  And then finally, why the hell is this behavior inconsistent between IE and Firefox?  Is the Firefox version of flash player violating its own security standards?!
    I am cross-posting this at stack overflow.  http://stackoverflow.com/questions/7395931/ioerror-in-ie-but-not-in-firefox-possible-cross domain-xml-problem

    I've pinged our developers about this and here's what they have to say:
    "We did some work for the plugin around redirects andhence the correct behavior on Firefox.
    AFAIK, on IE we don't get notified of the redirect and can't participate in making security decisions during redirect scenarios. This behavior is out of our control.
    There is a workaround documented in the AS3docs here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/LoaderCont ext.html#checkPolicyFile
    Here is the pertinent paragraph:
    Be careful with checkPolicyFile if you are downloading anobject from a URL that may use server-side HTTP redirects. Policy files arealways retrieved from the corresponding initial URL that you specify inURLRequest.url. If the final object comes from a different URL because of HTTPredirects, then the initially downloaded policy files might not be applicableto the object's final URL, which is the URL that matters in security decisions.If you find yourself in this situation, you can examine the value ofLoaderInfo.url after you have received a ProgressEvent.PROGRESS orEvent.COMPLETE event, which tells you the object's final URL. Then call theSecurity.loadPolicyFile() method with a policy file URL based on the object'sfinal URL. Then poll the value of LoaderInfo.childAllowsParent until it becomes true."
    Chris

  • XSD Location Problem.

    Hi Gurus,
    After starting the node in a cluster environemnt, often receiving "Unable to load Translation schemas from for http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes due to: XSD Location problem.
    XSD Loading problem."
    This is mainly observed in BRM schemas, has anyone exprienced this? what shall be the workaround/solution other than restarting the container/application?
    We are using SOA 10.1.3.4 MLR 8 and Oracle AIA 2.4.
    Please help.

    The BRM schemas are present in the AIA Components which will be referred by the load balancer url in a clustered environment. However, if in any of the nodes, the url for AIA Components has the local node url instead of load balancer url, this issue occurs.
    Identify the node which is giving the issue (shutting down one node at a time and retrying the operation which gives the error). In the node which has the issue, try doing a search on AIA components to find out if there is any reference using local node url instead of load balancer.
    If you find any, replace with the load balancer url. I had faced a similar issue and I was able to resolve it as I have mentioned above.
    Cheers,
    - AR

  • Web.xml problem in Enterprise Manager 10g

    I got an error while deploying to Enterprise Manager 10g
    My platform: Windows XP
    OC4J 9.0.4
    Enterprise Manager 10g
    And I even have the web.xml in the correct directory. i.e
    cpd.ear
    ./META-INF/application.xml
    ./cpd-ejb.jar/WEB-INF/web.xml
    ./cpd-webapp.war/WEB-INF/web.xml
    ./cpd-webapp.war/WEB-INF/classes
    The error I get while deploying on a Enterprise Manager 10g is:
    Invalid J2EE application file specified - Jar file: :\WINNT\TEMP\jar47575.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
    Incidently the *.ear file built by my fellow's machine is deploying perfectly. I've compared the directories n useful files of both the *.ears down to the very last bit n they are the same.
    I can imagine that guys with only high IQ can solve this mystery

    The above message is a duplicate of another message by Sim.
    web.xml problem in Enterprise Manager 10g

  • Log-Configuration.xml Problems

    Hi, I have been trying to use log-configuration.xml but it seems like i cannot get it to work at all.
    From what i understand, once i deploy my application, i should be able to edit the config via the Visual Administrator. However, after i deploy my app, i am still unable to see it with visual administrator. furthermore, i cannot find the file anywhere on the sever. Also, my settings are not reflected in the behaviour of the defaultTrace.
    Am i suppose to be able to find the "log-configuration.xml" file in the server if i have done the correct steps? If so, what are the likely mistakes i have made? I am at my wits end, anyone can help me?
    Just to add, this post seems to describe exactly my situation except i have no idea how to "manually" correct it... log-configuration.xml outside META-INF due to NWDS
    TIA!
    Ah Beng
    Message was edited by: ah beng

    Hi Rajeshkr,
    Sorry, i am kinda new to web dynpro and sap in general so i may need you to be more explicit
    I am not quite sure what this part means or how to check "...has been deployed successfully in the deploy node of the visual Node and check for the Log Configuratior Node and check for your deployed application...."
    What i did do is go to the server to and search the entire directory structure for the log-configuration.xml but could not find it. Also, the config cannot be seen via the log-configurator in visual administration engine which its supposed too i think. and lastly the behavoiur i set in the log-configuration.xml is not reflected in the defaultTrace
    Then i saw this post so i went to check the EAR file in my workspace and found that it was just like Manik described.
    Maybe u could check this link where i posted more about my problem Log-Configuration.xml Problems
    I would love to award points if it helps

  • PROBLEMS JAXB and XML-schema

    Hello,
    I think my problem is not directly related to JAXB but to my understanding of schema-files.
    I defined a schema like that:
    <xsd:complexType name="BSR">
    <xsd:sequence>
    <xsd:element name="VERB" type="VERB"/>
    <xsd:element name="NOUN" type="NOUN"/>
    <xsd:element name="REVISION" type="REVISION"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="VERB">
    <xsd:simpleContent>
    <xsd:extension base="xsd:string">
    <xsd:attribute name="value" fixed="ACKNOWLEDGE"/>
    </xsd:extension>
    </xsd:simpleContent>
    </xsd:complexType>
    <xsd:complexType name="NOUN">
    <xsd:simpleContent>
    <xsd:extension base="xsd:string">
    <xsd:attribute name="value" fixed="PO"/>
    </xsd:extension>
    </xsd:simpleContent>
    </xsd:complexType>
    <xsd:complexType name="REVISION">
    <xsd:simpleContent>
    <xsd:extension base="xsd:string">
    <xsd:attribute name="value" fixed="003"/>
    </xsd:extension>
    </xsd:simpleContent>
    </xsd:complexType>
    When I tried to compile that schema via JAXB I got the following error:
    [ERROR] A property with the same name "value" is generated from more than one schema component line 31 of ACKNOWLEDGE_PO_003.xsd
    [ERROR] (Relevant to above error) another one is generated from this schema component. line 14 of datatypes.xsd
    [...] and so on!
    How do I manage to use that attribute "value" in several elements???
    Is there a possibility to declare the attribute once an refer to it, like to an type?
    Please help, I could not find anythig in docu.
    thanX chris

    hallo again,
    i tried that, but the point is, if i remove the declaration of the attribute called "value" it works fine.
    <xsd:element name="BSR">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="VERB"/>
                        <xsd:element ref="NOUN"/>
                        <xsd:element ref="REVISION"/>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="VERB">
              <xsd:complexType>
                   <xsd:simpleContent>
                        <xsd:extension base="xsd:string">
                        </xsd:extension>
                   </xsd:simpleContent>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="NOUN">
              <xsd:complexType>
                   <xsd:simpleContent>
                        <xsd:extension base="xsd:string">
                        </xsd:extension>
                   </xsd:simpleContent>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="REVISION">
              <xsd:complexType>
                   <xsd:simpleContent>
                        <xsd:extension base="xsd:string">
                        </xsd:extension>
                   </xsd:simpleContent>
              </xsd:complexType>
         </xsd:element>
    I can compile it that way! but i need these attributes called "value" as you see them above....
    so i think i worked out, that the problem is not in the "BSR"-tag, but the 3-times occurrence of the attribute "value".

  • JAXB javax.xml.bind.UnmarshalException: Unexpected end of element

    I'm getting the following UnmarshalException when I try to run Unmarshaller.unmarshal from the command line but not when I run it in WSAD:
    2006-04-20 16:11:54,680 REPOST ERROR [main] (RestrictedListResponseConsumer.java:111) javax.xml.bind.UnmarshalException: Unexpected end of element {}:origin_country
            at com.b.watchdog.jaxb.generated.response.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:580)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:139)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:136)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.unexpectedLeaveElement(AbstractUnmarshallingEventHandlerImpl.java:153)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.leaveElement(AbstractUnmarshallingEventHandlerImpl.java:63)
            at com.b.watchdog.jaxb.generated.response.impl.MessageHeaderTypeImpl$Unmarshaller.leaveElement(MessageHeaderTypeImpl.java:245)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.SAXUnmarshallerHandlerImpl.endElement(SAXUnmarshallerHandlerImpl.java:141)
            at org.iso_relax.verifier.impl.ForkContentHandler.endElement(ForkContentHandler.java:81)
            at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:145)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:163)
            at com.b.watchdog.RestrictedListResponseConsumer.consumeResponse(RestrictedListResponseConsumer.java:81)
            at com.b.watchdog.RestrictedListResponseConsumer.consumeResponses(RestrictedListResponseConsumer.java:52)
            at com.b.watchdog.RestrictedListInterfaceManager.exchangeData(RestrictedListInterfaceManager.java:307)
            at com.b.watchdog.RestrictedListInterfaceManager.main(RestrictedListInterfaceManager.java:282)My message is:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <list_update_response xsi:schemaLocation="http://www.ab.com list_update_response.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ab.com">
         <response_info>
              <message_header>
                   <origin_country>FR</origin_country>
                   <destination_country>US</destination_country>
                   <message_datetime>2006-04-18T19:02:00.000+00:00</message_datetime>
              </message_header>
         </response_info>
         <success>
              <request_info>
                   <message_header>
                        <origin_country>US</origin_country>
                        <destination_country>FR</destination_country>
                        <message_datetime>2006-04-20T18:40:31.000+00:00</message_datetime>
                   </message_header>
              </request_info>
         </success>
    </list_update_response>My XSDs are:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ab.com" xmlns="http://www.ab.com">
         <xsd:include schemaLocation="list_update_common.xsd" />
         <xsd:element name="description" type="positive_length_token" />
         <xsd:element name="error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element minOccurs="0" ref="request_info" />
                        <xsd:element ref="errors" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="errors">
              <xsd:complexType>
                   <xsd:choice maxOccurs="unbounded" minOccurs="1">
                        <xsd:element ref="validation_error" />
                        <xsd:element ref="general_logical_error" />
                        <xsd:element ref="item_logical_error" />
                   </xsd:choice>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="general_logical_error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="description" />
                        <xsd:element minOccurs="0" ref="line_number" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="item_logical_error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="description" />
                        <xsd:element minOccurs="0" ref="line_number" />
                   </xsd:sequence>
                   <xsd:attribute name="item_id" type="item_id" use="required" />
                   <xsd:attribute name="item_creation_country" type="country_code" use="required" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="line_number" type="xsd:positiveInteger" />
         <xsd:element name="list_update_response">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="response_info" />
                        <xsd:choice>
                             <xsd:element ref="error" />
                             <xsd:element ref="success" />
                        </xsd:choice>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="response_info">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="message_header" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="success">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="request_info" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="validation_error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="description" />
                        <xsd:element ref="line_number" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
    </xsd:schema>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ab.com" xmlns="http://www.ab.com">
         <xsd:simpleType name="country_code">
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="[A-Z]{2}" />
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:element name="destination_country" type="country_code" />
         <xsd:simpleType name="item_id">
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="[A-Z0-9]{12}" />
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:element name="message_datetime" type="utc_datetime" />
         <xsd:element name="message_header">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="origin_country" />
                        <xsd:element ref="destination_country" />
                        <xsd:element ref="message_datetime" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="origin_country" type="country_code" />
         <xsd:simpleType name="positive_length_token">
              <xsd:restriction base="xsd:token">
                   <xsd:minLength value="1" />
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:element name="request_info">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="message_header" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:simpleType name="utc_datetime">
              <xsd:restriction base="xsd:dateTime">
                   <xsd:pattern value=".*(\+00\:00|\-00\:00|Z)" />
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:schema>Any thoughts?
    Thanks.
    - Luke

    I fixed the problem.

  • XML problem with getPayload

    Hi,
    I have come across an obscure but annoying xml bug in the bpel (collaxa?) implementation. I need to use xs:extension elements in the schema for the payload contents, which then of course requires a declaration of the xsi namespace. The payload is saved fine, and when I view the contents in the bpelconsole, it is there (as shown below). However, when I get the task and call getPayload, the xsi declaration is missing from the element, which then crashes JAXB.
    This is what is shown in the BPELConsole audit:
    <payload>
      <process-request xmlns="urn:ch.bedag.pef.iflow.process" user="ea91" process-name="Wohnadresse">
        <person xmlns="urn:ch.bedag.pef.iflow.core">
          <angestellter>
            <anstellung/>
            <wohnadresse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:AdresseSchweiz">
              <adresszusatz>c/o Bedag Informatik</adresszusatz>
              <strasse>Gutenbergstrasse 1</strasse>
              <ort>Bern</ort>
              <plz>
                <plz>3000</plz>
              </plz>
            </wohnadresse>
          </angestellter>
          <name>Prince</name>
          <personalnummer>
            <personalnummer>111111</personalnummer>
          </personalnummer>
          <vorname>John</vorname>
        </person>
      </process-request>
    </payload>And this is what I get when I call getPayload:
    <process-request xmlns="urn:ch.bedag.pef.iflow.process" user="ea91" process-name="Wohnadresse">
      <person xmlns="urn:ch.bedag.pef.iflow.core">
        <angestellter>
          <anstellung/>
          <wohnadresse type="ns1:AdresseSchweiz">
            <adresszusatz>c/o Bedag Informatik</adresszusatz>
            <strasse>Gutenbergstrasse 1</strasse>
            <ort>Bern</ort>
            <plz>
              <plz>3000</plz>
            </plz>
          </wohnadresse>
        </angestellter>
        <name>Prince</name>
        <personalnummer>
          <personalnummer>111111</personalnummer>
        </personalnummer>
        <vorname>John</vorname>
      </person>
    </process-request>The only difference is in the wohnadresse element, which has the correct xsi:type attribute, but the xsi: namespace declaration is missing.
    Any chance of fixing this? Otherwise I will have to convert the payload to a string, fix the problem, back to xml and then pass it off to jaxb. Very irritating...
    I don't know if it will help, but I did see the same problem when I tried converting a string to xml using a DOMResult and a Transformer. I switched to DOMParser and and InputSource and the problem went away.
    Thanks
    John

    Hi
    After a lot of experimenting, it looks like there are two problems:
    1. If I call IDeliveryService.post with a NormalizedMessage constructed with a String, bpel is not completely reliable with the namespaces (it converts them all to default namespaces defined on particular elements, but it missed the namespace within the xsi:type declaration). I fixed this by using DOMUtil to convert the string to a CubeDOMElement, which is then correctly converted to the input variable.
    2. The CubeDOMElement also makes mistakes if you use Element.getElementsByTagNameNS(ns, name). Even when all the information was there, the method removed one of the namespace declarations (actually a duplicate, but necessary because the prefix was used in the document).
    I got round this by calling the CubeDOMElement method getContentAsXml, which bizarrely returns the full xml of the child nodes, with all namespaces correctly defined and used, and then converting the xml string into a normal org.w3c.Element.
    It looks like a few more test cases are needed for the collaxa xml implementation...
    Best wishes
    John

  • XML Problems Oracle9i Enterprise Edition Release 9.2.0.7.0

    Can anyone help me with my problem!
    I am trying to import xml file into xmltype table (this is working fine), but then I want to extract data from this xmltype table but I get null from my request.
    Please I need help. I have tried some examples and it is working, so I think that I am doing something wrong or the file that I have imported is not O.K.
    Pleeeeeease help me.
    I have this XML file:
    <?xml version="1.0" ?>
    <TecKomBS xmlns="http://www.bsi.si" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bsi.si http://www.bsi.si/_data/tecajnice/TecKomBS.xsd">
    <tecajnica datum="2007-01-17" veljavnost="2007-01-18">
    <tecaj oznaka="GBP" sifra="826">
    <nakupni>0.65784</nakupni>
    <prodajni>0.65586</prodajni>
    </tecaj>
    <tecaj oznaka="CZK" sifra="203">
    <nakupni>27.910</nakupni>
    <prodajni>27.826</prodajni>
    </tecaj>
    <tecaj oznaka="NOK" sifra="578">
    <nakupni>8.3605</nakupni>
    <prodajni>8.3355</prodajni>
    </tecaj>
    </tecajnica>
    </TecKomBS>
    I have loaded this file into xmltype table:
    CREATE TABLE xml_tab (
    id NUMBER(10),
    filename VARCHAR2(100),
    xml XMLTYPE)
    For loading I have uset load_xml procedure that I've got from help file.
    And it works fine. So I have xmltype table with xml data.
    Now I need to get data from this table and I have tried this:
    SQL> select extract(xml, '/TecKomBS/tecajnica') neki from xml_tab;
    NEKI()
    SQL>
    (and I get nothing)
    and this
    SQL> select value(p)
    2 from xml_tab x
    3 , table(XMLSequence(
    4 extract(x.xml, '/TecKomBS/tecajnica/tecaj'))) p;
    no rows selected
    SQL>
    (and I got nothing)
    I would like to get data from "tecaj (sifra)" and data from "nakupni" or "prodajni" ?
    Can any one tell me what I am doing wrong, thanks?
    For help this is strusture file for xml file, if it helps
    <?xml version="1.0" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bsi.si" xmlns="http://www.bsi.si" elementFormDefault="qualified">
    <xsd:simpleType name="Tsif">
    <xsd:restriction base="xsd:string">
    <xsd:length value="3" />
    <xsd:pattern value="\d{3}" />
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="Tozn">
    <xsd:restriction base="xsd:string">
    <xsd:length value="3" />
    <xsd:pattern value="[A-Z]{3}" />
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:element name="TecKomBS">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="tecajnica" minOccurs="1" maxOccurs="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="tecaj" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="nakupni" type="xsd:decimal" />
    <xsd:element name="prodajni" type="xsd:decimal" />
    </xsd:sequence>
    <xsd:attribute name="oznaka" type="Tozn" use="required" />
    <xsd:attribute name="sifra" type="Tsif" use="required" />
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="datum" type="xsd:date" use="required" />
    <xsd:attribute name="veljavnost" type="xsd:date" use="required" />
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I think that the problem is with my XPath, can anyone help me with this example ?
    THANKS .....
    Message was edited by:
    user448268

    SQL>
    SQL> var xmltext varchar2(4000)
    SQL> --
    SQL> begin
      2    :xmltext :=
      3  '<?xml version="1.0" encoding="UTF-8"?>
      4  <TecKomBS xmlns="http://www.bsi.si" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bsi.si http://www.bsi.si
    /_data/tecajnice/TecKomBS.xsd">
      5     <tecajnica datum="2007-01-17" veljavnost="2007-01-18">
      6             <tecaj oznaka="GBP" sifra="826">
      7                     <nakupni>0.65784</nakupni>
      8                     <prodajni>0.65586</prodajni>
      9             </tecaj>
    10             <tecaj oznaka="CZK" sifra="203">
    11                     <nakupni>27.910</nakupni>
    12                     <prodajni>27.826</prodajni>
    13             </tecaj>
    14             <tecaj oznaka="NOK" sifra="578">
    15                     <nakupni>8.3605</nakupni>
    16                     <prodajni>8.3355</prodajni>
    17             </tecaj>
    18     </tecajnica>
    19  </TecKomBS>';
    20  end;
    21  /
    PL/SQL procedure successfully completed.
    SQL> column SIFRA format a20
    SQL> column NAKUPNI format a20
    SQL> column PRODAJNI format a20
    SQL> --
    SQL> select extractValue(value(t),'/tecaj/@sifra','xmlns="http://www.bsi.si" ') SIFRA,
      2         extractValue(value(t),'/tecaj/nakupni','xmlns="http://www.bsi.si" ') NAKUPNI,
      3         extractValue(value(t),'/tecaj/prodajni','xmlns="http://www.bsi.si" ') PRODAJNI
      4    from table(xmlsequence(extract(xmltype(:xmltext),'/TecKomBS/tecajnica/tecaj','xmlns="http://www.bsi.si" '))) t
      5  /
    SIFRA                NAKUPNI              PRODAJNI
    826                  0.65784              0.65586
    203                  27.910               27.826
    578                  8.3605               8.3355
    SQL>
    SQL>
    SQL>
    SQL

Maybe you are looking for

  • Need suggestion for choosing Java development enviroment

    Hi Evereyone, I am new to Java Desktop Application.I need help on choosing proper Java technologies and development tool. We have an existing CLIENT/SERVER based distributed control system, which was developed in C++(Server side) and VB(Client GUI).N

  • Mass updation of merchandise category in Billing doc.  ------  ( IS-Retail

    HI! My problem is in regard to the Merchandise Category Reclassification in SAP IS-Retail. My senario was that there were some Merchandise categories(MC) which were unallocated i.e they were not assigned to any Merchandise Cat. Heirarchy. Also there

  • Help with CreditFlow Solution

    "To complete the implementation of this flow, you would add another <assign> activity to the flow (after the credit rating service has been invoked), which would copy the result returned from the credit rating service (in your invoke_CRS_process_outp

  • Put URL of downloaded files in Get Info's Comments field?

    I'm using Safari Version 3.0.4 (build 5523.10.6). I know it is possible to have the url of where a file was originally downloaded to appear in the Get Info's comments field automaticly. I know this because it used to do this sometime ago, I remember.

  • Report on the Dimensions, its members and properties

    Hi All, Is there any report or work around to pull the information on Dimensions, its members and Properties into excel, pdf etc like Form Definition report? Thanks, Ravi