Got the same problem.
Caused by: javax.naming.NotContextException: eis/MyRessource cannot be listed
at com.sun.enterprise.naming.SerialContext.list(SerialContext.java:596)
If you look at the source of SerialContext.java 596 you see that the Exception is at least misleading.
The object is found in JNDI, but is not instance of Context (should it be?)
[code]
if (isjavaURL(name)) {
return javaUrlContext.list(name);
} else {
// Perhaps 'name' names a context
Object target = lookup(name);
if (target instanceof Context) {
return ((Context)target).list("");
}
throw new NotContextException(name + " cannot be listed");
}
[/code]
[Message sent by forum member 'weberjn' (weberjn)]
http://forums.java.net/jive/thread.jspa?messageID=288035