본문 바로가기
프로그래밍

[JEUS]javax.naming.NameNotFoundException: 해결

by Cloud_Park 2020. 1. 21.

javax.naming.NameNotFoundException: OP_LOOKUP failed: Databasesource1 [Root exception is javax.naming.NameNotFoundException: [Databasesource1] Name not found.]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at jeus.jndi.jns.local.DirService.wrapClientException(DirService.java:982)
        at jeus.jndi.jns.local.JNDILocalClient.requestLookup(JNDILocalClient.java:122)
        at jeus.jndi.jns.local.DirService.lookup(DirService.java:493)
        at jeus.jndi.jns.local.DirService.lookup(DirService.java:427)
        at jeus.jndi.jns.local.DirService.dereference(DirService.java:108)

불러오는 중입니다...

 

Jeus에서  위와 같은 에러가 발생 시 

1. database resource에서  Name값이과  애플리케이션이 같은지 확인한다. (저는 Databaseressoure1 로 설정했어요)

 

 

 

2. 해당서버에 설정에 들어가 할당여부를 확인한다.

 

 

 

위 두가지 설정이 맞으면 해결!!