Weblogic cannot lookup EJB
<blockquote>
  <p>javax.naming.NameNotFoundException: While trying to look up comp/env/myPackage.ServiceImpl/eventQuery in /app/ejb/my-dao-2016.jar/#MyDaoImpl.; remaining name 'comp/env/myPackage/ServiceImpl/eventQuery'</p>
</blockquote>

<p>I'm working on Weblogic 12.2.1 now, and I get this error (and others like that, for every EJB in the application). EJBs are visible when I go into deployment summary, point is that they are under <code>my-ear</code> not <code>my-dao</code>, I have no idea why weblogic is looking there, <code>my-dao</code> has nothing to do with <code>eventQuery</code>. I tried to specifying a name/mappedName/lookup in the annotations, nothing works. I think that if I somehow manage to tell it to look in <code>/app/ejb/my-ear.jar</code>, not in <code>/app/ejb/my-dao-2016.jar</code> then everything will be fine, but I have no idea where to do that. Here's some code, but it's all pretty straightforward, I have no <code>ejb.xml</code> or anything like that, just annotations.</p>

<p>Oh, and probably the most important thing, everything works perfectly on Weblogic 12.1.3.</p>

<pre class="lang-java prettyprint-override"><code>public class ServiceImpl implements Service {
    @EJB
    private EventQuery eventQuery;
    ...
}
@Stateless
@Local(EventQuery.class)
public class EventQueryImpl implements EventQuery {
 ...
}
public interface EventQuery {
 ...
}
</code></pre>