본문 바로가기
Developer/Spring & eGovFrame

[ibatis] Element type "SELECT" must be declared.

by 순수한소년 2023. 9. 25.
728x90
반응형

Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'egov.sqlMapClient' defined in file
[D:\eGovFrameDev-3.6.0-64bit_test\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hrmAgri\WEB-INF\classes\egovframework\spring\com\context-sqlMap.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: file [D:\eGovFrameDev-3.6.0-64bit_hrm\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\test\WEB-INF\classes\egovframework\sqlmap\config\oracle\sql-map-config-hrmadm.xml];
nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 10;
columnNumber: 107; Element type "SELECT" must be declared.

 

기존

<SELECT id="testDAO.selectTestList" parameterClass="dataMap" resultClass="egovMap">

</select>

 

변경

<select id="testDAO.selectTestList" parameterClass="dataMap" resultClass="egovMap">

</select>

 

 

728x90
반응형