Backend/Errors

[스프링] javax_naming_NameNotFoundException_Name is not bound in this Context_ Unable to find 에러

마로그래머 2021. 8. 7. 19:04
반응형

javax_naming_NameNotFoundException_Name is not bound in this Context_ Unable to find

javax_naming_NameNotFoundException_Name is not bound in this Context_ Unable to find 경고문이 나올 때 해결방법

증상

DAOJDCP를 연동하려고 할 때 javax_naming_NameNotFoundException_Name is not bound in this Context_ Unable to find 이라는 경고문이 뜨며 에러가 났다.

원인

이름이 맞지 않아 찾을 수 없다는 뜻.

TomcatContext.xml에는Oracle로 등록을 했는데

DAOcontext객체에는 Oracl로 오타가 났었었다.

해결

이름을 제대로 적어주면 해결된다.

  • Contect.xml 파일의 Resource에 저장했던 name을 그대로 DAOContext객체에 똑같이 넣어준다.
  • 꼭 나와 같은 케이스가 아니더라도 네이밍이 잘못됐다는 뜻이니 이름을 잘 살펴보자.
반응형