title: JavaWeb java.lang.NoClassDefFoundError: sun/security/ssl/HelloExtension
body: <p>I'm getting an error when trying to use a JavaWeb project using Glassfish 5.0. Everytime it tries to bring data from my SQL Database it gives me this error. <br>
  <em><strong>StandardWrapperValve[ListadoPersonas]: Servlet.service() for servlet ListadoPersonas threw exception
  java.lang.NoClassDefFoundError: sun/security/ssl/HelloExtension</strong></em></p>
  <p>Here is the servlet <code>ListadoEstadosCiviles</code> where I call the function which brings the data back from my database</p>
  <pre><code>GestorPersonas g = new GestorPersonas();
  ArrayList&lt;EstadoCivil&gt; lista = g.obtenerEstadosCiviles();
  for (EstadoCivil estadoCivil : lista) {
      out.println(&quot;&lt;tr&gt;&lt;td&gt;&quot; + estadoCivil.getId() + &quot;&lt;/td&gt;&lt;td&gt;&quot; + estadoCivil.getNombre() + &quot;&lt;/td&gt;&lt;/tr&gt;&quot;);
  }
  </code></pre>
  <p>Here is <code>GestorPersonas()</code> constructor:</p>
  <pre><code> public GestorPersonas() {
          try {
              Class.forName(&quot;com.microsoft.sqlserver.jdbc.SQLServerDriver&quot;);
          } catch (ClassNotFoundException ex) {
              Logger.getLogger(GestorPersonas.class.getName()).log(Level.SEVERE, null, ex);
          }
      }
  </code></pre>
  <p>Here is <code>obtenerEstadosCiviles()</code> method</p>
  <pre><code>public ArrayList&lt;EstadoCivil&gt; obtenerEstadosCiviles() {
      ArrayList&lt;EstadoCivil&gt; lista = new ArrayList&lt;&gt;();
      
      try {
          Connection conn = DriverManager.getConnection(CONN,USER,PASS);
          Statement st = conn.createStatement();
          ResultSet rs = st.executeQuery(&quot;select * from EstadosCiviles&quot;);
          // Si el select devuelve una única fila, en lugar de while, se usa un if
          while (rs.next()) {
              int id = rs.getInt(&quot;id&quot;);
              String nombre = rs.getString(&quot;nombre&quot;);
              EstadoCivil ec = new EstadoCivil(id, nombre);
              lista.add(ec);
          }
          
          rs.close();
          st.close();
          conn.close();
      } catch (SQLException ex) {
          Logger.getLogger(GestorPersonas.class.getName()).log(Level.SEVERE, null, ex);
      }
      
      return lista;
  }
  </code></pre>
  <p>I have no problem connecting my java application to sql, I think the problem is with glassfish but i cant figure out why it is not working</p>
  <p>This is the servlet that is calling <code>obtenerEstadosCiviles()</code> function, I expect that table full with data</p>
  <p>What I expect:
  <a href="https://i.stack.imgur.com/KOvxj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KOvxj.png" alt="Here it is where my list is supposedly rendered" /></a></p>
  <h2>UPDATE</h2>
  <p>I've just checked my plugins and it appears that Java Web and EE it´s activated but the &quot;Active&quot; symbol doesnt appears active. Could this be part of the problem?
  <a href="https://i.stack.imgur.com/NJ2VA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NJ2VA.png" alt="Java EE plugin" /></a></p>