Problem with xerces2 J (cvc-elt.1: Cannot find the declaration of element)

cvc-elt.1: Cannot find the declaration of element 'Unternehmen'.
Can anyone help me to get this problem solved?
I am using xerces to validate a xml with a xsd scheme and i think there must be a error within the scheme. But the XSD Validator on w3c.org says that the xsd is fine !? :-o
scheme (xsd)
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:complexType name="PersonTyp" abstract="true">
     <xsd:sequence>
       <xsd:element name="Vorname" type="xsd:string" maxOccurs="3"/>
       <xsd:element name="Name" type="xsd:string"/>
       <xsd:element name="Geburtsdatum" type="xsd:date"/>
     </xsd:sequence>
   </xsd:complexType>
   <xsd:complexType name="MitarbeiterTyp">
     <xsd:complexContent>
       <xsd:extension base="PersonTyp">
         <xsd:sequence>
           <xsd:element name="Gehalt">
             <xsd:simpleType>
               <xsd:restriction base="xsd:float">
                 <xsd:minInclusive value="10000"/>
               </xsd:restriction>
             </xsd:simpleType>
           </xsd:element>
         </xsd:sequence>
       </xsd:extension>
     </xsd:complexContent>
   </xsd:complexType>
   <xsd:element name="Unternehmen">
     <xsd:complexType>
       <xsd:sequence>
         <xsd:element name="Mitarbeiter" type="MitarbeiterTyp"
           maxOccurs="unbounded"/>
       </xsd:sequence>
     </xsd:complexType>
   </xsd:element>
</xsd:schema>xml
<?xml version="1.0" encoding="UTF-8"?>
<Unternehmen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="Beispiel.xsd">
<Mitarbeiter>
  <Vorname>Hagen</Vorname>
  <Vorname>Dieter</Vorname>
  <Name>Becker</Name>
  <Geburtsdatum>1967-08-13</Geburtsdatum>
  <Gehalt>39512.34</Gehalt>
</Mitarbeiter>
<Mitarbeiter>
  <Vorname>Jutta</Vorname>
  <Name>Stehl</Name>
  <Geburtsdatum>1976-09-11</Geburtsdatum>
  <Gehalt>42500.34</Gehalt>
</Mitarbeiter>
</Unternehmen>

forget about this thread.
i have read a chapter of http://java.sun.com/webservices/docs/1.2/tutorial/doc/index.html this document and found out that i missed a statement within my java code.
Next, you need to configure the parser factory to generate a parser that is namespace-aware parser, as well as validating:
  SAXParserFactory factory = SAXParserFactory.newInstance();
  factory.setNamespaceAware(true);
  factory.setValidating(true); I MISSED THE factory.setNamespaceAware(true); LINE!!!!

Similar Messages

  • Problem in creating Data/Service in FlashBuilder 4 beta 2 with this error .cvc-elt.1: Cannot find the declaration of element 'model'

    hi
    i have a problem after installing flashBuilder 4 beta2 .
    when i want to create Data/Service with BlazeDs and when i click on button finish
    this error shown and I can't do anything with it .
    in flashBuilder beta1 it's work perfect .
    if any one in thereand know why?
    please help me
    ERROR: XML parse error : Error on line 1 of documen : cvc-elt.1:Cannot find declaration of element 'model'. Nested exeption:Cannot find declaration of element 'model'.
    thanks

    Hi,
    Thanks for your feedback
    Can you attach your sample project and provide details on the Flash Builder and BlazeDS builds you are using?
    Also add your vote to http://bugs.adobe.com/jira/browse/FB-23479 a similar known issue
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Cvc-elt.1: Cannot find the declaration of element 'html'

    I was getting an error when I was trying to validate the following XML file as below:
    cvc-elt.1: Cannot find the declaration of element 'html'
    However the error below goes away when I type in
    <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
    instead of "<html xmlns="http://www.w3.org/1999/xhtml"
    I am not sure why the second way works. I am not familiar with namespaces, so if anyone could tell me why the second approach works, i would be grateful. Or, is there any other reason also that makes the error appear..Please demystify. Thanks very much
    The error:
    *cvc-elt.1: Cannot find the declaration of element 'html'*
    {code}
    <?xml version="1.0" encoding="UTF-8"?>
    *<html xmlns="http://www.w3.org/1999/xhtml"*      xmlns:xhtml="http://www.w3.org/2002/Xforms"
         xmlns:ev="http://www.w3.org/2001/xml-events"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www/w3.org/2001/XMLSchema-instance"
         xmlns:xxforms="http://orbeon.org/oxf/xml/xform"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:fe="http://example.com/form/xform"
         xmlns:f="http://orbeon.org/oxf/xml/formatting"
         xmlns:xforms="http://w3.org/2002/xforms">
                   <head>
                        <title> ProtoType Complaint Form - 2 </title>
                        <!-- We are going to use an external CSS file here -->
                        <!-- <link rel="stylesheet" type="text/css" href="my_styles.css"/> -->
                        <!-- Let us use an Internal Style sheet as well -->
                        <!-- Let us use or adapt the Form Editor CSS in the form as suggested by Mike, Dan, Intalio -->
                        <!--We are going to be using CSS Rules:
                        A CSS rule comprises of a selector, and a property:value pair (declaration). -->
                        <!--
                        selector:
                             how content can be selected for styling, for example, the selector for a level-one
                        heading element is h1; selectors include element name, ID and class
                        property:
                             how a presentation attribute of an element can be targeted, for example, the font-family
                             property refers to the typeface content should be set in
                        value:
                             the values permitted for each property; for example, a colour can be set using a keyword:
                             red, green, blue; or a hexadecimal code: #f00, #0f0, #00f
                        -->
                        <!--
                        We are going to use Solitary ID selectors:
                             those that can apply to any type of element and have the simple syntax
                             #idname, for example, #title. This selector selects the single element on a page
                             that has an ID of "title".
                        -->
                        <!-- SideNote: Keyword - "CSS pseudo elements" -->          
                        <style type="text/css">
                        <!-- #xforms_cntrl_COMPLAINT_TYPE {position : absolute; top : 30; left : 270; width : 195; height : 29; margin : 0; padding : 0;} -->
                             h1
                                  font: bold 20pt helvetica,verdana;
                             h2
                                  font: bold 18pt helvetica,verdana;
                             h3
                                  font: bold 16pt helvetica,verdana;
                             /* blue background for Group labels */
                             /* h4 { font: bold 14pt helvetica,verdana; background-color: #1078E1; } */
                             h4
                                  font: bold 14pt helvetica,verdana;
                             .xforms-group {
                             /* border: 10px; */
                             border: thin solid #0000FF;
                             background-color: #ffffcc;
                             PADDING-RIGHT: 0.5em;
                             DISPLAY: block;
                             margin-bottom:5px;
                             /* display: table-row; */
              .xforms-label { font-weight: bold }
                        </style>
                        <!-- define the form model -->
                        <!-- We will constrain instance data by specifying an XML schema -->
                        <!-- xforms:model starts here -->
                        <xforms:model schema="test2.xform.xsd" id="COMPLAINT_DATA">
                             <!-- Task input -->
                             <xforms:instance id="taskinput">
                                  <fe:input>
                                       <fe:Arrestee_Last_Name/>
                                       <fe:Arrestee_First_Name/>
                                  </fe:input>
                             </xforms:instance>
                                  <xforms:instance id="taskmetadata">
                                  <!-- if I need to populate some instance using an XSL stylesheet and eXist ?? -->
                                       <taskmetadata/>
                                  </xforms:instance>
                             <!-- Task Output -->
                             <xforms:instance id="taskoutput">
                                  <fe:output>
                                       <fe:Arrestee_Last_Name/>
                             <fe:Arrestee_First_Name/>
                                  </fe:output>
                             </xforms:instance>     
                             <!-- the xforms-ready event is used here to trigger setValue -->
                             <!-- We set Instance Values with the xforms:setvalue Action -->
                             <xforms:action ev:event="xforms-ready">
                                  <xforms:action xforms:if="string(instance('taskoutput')/@saved) != 'true'">
                                       <xforms:setValue ref="instance('taskoutput')/fe:Arrestee_Last_Name" value="instance('taskinput')/fe:Arrestee_Last_Name" />
                                       <xforms:setValue ref="instance('taskoutput')/fe:Arrestee_First_Name" value="instance('taskinput')/fe:Arrestee_First_Name" />
                                  </xforms:action>
                             </xforms:action>
                             <!-- can I use type="xsd:string ?? -->
                             <xforms:bind nodeset="instance('taskoutput')/fe::Arrestee_Last_Name" relevant="true()" type="xs:anyURI" />
                             <xforms:bind nodeset="instance('taskoutput')/fe:Arrestee_First_Name" relevant="true()" type="xs:anyURI" />     
                        </xforms:model> <!-- xforms:model ends here -->
                   </head>     
              <body>
                        <h3>
                             <center>
                                  <font color="blue">
                                       Criminal Complaint <br></br>
                                  </font>
                             </center>
                        </h3>          
                        <!-- Use Later??
                        <div id="intalio-bpms-form">
                             <div id="xforms_cntrl_output105">
                                  <xforms:output ref="instance('taskoutput')/fe:output105"/>
                             <div>
                        <div> -->
                        <xforms:group appearance="full">
                        <p class="proto">
                             <xforms:input model="COMPLAINT_DATA" ref="instance('taskinput')/fe:input/fe:Arrestee_Last_Name">
                                  <xforms:label>Arrestee Last Name: </xforms:label>
                             </xforms:input>     
                        </p>
                        <p class="proto">
                             <xforms:input model="COMPLAINT_DATA" ref="instance('taskinput')/fe:input/fe:Arrestee_First_Name">
                                  <xforms:label>Arrestee First Name: </xforms:label>
                             </xforms:input>     
                        </p>
                        </xforms:group>     
              </body>
         </html>

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • Validation error: cvc-elt.1: Cannot find the declaration of element

    I use JAXP to do XML Parsing and validation. I use DOM and not SAX.
    My code is as follows:
    SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
    File schemaLocation = new File("C:\\config\\JMS_properties.xsd");
    Schema schema = schemaFactory.newSchema(schemaLocation);
    // Create the validator
    Validator validator = schema.newValidator();
    // Add an error handler to the validator
    JMSErrorHandler errorHandler = new JMSErrorHandler();
    validator.setErrorHandler(errorHandler);
    // Create the dom factory
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    // Set the namespace property
    domFactory.setNamespaceAware(true);
    // Create the document builder
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    // Parse the xml file
    Document doc = builder.parse(xmlFile);
    // Create the dom source and destination
    // The destination will contain the doc augmented with the default attribute/element
    DOMSource source = new DOMSource(doc);
    DOMResult result = new DOMResult();
    // Validate and augment the source
    validator.validate(source, result);
    // Error checking
    if ( errorHandler.validationError == true ) {
        // errors occured during the parsing
        System.out.println("XML file is not valid");
        System.exit(1);
    // Get the augmented document
    this.augmented = (Document) result.getNode();When executing my code, I got:
    Validation error: cvc-elt.1: Cannot find the declaration of element 'JMSProperties'
    But the xml file has this element in it so I do not understand the meaning of that error.
    ??????

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

  • Error cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'

    Hi! Ive got an error: cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'
    My WSDL file was generated by PI.
    After import this WSDL-file to my Business Process to section Service Interfaces - I've got this error.
    But, it seems to be OK when I created the project, create a model by choosing the WSDL-file. All validators do not give me any error.
    Whats wrong?!

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • Cvc-elt.1: Cannot find the declaration of element 'mesa'.

    When I trying to send a Soap request I am getting the following exception.
    Soap request
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/mesa" xmlns:web="http://www.webservice.stockquotein">
    <soapenv:Header/>
    <soapenv:Body>
    <web:GetQuote xmlns:web="http://www.webservice.stockquotein">
    <web:symbol>test</web:symbol>
    </web:GetQuote>
    </soapenv:Body>
    </soapenv:Envelope>
    XSD
    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://www.webservice.stockquotein"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mesa="http://www.sterlingcommerce.com/mesa">
    <xs:element name="GetQuote">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="symbol" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="symbol" type="xs:string"/>
    </xs:schema>
    WSDL (initial lines not complete as its very big)
    <wsdl:definitions xmlns:mesa="http://www.sterlingcommerce.com/mesa" xmlns:mesa_xsd="http://www.sterlingcommerce.com/mesa" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns0="http://www.webservice.stockquotein" xmlns:tns1="http://www.webservice.stockquoteout" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="StockQuote_no_attachments" targetNamespace="http://www.sterlingcommerce.com/mesa">
    <wsdl:types>
    <xs:schema xmlns="http://www.sterlingcommerce.com/mesa" xmlns:tns="http://www.sterlingcommerce.com/mesa" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.sterlingcommerce.com/mesa">
    What can be the issue?
    Thanks
    Abhishek

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • Org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of ..

    Hello,
    I try to validate a DOM Document using:
    SchemaFactory factory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Source schemaFile=new StreamSource("myschema.xsd");
    schema schema=factory.newSchema(schemaFile);
    Validator validator=schema.newValidator();
    validator.validate(new DOMSource(document));
    I don't validate using the parse(File) method, because I already have a DOM Tree in memory.
    BUT now I receive the following error:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'catalogue'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)
    at org.apache.xerces.jaxp.validation.XMLSchemaValidator.validate(Unknown Source)
    at javax.xml.validation.Validator.validate(Unknown Source)
    catalogue is my rootElement.
    I'm using jdk 1.4.
    Does somebody know how to solve this?
    Thank you!
    Katja

    extra information
    a part of the XSD schema:
    <?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">     <xsd:element name="catalogue">    <xsd:complexType>      <xsd:sequence>        <xsd:element ref="date_created"/>        <xsd:element ref="date_modified"/>        <xsd:element ref="comment"/>        <xsd:element ref="books"/>        <xsd:element ref="cds"/>      </xsd:sequence>    </xsd:complexType>  </xsd:element>the code I'll using:
    public class DomWriterWithValidation extends AppBo{
         public static void main(String[] args) {
              DocumentBuilderFactory dbFactory=DocumentBuilderFactory.newInstance();
              dbFactory.setNamespaceAware(true);
              final String OUR_SCHEMA="C:/_develop/asja/lib/local/domxmlliblocal/properties/xmlfiles/catalogueBig.xsd";
              SchemaFactory schemaFactory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              try{
                   Source schemaFile=new StreamSource(new FileInputStream(OUR_SCHEMA));
                   Schema schema=schemaFactory.newSchema(schemaFile);
                   Validator validator=schema.newValidator();
                   DocumentBuilder domBuilder=dbFactory.newDocumentBuilder();
                   File file=new File("C: /xmlfiles/catalogueDOMW1.xml");
                   Document document=domBuilder.newDocument();
                   Catalogue catalogue=getCatalogue(10,10);
                   writeXMLFile(file,catalogue,document,validator);
              }catch (Exception e) {
                   e.printStackTrace();
    public static void writeXMLFile(File file,Catalogue catalogue,Document document,Validator validator)throws SAXException{
              //1. BUILDING THE DOM TREE
              Element rootElement=document.createElement("catalogue");
              document.appendChild(rootElement);
              Element dateCreated=document.createElement("date_created");
              rootElement.appendChild(cds);
              OutputStream outputstream=null;               
                   try{
                        //2. WRITE THE DOM TREE TO AN XML FILE
                   TransformerFactory transformerFactory = TransformerFactory.newInstance();
                      Transformer transformer = transformerFactory.newTransformer();
                      transformer.setOutputProperty(OutputKeys.METHOD,"xml");
                      transformer.setOutputProperty(OutputKeys.INDENT,"yes");
                      outputstream=   new FileOutputStream(file.getPath());
                      /*With VALIDATION */
                        validator.validate(new DOMSource(document));
                   /*With VALIDATION */
                      transformer.transform(new DOMSource(document), new StreamResult(outputstream));      
              }catch (SAXException saxException){
                        System.out.println("The XML-file you are trying to create is not valid");
                        throw saxException;
              catch(Exception e){
                   e.printStackTrace();
              }finally{
                   try{
                   outputstream.close();
                   }catch (IOException ioException){
                        ioException.printStackTrace();
                        throw new RuntimeException(ioException);
    }A little part of the valid XML file I want to create:
    <?xml version="1.0" encoding="UTF-8"?><catalogue><date_created><day>1</day><month>7</month><year>2008</year></date_created><date_modified><day>1</day><month>7</month><year>2008</year></date_modified>

  • Cannot find the declaration of element

    What's the problem here. I've been developing spring-ws app (particularly for mm7). When i receive the request I'm getting org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mm7:SubmitReq'... What's the problem here?
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.mail.org/mailschema"
         xmlns:mm7="http://www.mail.org/mailschema" elementFormDefault="qualified">
              <complexType name="SubmitReq">
                   <sequence>
                        <element name="messageType" type="string"/>
                        <element name="verseion" type="string"/>
                   </sequence>
              </complexType>
         <element name="MM7SubmitReqObject" type="mm7:SubmitReq"></element>
    </schema>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4" SOAP-ENV:mustUnderstand="1">205a83ed79d64576</mm7:TransactionID>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
         <mm7:SubmitReq xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4">
              <mm7:MM7Version>6.8.0</mm7:MM7Version>
              <mm7:SenderIdentification>
                   <mm7:VASPID>VASP_TEST</mm7:VASPID>
                   <mm7:VASID>VAS_TEST</mm7:VASID>
                   <mm7:SenderAddress>
                        <mm7:Number>123456</mm7:Number>
                   </mm7:SenderAddress>
              </mm7:SenderIdentification>
              <mm7:Recipients>
                   <mm7:To>
                        <mm7:Number>+15166771001</mm7:Number>
                   </mm7:To>
              </mm7:Recipients>
              <mm7:MessageClass>Advertisement</mm7:MessageClass>
              <mm7:ExpiryDate>P1D</mm7:ExpiryDate>
              <mm7:DeliveryReport>false</mm7:DeliveryReport>
              <mm7:ReadReply>false</mm7:ReadReply>
              <mm7:Priority>Normal</mm7:Priority>
              <mm7:Subject>Check this out ---</mm7:Subject>
              <mm7:Content allowAdaptations="true" href="cid:AppLogo.jpg"/>
         </mm7:SubmitReq>
         <ericMm7:EricssonSubmitReq xmlns:ericMm7="REL-5-MM7-1-1-ericsson.xsd">
              <ericMm7:FreeText>;LUCK ON;123456789012;1</ericMm7:FreeText>
              <ericMm7:SenderVisibility>true</ericMm7:SenderVisibility>
         </ericMm7:EricssonSubmitReq>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    06/24/09 20:16:57.015 endpoint.SimpleSoapExceptionResolver [DEBUG] Resolving exception from endpoint [com.smart.mms.endpoint.MM7Endpoint@746e96ff]: org.springframework.oxm.jaxb.JaxbUnmarshallingFailureException: JAXB unmarshalling exception: null; nested exception is javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mm7:SubmitReq'.]
    06/24/09 20:16:57.016 server.SoapMessageDispatcher [DEBUG] Endpoint invocation resulted in exception - responding with Fault
    org.springframework.oxm.jaxb.JaxbUnmarshallingFailureException: JAXB unmarshalling exception: null; nested exception is javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mm7:SubmitReq'.]
    Caused by:
    javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mm7:SubmitReq'.]

    Hi,
              can you check with JSTL1.0
              pl. let me know service pack that you are using
              Regards,
              Prasanna Yalam

  • Cannot find the declaration of element taglib

    Hi,
              I am using JSTL1.1 standard.jar.I deployed it in my WL8.1 server.when i start my WL8.1 it giving the following warning.Its not giving any error while runtime.
              Please help me.
              Mitul
              <Warning> <HTTP> <BEA-101248> <[ServletContext(id=
              26711310,name=pem,context-path=/)]: Deployment descriptor "jar:file:E:\WORKSP~3\
              Domains\PEM-FM\.\portalServer\.wlnotdelete\extract\portalServer__appsdir_pem_dir
              _pem\jarfiles\WEB-INF\lib\standard.jar!/META-INF/fn.tld" is malformed. Check aga
              inst the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line
              3, column 228).>

    Hi,
              can you check with JSTL1.0
              pl. let me know service pack that you are using
              Regards,
              Prasanna Yalam

  • Cannot find the declaration of element 'scheduledTasks'

    Hi,
    I'm trying to send email notification using scheduled task, when i run the job it gives me warning
    <11 Oct, 2013 4:18:53 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000> <XSD Validation Exception: org.xml.sax.SAXParseException; cvc-elt.1: Cannot find the declaration of element 'scheduledTasks'.>
    thanks

    Not sure what your version of OIM is, but I have seen this in R2PS1 even though all the OOTB jobs and custom jobs are working fine. So I guess this can be safetly ignored.
    -Bikash

  • XML validation with XSD, Cannot find the declaration of element 'rules'

    i am able to validate xml with XSD, from windows env, but same is not doing with linux, it is throwing error Cannot find the declaration of element 'rules'
    code here is
    validate(String aFilePath, String aSchemaFilePath)
    final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
              final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
              final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
    if(lSchemaFilePath == null){
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
    factory.setAttribute(JAXP_SCHEMA_SOURCE, new File(aSchemaFilePath));
    factory.setNamespaceAware(true);
    factory.setValidating(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    mValidator = new ValidationHandler();
    builder.setErrorHandler(mValidator);
    lDocument = builder.parse(aFilePath);
    if(mValidator.mErrorExist){
              }Thanks
    vittal

    here's the sample gml file.
    <?xml version="1.0" encoding="UTF-8"?>
    <ksj:Dataset gml:id="C01_DataSet" xmlns:ksj="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app AppSchema-C01-v1_0.xsd">
         <gml:description>CO1 description</gml:description>
         <gml:boundedBy>
              <gml:EnvelopeWithTimePeriod srsName="JGD2000 / (B, L)" frame="GC / JST">
                   <gml:lowerCorner>24.03 122.93</gml:lowerCorner>
                   <gml:upperCorner>45.52 145.82</gml:upperCorner>
                   <gml:beginPosition calendarEraName="Seireki">1965</gml:beginPosition>
                   <gml:endPosition calendarEraName="Seireki">1990</gml:endPosition>
              </gml:EnvelopeWithTimePeriod>
         </gml:boundedBy>
         <gml:Point gml:id="pt_1">          
              <gml:pos>24.33741667 123.73177778</gml:pos>
         </gml:Point>
         <gml:Point gml:id="pt_2">
              <gml:pos>24.33158333 124.10552778</gml:pos>
         </gml:Point>
         <gml:Point gml:id="pt_3">
              <gml:pos>26.28205556 127.73950000</gml:pos>
         </gml:Point>
         <gml:Point gml:id="pt_4">
              <gml:pos>26.23777778 127.96491667</gml:pos>
         </gml:Point>
         <ksj:Tide gml:id="fi_1">
              <ksj:position xlink:href="#pt_1"/>
              <ksj:springTideRange>13</ksj:springTideRange>
              <ksj:neapRange>5</ksj:neapRange>
              <ksj:averageHighTideInterval>69</ksj:averageHighTideInterval>
         </ksj:Tide>
         <ksj:TidalCurrent gml:id="fi_2">
              <ksj:position xlink:href="#pt_2"/>
              <ksj:risingTideCurrent>
                   <ksj:TidalCurrentInfo>
                        <ksj:currentDirection>14</ksj:currentDirection>
                        <ksj:currentSpeed>3</ksj:currentSpeed>
                   </ksj:TidalCurrentInfo>
              </ksj:risingTideCurrent>
              <ksj:fallingTideCurrent>
                   <ksj:TidalCurrentInfo>
                        <ksj:currentDirection>6</ksj:currentDirection>
                        <ksj:currentSpeed>3</ksj:currentSpeed>
                   </ksj:TidalCurrentInfo>
              </ksj:fallingTideCurrent>
         </ksj:TidalCurrent>
         <ksj:Marina gml:id="fi_3">
              <ksj:position xlink:href="#pt_3"/>
              <ksj:name>Marinafi3</ksj:name>
              <ksj:facilityCode>4703</ksj:facilityCode>
              <ksj:administrativeAreaCode codeSpace="AdministrativeAreaCode.xml">47205</ksj:administrativeAreaCode>
              <ksj:establishmentYear>
                   <gml:TimeInstant gml:id="ti_3">
                        <gml:timePosition>1987</gml:timePosition>
                   </gml:TimeInstant>
              </ksj:establishmentYear>
              <ksj:administratorClass>1</ksj:administratorClass>
              <ksj:numberOfKeptShips>
                   <ksj:NumberOfKeptShips>
                        <ksj:max>263</ksj:max>
                        <ksj:now>83</ksj:now>
                   </ksj:NumberOfKeptShips>
              </ksj:numberOfKeptShips>
              <ksj:frequencyOfSailing>900</ksj:frequencyOfSailing>
              <ksj:facilitiesAbove>facilitiesAbove1</ksj:facilitiesAbove>
              <ksj:facilitiesAbove>facilitiesAbove2</ksj:facilitiesAbove>
              <ksj:facilitiesAbove>facilitiesAbove3</ksj:facilitiesAbove>
              <ksj:facilitiesAbove>facilitiesAbove4</ksj:facilitiesAbove>
         </ksj:Marina>
         <ksj:MarinePhenomenonObservationFacilities gml:id="fi_4">
              <ksj:position xlink:href="#pt_4"/>
              <ksj:name>MarineName</ksj:name>
              <ksj:facilityCode>47001</ksj:facilityCode>
              <ksj:administrativeAreaCode codeSpace="AdministrativeAreaCode.xml">47323</ksj:administrativeAreaCode>
              <ksj:establishmentYear>
                   <gml:TimeInstant gml:id="ti_4">
                        <gml:timePosition>1983</gml:timePosition>
                   </gml:TimeInstant>
              </ksj:establishmentYear>
              <ksj:administratorClass>7</ksj:administratorClass>
              <ksj:observationItem>observationItem1</ksj:observationItem>
              <ksj:observationItem>observationItem2</ksj:observationItem>
              <ksj:observationItem>observationItem3</ksj:observationItem>
              <ksj:observationItem>observationItem4</ksj:observationItem>
              <ksj:observationItem>observationItem5</ksj:observationItem>
              <ksj:observationItem>observationItemOthers</ksj:observationItem>
         </ksj:MarinePhenomenonObservationFacilities>
    </ksj:Dataset>

  • Xmlreader schema validation error: Cannot find the declaration of element

    I have multiple schemas with namespaces but I would like to validate an xml document without namespaces. The schemas all have elementFormDefault="unqualified" in the root element.
    I am encountering error below in my validation using xmlreader:
    ERROR:
    Cannot find the declaration of element 'NewTradenetDeclaration'.
    my code is:
    xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    xmlReader.setFeature(VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_NAMESPACE_FEATURE_ID, true);
    xmlReader.setProperty(JAXP_SCHEMA_LANGUAGE, XMLConstants.W3C_XML_SCHEMA_NS_URI);
    String schemaURI = "NewTradenetDeclaration.xsd";
    // ive tried all of the ff but throws the same error
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, "urn:crimsonlogic:tn:schema:xsd:NewTradenetDeclaration NewTradenetDeclaration.xsd");
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, schemaURI);
    xmlReader.setProperty(JAXP_SCHEMA_SOURCE, schemaURI);
    // set entity resolver to resolve xsd locations
    MyResolver resolver = new MyResolver();
    xmlReader.setEntityResolver(resolver);the entity resolver has:
    public InputSource resolveEntity (String publicId, String systemId) {
      String filename =  "c:/workspace/TXParser/schema/"+ systemId.substring(systemId.lastIndexOf("/")+1);
      File f = new File(filename);
      InputSource source = null;
      try {
        source = new InputSource(new FileReader(f));
      } catch(Exception e) {
      System.out.println("InputSource exception: " + e.getMessage());                 
      return source;
    }Help please. Thanks.

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

  • ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element 'model'. Nested exception: Can not find the declaration of element 'model'.

    I have install flash builder 4 beta 2 + blazeds 4.00.7548. While try to connect to data service and face a problem.
    When i use a beta 1 that no such probem. please help.
    ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element ‘model’. Nested exception: Can not find the declaration of element ‘model’.

    Hello All!
    I'm just getting started with Flash Builder 4 and BlazeDS and I'm having this same issue.     I have installed the FlashBuilder 4 beta 2  Build 253292, and Blaze 4  ( blazeds-turnkey-4.0.0.14341 ).       I have also installed the livecycle_dataservices3_modelerplugin_100509.      Upon clicking Data-Connect to data/service and then Blazeds,   I can see my DAO object listed.   However, if I select it I receive the dreaded error.       Now if I code in the remote object manually, in the  .mxml file and run it, all works just fine.        It's only while trying to use the object within Flashbuilder that I have the problem.     I see lots of ideas kicked around for this, and it seems that various solutions have worked for different users.    Can somebody put together a 'cookbook' of just exactly how to set things up to make this work? 
    Thanks

  • I purchased Adobe Acrobay XI with a fujistsu scanner.  I cannot find the cd it came with and I need a product key to download onto my new computer.  Please advise

    I purchased Adobe Acrobat XI with a fujistsu scanner.  I cannot find the cd it came with and I need a product key to download onto my new computer.  Please advise

    Hey Jacob,
    You might need to contact Adobe Customer Service to seek assistance for the same.
    Contact Customer Care
    Regards,
    Anubha

  • HT1338 I try to connect with apple TV throught , but i cannot find the home sharing in itunes

    HI
    I try to connect my mac book pro to TV throught apple post HDMI, after set up TV . i cannot find the home sharing for my itunes. can u help me . and how can i connect iphone 4 with TV throunght HDMI
    Thanks
    DUY KHUC

    Sorry for the "bump",
    but I'm still at a loss about this problem.
    I KNOW FOR SURE that I'm not the only person with this problem, so hopefully someone who's resolved this issue (or maybe even someone from APPLE) could help me out here?????
    Thanks in advance

Maybe you are looking for

  • New to Apple/Mac

    Hello, I'm new to the Apple/Mac family. I've just acquired a Power Mac G4, 733mgz, 256 ram, 40gb HD with OS X 10.5. Is this going to be a viable alternative to my PC? I'm running Windows XP on a 1.6ghz with 512ram and an 80gb hd. I also have question

  • Help I need to do a clean install on my MacBook 17 Pro Early 2011

    Hi I have a external backup and online server. I have Lion 10.7.4. I have dard drive 750gb. I transfered tons of junk from old XP computer. I would like to buy lighting bolt external hard drive SSD and transfer all the important files and start over.

  • Opening PC projects on a Mac

    Apologies if this has been asked before but I can't find the answer. I recently moved to a Mac based system and have several project files (.prproj) created on a PC.  I now want to finish them on my Mac but am unable to open them.  Is there a way to

  • Greyed out Build Button, even though I bought Premiere Pro myself

    I used to work for a company that provided us with Premiere Pro & Encore. I stopped working there months ago and no long have rights to Premiere Pro or Encore. I've been working on a video the past week, sent it to Encore, got the whole thing ready a

  • April 30 Webcast: Ariba Network Enables MRO Procurement

    To find out how Ariba Network facilitates procurement of MRO parts and services, sign up for the ASUG webcast on April 30: Network Enabled Asset Integrity: SAP EAM Meets Ariba Network in a Chemical Plant Schedule Start: April 30, 2014 9:00 AM (CT), 1