티스토리 뷰
[에러로그] org.xml.sax.SAXException: Error: cvc-elt.1: Cannot find the declaration of element 'files'.: line=2, col=57
jSoboro 2014. 12. 18. 08:49XMLUtil 부분 getDocument 시 에러가 발생했다.
문제 해결은 간단했다. file_discription.xsd 파일 상단과 file_description.xml 파일 상단의 namespace를 맞춰주면 되는 일.
[file_description.xml]
<files xmlns="http://www.cyberlogitec.com/file_descripton">
[file_discription.xsd]
<xsd:schema xmlns="http://www.cyberlogitec.com/file_descripton" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.cyberlogitec.com/file_descripton" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:element name="files" type="filesType"/>
[발생한 에러 로그]
DEBUG 2014-12-17 15:52:03 com.clt.framework.component.util.xmldocuments.XMLDocumentUtils.getRootEle
ment(XMLDocumentUtils.java:174)
Load a xml document : /sitectx/KAMESVC/APP-INF/classes/resource/xml/file_description.xml, xml sche
ma : /sitectx/KAMESVC/APP-INF/classes/resource/xsd/file_discription.xsd
ERROR 2014-12-17 15:52:03 com.clt.framework.component.util.xmldocuments.XMLDocumentUtils.getDocumen
t(XMLDocumentUtils.java:293)
XSD File : file:/sitectx/KAMESVC/APP-INF/classes/resource/xsd/file_discription.xsd - XML Parsing e
rror! org.xml.sax.SAXException: null:null Error: cvc-elt.1: Cannot find the declaration of element
'files'.: line=2, col=57
org.xml.sax.SAXException: null:null Error: cvc-elt.1: Cannot find the declaration of element 'files
'.: line=2, col=57
at com.clt.framework.component.util.xmldocuments.XmlExceptionErrorHandler.error(XmlExceptio
nErrorHandler.java:30)
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.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(
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.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 javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.clt.framework.component.util.xmldocuments.XMLDocumentUtils.getDocument(XMLDocumentUt
ils.java:291)
at com.clt.framework.component.util.xmldocuments.XMLDocumentUtils.getRootElement(XMLDocumen
tUtils.java:197)
at com.clt.framework.component.util.xmldocuments.XMLDocumentUtils.getRootElement(XMLDocumen
tUtils.java:183)
at com.clt.framework.component.resource.FileXMLDAO.loadFileMappings(FileXMLDAO.java:344)
at com.clt.framework.component.util.file.FileMetaDataManager.load(FileMetaDataManager.java:
181)
at com.clt.framework.component.util.file.FileMetaDataManager.getFileMetaData(FileMetaDataMa
nager.java:106)
at com.clt.framework.component.attachment.file.upload.FileUpload.doUpload(FileUpload.java:1
43)
at com.clt.apps.gnoss.common.BatchMailCommon.sendMailForSchedule(BatchMailCommon.java:335)
at com.clt.apps.gnoss.webservice.batch.schedule.basic.PointToPointSchedule.doProcess(PointT
oPointSchedule.java:207)
at com.clt.apps.gnoss.webservice.batch.schedule.basic.Schedule.doWork(Schedule.java:74)
'DailyStep > IT' 카테고리의 다른 글
about JONSP (0) | 2016.02.05 |
---|---|
Instagram API 와 Instafeed.js (0) | 2015.02.13 |
계층구조 SQL 작성 팁 - ROOT/LEAF 판별 (0) | 2015.01.06 |
[Windows] JavaService.exe 서비스 등록/기동시 에러 (0) | 2014.12.22 |
Eclipse Ant Build 컴파일 오류 해결 (0) | 2014.11.12 |
- Total
- Today
- Yesterday
- 에릭 슈미트
- jsonp
- 정신병원에서 뛰쳐나온 디자인
- 하나님과 동행하는 삶
- Tim Tebow
- affordance
- 앤트 빌드
- 작고깊은모임
- 하나님을 자랑하라
- 강명식
- 골방기도
- cors
- shallow copy
- 성경읽기
- deep copy
- html5
- 땅의 의미
- 매일성경
- 예수를 자랑하자
- Dimension
- 아이맥스 명당
- How Google Works
- 큐티
- ant build
- 요셉
- 행동유도성
- 앨런 쿠퍼
- 벧엘
- 일어나 홍해를 건너자
- 창세기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |