title: AbstractMethodError: javax.ws.rs.core.UriBuilder.uri in REST, EJB Application
body: <p>I have troubles with my <code>pom.xml</code> file. I know, there is many topics about this issue, but any of them answers my problem. </p>
  
  <pre><code>@Path("/actors")
  public class MainController {
  
      @EJB
      private ActorDaoLocal actorDao;  
  
  }
  
  @Local
  public interface ActorDaoLocal { 
    //some stuff here
  }
  
  @Stateless
  public class ActorDao implements ActorDaoLocal {
  
    @PersistenceContext
    private EntityManager em ; 
    //some stuff here 
  }
  
  @ManagedBean(name = "ActorBean")
  @ApplicationScoped
  public class ActorBean {
  
      @EJB
      private ActorDaoLocal usersDao;
  
  }
  </code></pre>
  
  <p>In my application, when I haven't annotations in <code>ActorBean</code> as follows:</p>
  
  <pre><code>@ManagedBean(name = "ActorBean")
  @ApplicationScoped 
  </code></pre>
  
  <p>actorDao is null in <code>MainController</code> </p>
  
  <p>However, when I added this annotation and dependencies for it I am obtaining Exceptions: </p>
  
  <pre class="lang-xml prettyprint-override"><code>java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
      at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:651)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  </code></pre>
  
  <p>My <code>pom.xml</code>: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;log4j&lt;/groupId&gt;
      &lt;artifactId&gt;log4j&lt;/artifactId&gt;
      &lt;version&gt;1.2.17&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;asm&lt;/groupId&gt;
      &lt;artifactId&gt;asm&lt;/artifactId&gt;
      &lt;version&gt;3.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-core-asl&lt;/artifactId&gt;
      &lt;version&gt;1.9.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-jaxrs&lt;/artifactId&gt;
      &lt;version&gt;1.9.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
      &lt;version&gt;1.9.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-xc&lt;/artifactId&gt;
      &lt;version&gt;1.9.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
      &lt;version&gt;1.18&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-core&lt;/artifactId&gt;
      &lt;version&gt;1.18&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
      &lt;version&gt;1.18&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
      &lt;version&gt;1.18&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-servlet&lt;/artifactId&gt;
      &lt;version&gt;1.18&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
      &lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
      &lt;version&gt;1.1.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.ejb&lt;/groupId&gt;
      &lt;artifactId&gt;ejb-api&lt;/artifactId&gt;
      &lt;version&gt;3.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
      &lt;artifactId&gt;eclipselink&lt;/artifactId&gt;
      &lt;version&gt;2.5.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax&lt;/groupId&gt;
      &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
      &lt;version&gt;7.0&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Please help me correct this, I can't find mistake in my pom file. </p>
  
  <p>I am working at Tomcat 8</p>