Does this work? The java:comp/ is meant to be useable within a deployment's runtime and isn't necessarily setup such that it's accessible from MSC services.