2011-02-24 2 views
0

응용 프로그램의 ORM에 iBatis를 사용하고 있습니다. 내 sqlmapconfig.xml 파일은 다음과 같습니다 : 우리는 두 운영 체제 우분투 및 Windows XP를 사용하여 개발하고 나는 파일 구분 기호를 사용할 필요가com.ibatis.common.xml.NodeletException : XML 구문 분석 중 오류를 해결하는 방법

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd"> 
<sqlMapConfig> 
<sqlMap resource="file:com${file.separator}platysgroup${file.separator}lmexserver${file.separator}mobile${file.separator}dao${file.separator}ibatis{file.separator}lmexusermobileinfo.xml" /> 
</sqlMapConfig> 

.

com.ibatis.common.xml.NodeletException: Error parsing XML. 
Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. 
Cause: java.io.IOException: Could not find resource file:comfile.separatorplatysgroupfile.separatorlmexserverfile.separatormobilefile.separatordaofile.separatoribatis{file.separator}lmexusermobileinfo.xml 

파일 lmexusermobileinfo.xml 패키지에 존재

가 제발 도와주세요 com.platysgroup.lmex.server.core.dao.ibatis :하지만 난 내 응용 프로그램을 실행할 때 그것은 나에게 아래와 같은 예외를 표시 이것을 해결하십시오.

+0

각 유형의 슬래시와 함께 두 환경을 모두 사용해 보셨습니까? 테스트 할 수있는 조합은 4 가지 뿐이지 만 존재하지 않는 문제는 해결할 수 있습니다. –

답변

1

간단히 '/'또는과 sqlmapconfig.xml${file.separator}을 대체 감사 '.'