호롱다롱
10
2019-06-25 11:34:35
3
244

tomcat 실행시 에러가 발생합니다. ㅠㅠ



o.s.b.f.s.DefaultListableBeanFactory 2019-06-25 11:18:17 [localhost-startStop-1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\kr\co\enoline\qrams\service\UserService.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

o.s.b.f.s.DefaultListableBeanFactory 2019-06-25 11:18:17 [localhost-startStop-1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'assetsService' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\kr\co\enoline\qrams\service\AssetsService.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

o.s.b.f.s.DefaultListableBeanFactory 2019-06-25 11:18:17 [localhost-startStop-1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\kr\co\enoline\qrams\service\UserService.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

o.s.b.f.s.DefaultListableBeanFactory 2019-06-25 11:18:17 [localhost-startStop-1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'assetsService' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\kr\co\enoline\qrams\service\AssetsService.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\00.ArchivePortal\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\qr_ams\WEB-INF\classes\spring\context-sqlMapper.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sql/mysql/enoline-mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

=======================================================

톰캣을 실행하려고하면 위의 로그처럼 에러가 발생하네요..

어제 퇴근할때 까지만해도 잘됐는데 ...

출근해서 실행하니 이런 에러가 나네요... 컴퓨터도 껏다키고 톰캣 클린도 하고.. 프로젝트 클린도하고

이것저것 검색해가면서 3시간째 해보다가 안돼서 질문 남깁니다 ㅠㅠ

평소랑 다른게 있었다면 메이븐 업데이트한것 밖에 없는데 왜이럴까요 ㅠㅠ..

0
0
  • 답변 3

  • 스트라
    362
    2019-06-25 13:00:49 작성 2019-06-25 13:01:43 수정됨

    sql/mysql/enoline-mybatis-config.xml 요 파일이 이상해진 것 아닐까요

    Content is not allowed in prolog. 로 검색하니 이것저것 나오는데

    위 파일 내용 중에 오타나 이상한 문자 넣었는지 한번 확인해보세요

    0
  • iliiliilil
    426
    2019-06-25 13:01:43

    될지는 모르겠는데 이클립스 종료하고 관리자 권한으로 실행시켜보세요

    0
  • 호롱다롱
    10
    2019-06-25 14:55:09

    흐아 해결했습니다 !

    아무리해도 안돼서 모든 파일 다 찾아보니

    로그에서 나온 파일이 아닌 전혀 다른파일에서 저장하면서 s오타가 났었네요 ㅠㅠ

    답변 주신분들 감사합니다! 

    0
  • 로그인을 하시면 답변을 등록할 수 있습니다.