I see problem here:
queryTeste.append("FROM status s, fabric f ").append("s.descricao like '%"+request.getParameter("name")+"%' ")
your query misses WHERE keyword, it should be:
queryTeste.append("FROM status s, fabric f WHERE ").append("s.descricao like '%"+request.getParameter("name")+"%' ")
single % acts as wildcard %% acts as literal %, so you may want to filter value of request.getParameter("name") and make sure it does not have any '%' inside. If it does you need to prefix them with another '%' or '\%'