Return-Path: X-Original-To: apmail-oodt-dev-archive@www.apache.org Delivered-To: apmail-oodt-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 943B6932E for ; Wed, 6 Mar 2013 00:59:39 +0000 (UTC) Received: (qmail 92904 invoked by uid 500); 6 Mar 2013 00:59:39 -0000 Delivered-To: apmail-oodt-dev-archive@oodt.apache.org Received: (qmail 92848 invoked by uid 500); 6 Mar 2013 00:59:39 -0000 Mailing-List: contact dev-help@oodt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oodt.apache.org Delivered-To: mailing list dev@oodt.apache.org Received: (qmail 92837 invoked by uid 99); 6 Mar 2013 00:59:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 00:59:38 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.149.139.106] (HELO mail.jpl.nasa.gov) (128.149.139.106) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 00:59:34 +0000 Received: from mail.jpl.nasa.gov (ap-ehub-sp02.jpl.nasa.gov [128.149.137.149]) by smtp.jpl.nasa.gov (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r260xCDO021257 (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits) verified NO) for ; Tue, 5 Mar 2013 16:59:12 -0800 Received: from AP-EMBX-SP40.RES.AD.JPL ([169.254.7.238]) by ap-ehub-sp02.RES.AD.JPL ([fe80::dd85:7b07:1e36:7e3c%15]) with mapi id 14.02.0342.003; Tue, 5 Mar 2013 16:59:12 -0800 From: "Mattmann, Chris A (388J)" To: "dev@oodt.apache.org" Subject: Re: Problem arising from XSD validation while configuring Crawler Thread-Topic: Problem arising from XSD validation while configuring Crawler Thread-Index: AQHOFgpvdg3881+50EK7puKQEm4uQZiWyvqAgACRngCAAAMOAIAAf+V7 Date: Wed, 6 Mar 2013 00:59:11 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Source-Sender: chris.a.mattmann@jpl.nasa.gov X-AUTH: Authorized X-Virus-Checked: Checked by ClamAV on apache.org s/Gave/Gabe/ Sent from my iPhone On Mar 5, 2013, at 4:29 PM, "Mattmann, Chris A (388J)" wrote: > Hey Gave, >=20 > Okey dokey great to hear! >=20 > Cheers, > Chris >=20 >=20 > On 3/5/13 9:10 AM, "Resneck, Gabriel M (388J)" > wrote: >=20 >> We ended up downloading the XSD file and changing the schemaLocation fie= ld >> value in each of the XML files in the crawler policy directory to the >> absolute path of that XSD file. It worked a treat! >>=20 >> Gabe =3D) >>=20 >>=20 >> On 3/5/13 12:29 AM, "Mattmann, Chris A (388J)" >> wrote: >>=20 >>> Hi Gabe, >>>=20 >>> This should be fixed in current OODT 0.5 and OODT 0.6-SNAPSHOT trunk. C= an >>> you try them? >>>=20 >>> Cheers, >>> Chris >>>=20 >>> On 2/28/13 3:22 PM, "Resneck, Gabriel M (388J)" >>> wrote: >>>=20 >>>> We in SMAP Land have been running into an issue while distributing job= s >>>> to nodes with no internet access. >>>>=20 >>>> Here's the stack trace: >>>>=20 >>>> org.apache.oodt.cas.resource.structs.exceptions.JobInputException: >>>> Failed >>>> to run task >>>> at=20 >>>> org.apache.oodt.cas.workflow.structs.TaskJob.execute(TaskJob.java:104) >>>> at=20 >>>> org.apache.oodt.cas.resource.system.extern.XmlRpcBatchStub$RunnableJob= .r >>>> u >>>> n >>>> (XmlRpcBatchStub.java:229) >>>> at java.lang.Thread.run(Thread.java:619) >>>> Caused by:=20 >>>> org.apache.oodt.cas.workflow.structs.exceptions.WorkflowTaskInstanceEx= ce >>>> p >>>> t >>>> ion: PGETask failed : Line 12 in XML document from URL >>>> [file:/project/spdm/subsys/deploy/spdm-crawler/policy/crawler-config.x= ml >>>> ] >>>> is invalid; nested exception is org.xml.sax.SAXParseException: >>>> cvc-elt.1: >>>> Cannot find the declaration of element 'beans'. >>>> at org.apache.oodt.cas.pge.PGETaskInstance.run(PGETaskInstance.java:45= 6) >>>> at=20 >>>> org.apache.oodt.cas.workflow.structs.TaskJob.execute(TaskJob.java:102) >>>> ... 2 more >>>> Caused by:=20 >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: >>>> Line 12 in XML document from URL >>>> [file:/project/spdm/subsys/deploy/spdm-crawler/policy/crawler-config.x= ml >>>> ] >>>> is invalid; nested exception is org.xml.sax.SAXParseException: >>>> cvc-elt.1: >>>> Cannot find the declaration of element 'beans'. >>>> at=20 >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBe= an >>>> D >>>> e >>>> finitions(XmlBeanDefinitionReader.java:369) >>>> at=20 >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBean= De >>>> f >>>> i >>>> nitions(XmlBeanDefinitionReader.java:313) >>>> at=20 >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBean= De >>>> f >>>> i >>>> nitions(XmlBeanDefinitionReader.java:290) >>>> at=20 >>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader= .l >>>> o >>>> a >>>> dBeanDefinitions(AbstractBeanDefinitionReader.java:131) >>>> at=20 >>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader= .l >>>> o >>>> a >>>> dBeanDefinitions(AbstractBeanDefinitionReader.java:147) >>>> at=20 >>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader= .l >>>> o >>>> a >>>> dBeanDefinitions(AbstractBeanDefinitionReader.java:173) >>>> at=20 >>>> org.springframework.context.support.AbstractXmlApplicationContext.load= Be >>>> a >>>> n >>>> Definitions(AbstractXmlApplicationContext.java:112) >>>> at=20 >>>> org.springframework.context.support.AbstractXmlApplicationContext.load= Be >>>> a >>>> n >>>> Definitions(AbstractXmlApplicationContext.java:79) >>>> at=20 >>>> org.springframework.context.support.AbstractRefreshableApplicationCont= ex >>>> t >>>> . >>>> refreshBeanFactory(AbstractRefreshableApplicationContext.java:101) >>>> at=20 >>>> org.springframework.context.support.AbstractApplicationContext.obtainF= re >>>> s >>>> h >>>> BeanFactory(AbstractApplicationContext.java:394) >>>> at=20 >>>> org.springframework.context.support.AbstractApplicationContext.refresh= (A >>>> b >>>> s >>>> tractApplicationContext.java:324) >>>> at=20 >>>> org.springframework.context.support.FileSystemXmlApplicationContext.>>> t >>>> (FileSystemXmlApplicationContext.java:124) >>>> at=20 >>>> org.springframework.context.support.FileSystemXmlApplicationContext.>>> t >>>> (FileSystemXmlApplicationContext.java:68) >>>> at=20 >>>> org.apache.oodt.cas.pge.PGETaskInstance.setCrawlerConfigurations(PGETa= sk >>>> I >>>> n >>>> stance.java:371) >>>> at=20 >>>> org.apache.oodt.cas.pge.PGETaskInstance.ingestProducts(PGETaskInstance= .j >>>> a >>>> v >>>> a:348) >>>> at org.apache.oodt.cas.pge.PGETaskInstance.run(PGETaskInstance.java:45= 4) >>>> ... 3 more >>>> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the >>>> declaration of element 'beans'. >>>> at=20 >>>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unk= no >>>> w >>>> n >>>> 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.XMLErrorReporter.reportError(Unknown Source) >>>> at=20 >>>> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknow= n >>>> Source) >>>> at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown >>>> Source) >>>> at=20 >>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkno= wn >>>> Source) >>>> at=20 >>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.sc= an >>>> R >>>> o >>>> otElementHook(Unknown Source) >>>> at=20 >>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD= is >>>> p >>>> a >>>> tcher.dispatch(Unknown Source) >>>> at=20 >>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk= no >>>> w >>>> n >>>> Source) >>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) >>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) >>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>>> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) >>>> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) >>>> at=20 >>>> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocume= nt >>>> ( >>>> D >>>> efaultDocumentLoader.java:73) >>>> at=20 >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBe= an >>>> D >>>> e >>>> finitions(XmlBeanDefinitionReader.java:361) >>>> ... 18 more >>>>=20 >>>> It would seem that XSD validation is what causes this issue. While >>>> looking for ways to solve this, we ran into >>>> https://jira.springsource.org/browse/SPR-5014 and thought, "Chris >>>> Mattmann, we know that guy!" >>>>=20 >>>> If any of you guys have solved this before (yes, including you, Chris)= , >>>> we'd love to know how you did it. >>>>=20 >>>> Thanks! >>>>=20 >>>> Gabe =3D) >=20