Application.description.text is an unexpected element/attribute

The XML syntax described in "developing air apps with html
and ajax.pdf" clearly suggests the following pattern:
<description><text
xml:lang="foo">bar</text></description>
However, ADT, when used to build an .air package from such an
app.xml, suggests that "application.description.text is an
unexpected element/attribute" (error 103).
Sure, this is Alpha (at least under Linux which I'm running),
but out of curiosity, which one is out of date, ADT or the
documentation?

The Linux alpha didn't support this capability; it's your
copy of adt that's old w.r.t. the documentation you're reading.

Similar Messages

  • Error 103: application.initialWindow.autoOrients is an unexpected element/attribute

    Hello.
    I'm using Flash Builder 4.5 to experiment with building a mobile app for my Android Nexus One.  In order to keep the app in landscape mode, regardless of the orientation of the device, I've read that I need to set the following in the "AppName-app.xml" file:
    <aspectRatio>landscape</aspectRatio>
    <autoOrients>false</autoOrients>
    And this does work fine in the debugger, however when I attempt to test it on my connected device it throws this error:
    Error occurred while packaging the application:
    D:\Projects\FlexMobile\AppName\bin-debug\AppName-app.xml(108): error 103: application.initialWindow.autoOrients is an unexpected element/attribute
    I know that I'm able to build and test apps on my device, as I've been through the Flex Test Drive for Mobile tutorial (http://www.adobe.com/devnet/flex/testdrivemobile.html) and was able to build and run that app with no issues and this app I'm currently working on does run on the device if I do not attempt to restrict the auto orientation.
    Thank you.
    (Note:  I'm re-posting this from the Flex SDK > Developers forum.)

    User rblaa provided that answer in http://forums.adobe.com/thread/858772.
    The <autoOrients> node (along with several others) occours twice in the generated -app.xml file.  Do not un-comment the first instance, instead edit the parameters set in the second already un-commented autoOrients node.

  • Error 103: application.version is an unexpected element/attribute

    Hi guys, while i'm publishing iOS app from Flash, i get that thing
    Unexpected or unknown element or attribute in the application descriptor file.
    /Users/stockingem/Documents/DWP/1-app.xml(44): error 103: application.version is an unexpected element/attribute
    application.version is an unexpected element/attribute
    please, help to solve it!

    <?xml version="1.0" encoding="utf-8"?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
        <id>test1</id>
        <versionNumber>1.2.0</versionNumber>
        <filename>Untitled-1</filename>
        <description></description>
        <!-- To localize the description, use the following format for the description element.
        <description>
            <text xml:lang="en">English App description goes here</text>
            <text xml:lang="fr">French App description goes here</text>
            <text xml:lang="ja">Japanese App description goes here</text>
        </description>
        -->
        <name>Untitled-1</name>
        <!-- To localize the name, use the following format for the name element.
        <name>
            <text xml:lang="en">English App name goes here</text>
            <text xml:lang="fr">French App name goes here</text>
            <text xml:lang="ja">Japanese App name goes here</text>
        </name>
        -->
        <copyright></copyright>
        <initialWindow>
            <content>Untitled-1.swf</content>
            <systemChrome>standard</systemChrome>
            <transparent>false</transparent>
            <visible>true</visible>
            <fullScreen>true</fullScreen>
            <autoOrients>false</autoOrients>
            <aspectRatio>portrait</aspectRatio>
            <renderMode>auto</renderMode>
        </initialWindow>
        <customUpdateUI>false</customUpdateUI>
        <allowBrowserInvocation>false</allowBrowserInvocation>
        <icon>
            <image29x29>AppIconsForPublish/dwp.png</image29x29>
        </icon>
        <iPhone>
            <requestedDisplayResolution>standard</requestedDisplayResolution>
            <InfoAdditions><![CDATA[<key>UIDeviceFamily</key><array><string>1</string></array>]]></In foAdditions>
        </iPhone>
        <version>1.2</version>
    </application>

  • Flash CS5.5 to iOS error 103: application.version is an unexpected element/attribute

    Hello,
    I am trying to publish from a flash file, an .ipa file  to use in ipad and iphone, but keep receiving the "error 103:  application.version is an unexpected element/attribute" error message.
    I  already publish the app in flash CS5 and it was ok but today i install  CS5.5 and the error does not alow me to publish the same file...
    Is it an Air ADL problem?
    Any suggestions?
    Thanks

    I don't know if it's an official bug.... Adn I don't know if they will really solve it...
    I called 3 times to Adobe Phone Support. I've never been told that it was an official bug. Nobody seemed to know about that bug....
    1st call: They told me to go to www.adobe.com/devnet/, saying that I will find the solution there... I found nothing.
    2nd call: They told me to call Apple... They said I need a Flash CS5.5 certificate... Of course, Apple does not deliver "Flash CS5.5 certificates". I guess they just wanted to get rid of me...
    3rd call: They gave me a phone number to call the Flash Developers Support Center. That phone number was not working....
    Each time, I asked them if they can send me a Flash CS5 version, which was working well. They always said it was impossible.
    I really need to be able to publish iPhone apps as fast as possible, otherwise I will lose a big contract...
    I think my next call will be to my bank... to cancel the payment I made on my credit card to purchase that Flash CS5.5 software.

  • Flash CS5.5 error 103: application.version is an unexpected element/attribute

    Hello,
    I am trying to publish from a flash file, an .ipa file to use in ipad and iphone, but keep receiving the "error 103: application.version is an unexpected element/attribute" error message.
    I already publish the app in flash CS5 and it was ok but today i install CS5.5 and the error does not alow me to publish the same file...
    Is it an Air ADL problem?
    Any suggestions?
    Thanks

    The name of app.
    Ex: XXXXXXXX.appname
    Use "appname".
    But error is related to version number in app xml.

  • Entitlements in file Descriptor : Error 103 "application.iPhone.Entitlements..unexpected elements"

    Hi,
    I need to set Entitlements key in file descriptor.
    If i include <Entitlements> section ADT says "error 103: application.iPhone.Entitlements is an unexpected element/attribute" !!
    But in documentation there is this Element : http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WSd6d4 f896b3a8801b-3c9d92f81393051c54c-8000
    My File Descriptor (without <Entitlements> section it works good):
    <?xml version="1.0" encoding="utf-8" ?>
    <application xmlns="http://ns.adobe.com/air/application/3.0">
        <id>com.truc.test2</id>
        <name>Hello World iOS</name>
        <versionNumber>1.0.1</versionNumber>
        <filename>Comp1</filename>
        <supportedProfiles>mobileDevice</supportedProfiles>
        <initialWindow>
            <content>CompIPad.swf</content>
            <title>Comp1</title>
        </initialWindow>
        <iPhone>
                 <Entitlements>
                    <![CDATA[
                       <key>aps-environment</key>
                       <string>development</string>
                    ]]>
                 </Entitlements>
                           <InfoAdditions>
                                      <![CDATA[
                                                                <key>UIDeviceFamily</key>
                                                                <array>
                                                                    <string>2</string>
                                                                </array>
                                      ]]>
                                  </InfoAdditions>
                                  <requestedDisplayResolution>high</requestedDisplayResolution>
                         </iPhone>
        <icon>
            <image29x29>icons/icon_29.png</image29x29>
            <image57x57>icons/icon_57.png</image57x57>
            <image72x72>icons/icon_72.png</image72x72>
            <image512x512>icons/icon_512.png</image512x512>
        </icon>
    </application>
    How can i do ?
    Regards
    System: Windows Seven
    Trying with Adobe Air SDK 3.4 and 3.5 beta (same problem)

    Entitlements tag was introduced in namespace 3.1. Please update your app descriptor to use namespace 3.1 or above.
    <application xmlns="http://ns.adobe.com/air/application/3.1">
    -Neha

  • Parsing error: Unexpected text in content of Element

    Hello,
    I have a problem that is leading me to believe that something is wrong with the struts.jar (ValidatorPlugIn class in particular) file shipped with jdeveloper 11g (11.1.1.1.0). I'm wondering if anybody has experienced this problem and maybe knows a solution.
    Following is the error that I receive when deploying the application on weblogic 10.3:
    [ERROR] Digester - Parse Error at line 5 column 100: <Line 5, Column 100>: XML-20145: (Error) Unexpected text in content of Element 'field'. <org.xml.sax.SAXParseException: <Line 5, Column 100>: XML-20145: (Error) Unexpected text in content of Element 'field'.>org.xml.sax.SAXParseException: <Line 5, Column 100>: XML-20145: (Error) Unexpected text in content of Element 'field'.
    at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:335)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:225)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
    at org.apache.commons.digester.Digester.parse(Digester.java:1666)
    at org.apache.commons.validator.ValidatorResources.<init>(ValidatorResources.java:159)
    at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:237)
    at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:162)
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1913)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1887)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1805)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:53)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    This error is referring to a file with the following contents:
    <form-validation><formset><form name="ShowNotesForm"><field property="PmnNote" depends="required"> <arg0 key="Note"/></field></form><form name="ShowAttachmentsForm"><field property="pmaAttName" depends="required"><arg0 key="Name"/></field><field property="pmaNote" depends="required"><arg0 key="Description"/></field></form></formset></form-validation>
    This error occurs wherever there is a white space or a new line character in the contents of a tag! If I have the entire file on one line, then I do not get the error.
    In the code above, I placed all the contents of the file on one line and just added one space character (it's right before <arg0 key="Note"/>), that character is causing the error and the stack trace shown above.
    If I use an older version of struts.jar (i.e. place it in the domain's lib directory so that it's added to the classpath), then I don't have a problem with white space or new line characters.
    Thanks in advance

    You are right and very sarcastic at the same time.  My bad....however, I figured out the problem, I did not close out my mysql connection and I had an extra if "}" at the end of my code.

  • Description text in WBS element

    In esscatsap.com DC ..
    We are looking to select Description text in WBS element or at least
    show the description instead of WBS element.
    How is that possible ? The best way i am guessing after looking at the
    code is to add one more column (Description). But is this something
    doable or advisible.
    we looked at all the user exits, but nothing is helpful

    Please post this question in WD java forum. If you want to do it, you need to change the DC using NWDI track.
    Regards
    Vishal Kapoor

  • Unexpected element name: expected WHEN INVOKING A WEB SERVICE

    I am pretty new to Web Services and need some helping in resolving the following error. I created following two classes and published one of the method savePerson. When I tried to invoke the webservice through my browser passing the following:
    <ns1:savePersonElement xmlns:ns1="http://mypackage17/Person.wsdl/types">
    <ns1:sex>simpleType value</ns1:sex>
    <ns1:human>
    <ns2:last xmlns:ns2="http://tempuri.org">simpleType value</ns2:last>
    <ns3:first xmlns:ns3="http://tempuri.org">simpleType value</ns3:first>
    </ns1:human>
    </ns1:savePersonElement>
    I get the following error:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://mypackage17/Person.wsdl/types">
    <env:Body>
    <env:Fault>
    <faultcode>env:Client</faultcode>
    <faultstring>caught exception while handling request: unexpected element name: expected={http://mypackage17/Person.wsdl/types}name, actual={http://mypackage17/Person.wsdl/types}sex</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    But passing the following works fine as have passed all the parameters data:
    <ns1:savePersonElement xmlns:ns1="http://mypackage17/Person.wsdl/types">
    <ns1:name>simpleType value</ns1:name>
    <ns1:sex>simpleType value</ns1:sex>
    <ns1:human>
    <ns2:last xmlns:ns2="http://tempuri.org">simpleType value</ns2:last>
    <ns3:first xmlns:ns3="http://tempuri.org">simpleType value</ns3:first>
    </ns1:human>
    </ns1:savePersonElement>
    Here is the code I have for the webservice:
    package mypackage17;
    *@oracle.ws.WebService name = "MyWebService2", serviceName = "MyWebService2", description = "", targetNamespace = "http://tempuri.org", schemaTargetNamespace = "http://mypackage17/Person.wsdl/types", endpointInterface = "mypackage17.MyWebService1SEI"
    *@oracle.ws.SOAPBinding style = "DOCUMENT", use = "LITERAL", documentWrapped = "true", bindingName = "MyWebService1SoapHttp", portName = "MyWebService1Port"
    public class Person extends Human
    private String name;
    private String sex;
    public Person(){}
    public void setName(String name)
    this.name = name;
    public void setSex(String sex)
    this.sex = sex;
    public String getName()
    return this.name;
    public String getSex()
    return this.sex;
    *@oracle.ws.DocumentWrapper requestType = "savePerson", requestElement = "savePersonElement", requestPart = "parameters", responseType = "savePersonResponse", responseElement = "savePersonResponseElement", responsePart = "parameters"
    *@oracle.ws.WebMethod operationName = "savePerson", description = "", oneway = "false", documentWrapped = "true", inputMessage = "MyWebService1SEI_savePerson", outputMessage = "MyWebService1SEI_savePersonResponse", responsePart = "result"
    *@oracle.ws.ParamPart position = "0", partName = "name", mode = "IN", soapHeader = "false"
    *@oracle.ws.ParamPart position = "1", partName = "sex", mode = "IN", soapHeader = "false"
    *@oracle.ws.ParamPart position = "2", partName = "human", mode = "IN", soapHeader = "false"
    public void savePerson(String name, String sex, Human[] human)
    System.out.println("Name: " + name);
    System.out.println("Sex: " + sex);
    System.out.println(human.length);
    System.out.println("1 First: " + human[0].getFirst());
    System.out.println("1 Last: " + human[0].getLast());
    System.out.println("2 First: " + human[1].getFirst());
    System.out.println("2 Last: " + human[1].getLast());
    /****** THE OTHER CLASS ********/
    package mypackage17;
    public class Human
    private String first;
    private String last;
    public Human(){}
    public void setFirst(String first)
    this.first = first;
    public void setLast(String last)
    this.last = last;
    public String getFirst()
    return this.first;
    public String getLast()
    return this.last;
    Here is the WSDL generated using JDeveloper 10.1.3:
    <?xml version="1.0" encoding="UTF-8" ?>
    <definitions
    name="MyWebService2"
    targetNamespace="http://tempuri.org"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://tempuri.org"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:ns1="http://mypackage17/Person.wsdl/types"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://tempuri.org" elementFormDefault="qualified"
    xmlns:tns="http://tempuri.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
    <import namespace="http://mypackage17/Person.wsdl/types"/>
    <complexType name="Human">
    <sequence>
    <element name="last" type="string" nillable="true"/>
    <element name="first" type="string" nillable="true"/>
    </sequence>
    </complexType>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mypackage17/Person.wsdl/types"
    elementFormDefault="qualified" xmlns:tns="http://mypackage17/Person.wsdl/types"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://tempuri.org">
    <import namespace="http://tempuri.org"/>
    <complexType name="savePerson">
    <sequence>
    <element name="name" type="string" nillable="true"/>
    <element name="sex" type="string" nillable="true"/>
    <element name="human" type="ns1:Human" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="savePersonResponse">
    <sequence/>
    </complexType>
    <element name="savePersonElement" type="tns:savePerson"/>
    <element name="savePersonResponseElement" type="tns:savePersonResponse"/>
    </schema>
    </types>
    <message name="MyWebService1SEI_savePerson">
    <part name="parameters" element="ns1:savePersonElement"/>
    </message>
    <message name="MyWebService1SEI_savePersonResponse">
    <part name="parameters" element="ns1:savePersonResponseElement"/>
    </message>
    <portType name="MyWebService2">
    <operation name="savePerson">
    <input message="tns:MyWebService1SEI_savePerson"/>
    <output message="tns:MyWebService1SEI_savePersonResponse"/>
    </operation>
    </portType>
    <binding name="MyWebService1SoapHttp" type="tns:MyWebService2">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="savePerson">
    <soap:operation soapAction="http://tempuri.org:savePerson"/>
    <input>
    <soap:body use="literal" parts="parameters"/>
    </input>
    <output>
    <soap:body use="literal" parts="parameters"/>
    </output>
    </operation>
    </binding>
    <service name="MyWebService2">
    <port name="MyWebService1Port" binding="tns:MyWebService1SoapHttp">
    <soap:address location="http://192.168.2.101:8988/JavaWebService/MyWebService2"/>
    </port>
    </service>
    </definitions>
    Can someone tell what am I doing wrong. As it looks like I have to pass all the parameters for the method that is published but what if some are missing basically I want to keep all the parameters optional. How can I make the service to return the same what is passed when invoked. Any help is appreciated. I am using JDeveloper 10.1.3.

    To make the service return "whatever is passed", you have to take a step back and realize that there is a little understanding of XML Schema required.
    When using a complexType, which is defined as a sequence, then you are implying an ordered sequence of elements. Default value for the 'minOccurs' attribute is 1. It's also important to understand that there is a difference between minOccurs=0 and nillable="true".
    nillable="true" just means that the name element can carry a null value. If you want the name element to be optional, then you must use the minOccurs=0 and keep the maxOccurs to it's default value of 1. Using an array is just a bad work around. This is for deserialization (XML to JAVA).
    The second part of you problem is on the serialization (or JAVA to XML). When you have a JAVA Bean, there is no way to make the difference between a member's value being null or not set, so it's impossible to decide if you need to send back a nul (xsi:nil="true"), an empty element <ns1:name/> or nothing.
    That said, if you do want to go the XML route, you can use the dataBinding="false" flag in the different WSA command. Instead of converting XML into JAVA, you will have SOAPElement parameters, where you can do all you want (see WS user's guide [1] for details - chapter 16). Note that you have to make sure that the WSDL (your contract) reflect what you are doing on the wire (format of your messages), so that you do not geopardize your interoperability with other toolkit.
    Note that this only applies to literal message formats (use attribute in WSDL), which is your case.
    Hope this helps,
    Eric
    [1] http://download-west.oracle.com/otn_hosted_doc/ias/preview/web.1013/b14434.pdf

  • UnmarshalException: unexpected element (uri:...

    Hello,
    I have an ugly problem while trying to unmarshal my xml-instance with JAXB (WSDP2.0). I hope that you may help.
    With the tool XJC I have generated some Java-classes from XML-Schema
    xjc.bat -debug -readOnly -b myBindingFile.xjb -extension -d ./java xsd\MyMainSchema.xsd>error.txtThere was no error message, so I thought that everything was fine
    The file MyMainSchema.xsd uses/imports several other XML-Schemas.
    Among other imported elements I am using some elements of OGC (GML3.1.1,Geography Markup Language) for example gml:Polygon.
    Schema:
    <xsd:schema xmlns="my:package:structure:MyRoot"
    xmlns:x="...."
    xmlns:y="...."
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:gml="http://www.opengis.net/gml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="my:package:structure:MyRoot"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    version="0.1">
    <xsd:import namespace="x" schemaLocation="../x.xsd"/>
    <xsd:import namespace="y" schemaLocation="../y.xsd"/>
    <xsd:element name="MyRoot" type="MyRootType"/>
    <xsd:complexType name="MyRootType">
    <xsd:sequence>
       <xsd:element ref="x:element1" minOccurs="0"/>
       <xsd:element ref="y:element2" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>element2 contains on lower level some GML-elements
    If I generate a valide instance of the schema and try to unmarshal (Schema->java-classes, I have done this in the following way:
    JAXBContext jc = JAXBContext.newInstance(my.package.structure.MyRootType.class);
    Unmarshaller u = jc.createUnmarshaller();
    FileInputStream f_in = new FileInputStream("C://my/path/to/instance/instance.xml"");      
    MyRootType doc = (MyRootType)u.unmarshal(f_in);Now I get an error message:
    javax.xml.bind.UnmarshalException: unexpected element (uri:"my:package:structure:MyRootType", local:"MyRoot").
    Expected elements are
    <{http://www.opengis.net/gml}Array>,
    <{http://www.opengis.net/gml}Bag>,
    <{http://www.opengis.net/gml}BaseUnit>,
    <{http://www.opengis.net/gml}validTime>,
    <{http://www.opengis.net/gml}vector>Can anybody please help and tell me where I may search for the error. I tried several hours to eliminate the error, but all without success.
    It seems that JAXB is searching for an element out of the GML-namespace but I don't understand why.
    the y:element2 contains a gml:Polygon, but I think that this can not be the cause
    Thanks a lot for your help!
    tine

    xsi:noNamespaceSchemaLocation="F:\Data\NetBeansProjects\834Parser\data\enrollmentschema.xsd"I did some googling; all of the examples of the xsi:noNamespaceSchemaLocation I found were too simple. But eventually I found a document which suggested that the value of this attribute should be a URI. Which makes sense since the schema specs were written by the W3C for use in Internet applications. And you haven't provided a URI there.

  • Unexpected Element : :report

    Hi Experts,
    I am facing an error when ever i try to create a new report in BI Publisher.
    The report works well in Query builder but when i view it online it gives me error Unexpected Element : :report
    Even if i use oracle answer or file as data source it still gives me error
    Please guide me to resolved this issue.
    Thanks in Advance.
    Cheers,
    Andy.

    Hello all,
    This is due a a Bug/Feature where the "xmlns" attribute is not automatically inserted into the element in the xdo file for your report. To resolve the issue is quite simple.
    1. Open the xdo file for you report in your favorite text editor
    2. Insert the following attribute into the <report> element
    xmlns="http://xmlns.oracle.com/oxp/xmlp"
    The <report> element should now look something like this:
    <report version="1.1" xmlns="http://xmlns.oracle.com/oxp/xmlp" defaultDataSourceRef="dev">
    </report>
    I wrote a small article about this here:
    [http://mrmcgeek.blogspot.com/2008/11/rendering-error-unexpected-element.html|http://mrmcgeek.blogspot.com/2008/11/rendering-error-unexpected-element.html]

  • Column value substitution in tabular form element attributes

    We started to discuss this at Re: Tabular form with Ajax
    I also mentioned this at Re: how to make only some rows editable in html db.
    but thought that this deserves its own thread.
    In Doug's sample Sudoku application in that thread, he uses #COLUMN# substitution in the Form Element Attributes and it works fine, but in my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:219 I used the same technique and no matter what I do, the #COLUMN# substitution is not expanded by the Apex engine.
    This is driving me nuts, any ideas why it works in one application but not in another?
    Thanks

    Hm, you might be right.
    I copied your row template and modified it at http://htmldb.oracle.com/pls/otn/f?p=24317:219
    The styling looks terrible, not sure why, the template is simply
    <tr>
    <td class="t10data">#EMPNO_DISPLAY#</td>
    <td class="t10data">#ENAME#</td>
    <td class="t10data">#JOB#</td>
    <td class="t10data">#MGR#</td>
    <td class="t10data">#HIREDATE#</td>
    <td class="t10data">#SAL#</td>
    <td class="t10data">#COMM#</td>
    <td class="t10data">#DEPTNO#</td>
    </tr>I had a lot of trouble getting this to work because the wizard generated tabular form appends 2 hidden fields containing the PK and the row-checksum to the last (editable?) field on each row. If the last editable field has #COL# substitution, it expands the substitution and forgets to close the INPUT tag thus causing malformed HTML (I think this is a bug in the rendering engine).
    The readonly condition is sal>1000 which now works. The SAL>1000 fields are now readonly.
    But now the update process is broken. If I enter a number in the first blank SAL field (empno=3641) and click Submit, I get no errors but the change is not saved. Wonder why.
    Hopefully, Scott (Spadafore) will take mercy on our amateurish experiments and give us some definitive answers soon!
    Thanks.

  • Pop-up LOV, add Element Attributes?

    Hello again,
    I have a pop-up LOV (named LOV) on a column in the detail section of a master-detail form (imagine the "Employee Num" being a pop-up LOV in the image linked below[1]). This field also allows normal user entry just like any input field (this is, input is not disabled).
    However, while viewing the source HTML this field just an ordinary input field, I cannot seem to add an element attribute via the usual means. Just for arguments sake I want an alert box on each keypress, usually I would just add the line: onkeypress="javascript: alert('hello');" in the Element Attributes under the "Column Attributes" section. This is not working for me, however.
    How would I go about calling a JavaScript function (on a keypress, say) using this pop-up LOV input method?
    Thank you for you time.
    I am using APEX version: 4.0.2.00.09
    [1] http://imageupload.co.uk/viewer.php?file=yu7i83h5dpk5cy0npsy0.png
    Edited by: 986065 on Feb 14, 2013 1:51 PM

    Hello Bob,
    Sure you can enter a button on the template, but the problem is how to find out which page to call when the Add button is pressed.
    You can write your own LOV page(s) and attach those to a field (i.e. by adding a clickable image in the post element text) and then you can have all the control you want.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Unexpected element name: expected error while invoking external web service

    Hi,
    In JDeveloper when I invoke external web service call, I am getting following exception
    "unexpected element name: expected=..."
    But the same application works fine in .NET. Can someone help me as to why I am getting the exception only in JDeveloper and how to fix this exception.
    Thanks.

    Hi,
    Without more information, it will be hard to help, and tell you what could be teh issue.
    Usually, this kind of error occurs when the payload and the WSDL schema are out of sync, for example if the order of the element on the wire do not match the order in a sequence declaration, you may get this error.
    In such case, .NET handle the XML as if it was a 'all' -- no specific order -- and deserialize the message properly.
    Hope this helps,
    -eric

Maybe you are looking for

  • Ipod no longer in English it's now in Japanese. How do I change it back?

    My daughter let this ipod run down completely and has ignored it for several weeks. I just bought her the idog and was trying to get it charged back up. Well it DID charge, but now it is Japanese. I really need to know what to do to fix it! Please so

  • Dual Monitor Hook-up, DVI/VGA/HDMI?

    I think it's time to retire my aging samsung 22" and buy a few 23" LED's to replace it. My graphics card only has DVI out (x2), and the 3 monitors I'm looking at do not have dual DVI (either dual HDMI and DVI, or DVI/VGA/HDMI), so I would need adapte

  • HT3823 How to download movie extras to iPad 2?

    Hi, I have iPad 2 n I purchased the toy story 3 SD version from it and want to know how to download or transfer the extras from the itunes in my computer to the ipad? N Wht is iTunes extra? Do I need to download tht?

  • (winxp+oracle11g) failed to connect oracle remotely.

    I installed oracl11g in my winXP host (ip1) and in another winXP (ip2) host reside in a vmware workstation which is on ip1 too. The vmware uses bridge to connect network. I can ping ip1 from ip2 and and vice versa, but i can not tnsping oracle on ip1

  • How to Dynamically read Collections?

    Hi, I want to read collections dynamically. I have a requirement where I need to take any COMPLEX collection and goto the leaf node and get the results. I'm able to get the attributes using "ALL_TYPES" and "ALL_TYPE_ATTRS" etc but how can I read dyna