javax.naming.NameNotFoundException: Name comp/env/ejb not found in context "java


javax.naming.NameNotFoundException: Name comp/env/ejb not found in context "java:".

please refer below
jndi not matched will happen this issue

for example,

EJB module/Resource Reference: jdbc/xxx
Target Resource JNDI Name also shold be jdbc/xxx


just take care the resource should be the same with what you want

猜你喜欢

转载自veryls.iteye.com/blog/1841525