org.xml.sax.SAXParseException: An invalid XML character unicode ...

http://e-docs.bea.com/wls/docs81/notes/resolved_sp03.html

기존의 탐켓에서 작업한 was 를 망할놈의-_- 웹로직(weblogic)에서 돌리려니 골머리가 지근지근..-_-;

이클립스에서 xml 설정파일을 좀 건드려줬더니 잘돌아가던 놈이 Exception 에러가 난다..

뭐 대충 이렇다
SAXParseException : An invalid XML character (Unicode: 0x10) was found in the element content of the document.
xml 읽어들이다가 인식안되는 유니코드 발견되었다는 건데.. 레퍼런스 찾아 헤메다가

웹로직 만든 bea edoc 에서 친절히 설명해 주신다.

Previously, it was not possible touse JavaServer Pages Standard Tag Library (JSTL) tags in JSPs thatinclude Japanese characters. When such a JSP is executed, an errorstarting with the following lines occurred:

java.io.IOException:javax.servlet.jsp.JspException: The taglib validator rejected the page:"org.xml.sax.SAXParseException: An invalid XML character (Unicode:0x82) was found in the CDATA section."

If the pageEncodingattribute was not specified in the page directive, the byte stream,which is used for taglib validation, was constructed using defaultencoding.

The problem was corrected with a code change to ensure use of the character encoding defined in the contentType attribute if the pageEncoding is not specified.



페이지 인코딩의 문제였다. xml 파일이 페이지 인코딩이 euc-kr로 되어있다. 이걸 UTF-8로 바꿀것인가... 아마도 주석 달면서 한글쓰면서 개행문자가 들어간걸 잘못 읽어들이는 문제인듯 하다.
invalid XML character 라면서 나온 유니코드가 개행문자 였으니..
아무튼 문제는 이것으로 일단락!

by namkee | 2007/04/23 18:14 | Task | 트랙백 | 덧글(0)

트랙백 주소 : http://namkee.egloos.com/tb/3337852
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

<< 이전 페이지다음 페이지 >>