여러 프로젝트에서 모듈 공유 제거
WebSphere® Application Server에서 실행되는 여러 프로젝트에서 모듈이 공유되고 서버에서 프로젝트 중 하나가 제거되는 경우 다른 프로젝트를 다시 시작해야 Bean 클래스와 같은 프로젝트의 자원에 액세스할 수 있습니다.
중요사항: WebSphere Application Server traditional에 적용 가능
다른 프로젝트를 다시 시작하지 않으면 샘플 메시지에 표시된 것과 유사한 오류 메시지가 나타날 수 있습니다. 이 예에서는 EJB(Enterprise JavaBeans) 모듈과 여러 EAR(enterprise archive) 프로젝트를 사용합니다. 이 오류는 EAR을 제거할 때 서버에서 EJB 프로젝트의 JNDI(Java™ Naming and Directory Interface) 이름도 제거되므로 발생합니다.
다음은 샘플 오류 메시지입니다.
00000028 SystemOut O javax.naming.NameNotFoundException: Context: myCell/nodes/myNode/servers/server1, name: ejb/ejbs/Session20Home: First component in name Session20Home not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
at com.ibm.ws.naming.jndicos.CNContextImpl.processNotFoundException(CNContextImpl.java:4730)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1907)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1862)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1552)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1354)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at com.ibm.ivj.ejb.runtime.AbstractAccessBean.lookupAndCacheHome(AbstractAccessBean.java:224)
at com.ibm.ivj.ejb.runtime.AbstractAccessBean.getGlobalHome(AbstractAccessBean.java:216)
at com.ibm.ivj.ejb.runtime.AbstractAccessBean.getHome(AbstractAccessBean.java:249)
at ejbs.Session20AccessBean.ejbHome(Session20AccessBean.java:50)
at ejbs.Session20AccessBean.instantiateEJB(Session20AccessBean.java:80)