title: Getting a guava error while trying to connect to Cassandra in a managed bean
body: <p>It says i need guava's version to be over 16, but I'm using guava 19. I even did mvn dependency:tree to check if something else is using guava, but there's only that version.    </p>
  
  <pre><code>@Named(value = "glicoseChart")
  @Dependent
  public class GlicoseChart implements Serializable{
  
  private LineChartModel glicoseModel;
  public LongTermPersistence longTerm;
  
  @PostConstruct
  public void init() {
      createLineModels();
  }
  
  public LineChartModel getGlicoseModel() {
      return glicoseModel;
  }
  
  private void createLineModels() {     
      glicoseModel = initLinearModel();
  }
  
  private LineChartModel initLinearModel() 
  {
      LineChartModel model = new LineChartModel();
  
  longTerm = new LongTermPersistence();
  
  // VVVVVVVVVVVVV
  longTerm.connectB();
  </code></pre>
  
  <p>It gives an error trying to connect. And the connection code:</p>
  
  <pre><code> public void connectB()
   {
     this.cluster = Cluster.builder()
             .addContactPoint("127.0.0.1")
             .withPort(9042)
             .build();
     session = cluster.connect();
  }
  </code></pre>
  
  <p>It gives an error trying to build the cluster. However, if I try to connect in another class, and not in the managed bean, it works just fine.</p>
  
  <p>However, inside the managed bean, i get this error:</p>
  
  <blockquote>
    <p>Caused by: com.datastax.driver.core.exceptions.DriverInternalError: Detected incompatible version of Guava in the classpath. You need 16.0.1 or higher. at com.datastax.driver.core.GuavaCompatibility.selectImplementation(GuavaCompatibility.java:138) at com.datastax.driver.core.GuavaCompatibility.(GuavaCompatibility.java:52)</p>
  </blockquote>
  
  <p>The thing is, i'm using guava-19.0, and it's saying im using 16 below, which is not true, since I can use that piece of code in another class' main. I'm using cassandra 3 btw.</p>