Relatório + Vraptor + Postgresql [resolvido]

Pessoal, bom dia ! estou com um problema muito estranho “não é impotência” ! e outra coisa ! estou migrando um sistema do Governo para Postgresql… ele funciona normal em MySQL, mas não gera os relatórios em Postgres…

Segue ó código:

[code]package br.com.catequese.dao;

import br.com.caelum.vraptor.interceptor.download.InputStreamDownload;
import br.com.caelum.vraptor.ioc.Component;
import br.com.catequese.to.Aluno;
//import com.mysql.jdbc.Connection;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperRunManager;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Restrictions;

@Component
public class AlunoDao {
private final Session session;

public AlunoDao(Session session) {
    this.session = session;        
}

public void salva(Aluno aluno){
    Transaction tx = session.beginTransaction();
    session.save(aluno);
    tx.commit();
}

public void excluir(Aluno aluno) throws Exception{
    try{
        Transaction tx = session.beginTransaction();
        session.delete(aluno);
        tx.commit();
    }catch(Exception ex){
        throw new Exception("Erro ao excluir Aluno. <br />O mesmo tem referência a outros dados.");
    }
}

public List&lt;Aluno&gt; listaTudo(){
    return this.session.createCriteria(Aluno.class).addOrder(Order.asc("nome")).list();
}

public Aluno carrega(Integer id) {
    return (Aluno) this.session.load(Aluno.class, id);
}
 
public void atualiza(Aluno aluno) {
    Transaction tx = session.beginTransaction();
    this.session.update(aluno);
    tx.commit();
}

public List&lt;Aluno&gt; busca(String nome) {
    return session.createCriteria(Aluno.class)
    .add(Restrictions.ilike("nome", nome, MatchMode.ANYWHERE))
    .list();
}

public Aluno carregaCodigo(long  d) throws Exception {
     Transaction tx = session.beginTransaction();
    String sql = "FROM Aluno WHERE codigo = " + d;
    Aluno aluno = null;
     Object object;
    try{
        object = (Aluno) session.createQuery(sql).uniqueResult();
   }catch(Exception e){
        throw new Exception("erro");
       
    }
    if(object == null)
        throw new Exception("erro");
     return (Aluno) object;
}

public long ultimaPosicao() throws Exception {
    Criteria  c = this.session.createCriteria(Aluno.class);
    c.setProjection(Projections.max("idAluno"));
    int num =  (Integer) c.uniqueResult();        
    long codigo = (12301 * num);
        return codigo;        
}

private Connection getConexao() throws SQLException, ClassNotFoundException{
       Connection con = null;
       try{
           Class.forName("org.postgresql.Driver");
           String url = "jdbc:postgresql://localhost:5432/nutec";
           String usuario = "root";
           String senha = "debian23";
           con = (Connection) DriverManager.getConnection(url,usuario,senha);
       }catch(SQLException sql){
           System.out.println("erro ao conectar");
            sql.printStackTrace();
       }
       return con;
   }

public InputStreamDownload relAlunos(String turma) throws JRException, SQLException, ClassNotFoundException {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relAlunos.jasper");
    Map parametros = new HashMap();
    parametros.put("turma", turma);
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioAlunos.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relAlunosCarteirinhas(String turma) throws JRException, SQLException, ClassNotFoundException {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/carteirinha.jasper");
    Map parametros = new HashMap();
    parametros.put("turma", turma);
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioCarterinhas.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relChamada(String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamada.jasper");
    Map parametros = new HashMap();
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioChamadaGeral.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relChamadaDecGeral(String nome, String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaDecGeral.jasper");
    Map parametros = new HashMap();
    parametros.put("decanato", nome);
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioDecanatoGeral.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relChamadaDecanatoV(String nome, String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaDecanatoV.jasper");
    Map parametros = new HashMap();
    parametros.put("decanato", nome);
     parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioPresencaDecanato.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relChamadaDecanatoF(String nome, String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaDecanatoF.jasper");
    Map parametros = new HashMap();
    parametros.put("decanato", nome);
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioFaltaDecanato.pdf", true, os.toByteArray().length);
}


public InputStreamDownload relChamadaParGeral(String nome, String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaParGeral.jasper");
    Map parametros = new HashMap();
    parametros.put("paroquia", nome);
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioParoquiaGeral.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relChamadaParoquiaV(String nome, String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaParoquiaV.jasper");
    Map parametros = new HashMap();
    parametros.put("paroquia", nome);
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioPresencaParoquia.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relChamadaParoquiaF(String nome, String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaParoquiaF.jasper");
    Map parametros = new HashMap();
    parametros.put("paroquia", nome);
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioFaltaParoquia.pdf", true, os.toByteArray().length);
}

public String formataData(String data)throws Exception{
    String retorno = "";
    try{
        retorno = data.substring(6,10)+"-" + data.substring(3,5) + "-" +data.substring(0,2);
    }
    catch(Exception e) {
            throw new Exception("Erro na conversão da data" +
        "\nMensagem original:  " + e.getMessage());
    }
    return retorno;
}

public InputStreamDownload relChamadaSoma(String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaDetalhe.jasper");
    Map parametros = new HashMap();
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioChamadaDetalhe.pdf", true, os.toByteArray().length);
}

public InputStreamDownload relChamadaPeF(String turma, String dtInicio, String dtFim) throws JRException, SQLException, ClassNotFoundException, Exception {
    InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relChamadaVF.jasper");
    Map parametros = new HashMap();
    parametros.put("turma", turma);
    parametros.put("dtInicio", formataData(dtInicio));
    parametros.put("dtFim", formataData(dtFim));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
    InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relatorioChamadaPresencaeFalta.pdf", true, os.toByteArray().length);
}

}
[/code]

Qual o problema ? Algum erro ? Página branca?

só postar o código aqui não adianta juniorsatanas
não dá pra ter idéia do que tah acontecendo…

ou posta o erro, ou descreve como vc queria a saída e como ela foi de fato


no console:
[code]07/10/2010 13:43:53 com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Starting Grizzly Framework 1.9.18-k - Thu Oct 07 13:43:56 BRT 2010
INFO: Starting Grizzly Framework 1.9.18-k - Thu Oct 07 13:43:56 BRT 2010
INFO: Grizzly Framework 1.9.18-k started in: 58ms listening on port 4848
INFO: Grizzly Framework 1.9.18-k started in: 66ms listening on port 8181
INFO: Grizzly Framework 1.9.18-k started in: 50ms listening on port 3700
INFO: Grizzly Framework 1.9.18-k started in: 38ms listening on port 7676
INFO: Grizzly Framework 1.9.18-k started in: 88ms listening on port 8080
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
INFO: javassist.util.proxy.ProxyFactory.classLoaderProvider = org.glassfish.weld.WeldActivator$GlassFishClassLoaderProvider@108a93d9
INFO: SEC1002: Security Manager is OFF.
SEVERE: SEC5054: Certificate has expired: [
[
  Version: V1
  Subject: OU=Secure Server Certification Authority, O=&quot;RSA Data Security, Inc.&quot;, C=US
  Signature Algorithm: MD2withRSA, OID = 1.2.840.113549.1.1.2
  Key:  Sun RSA public key, 1000 bits
  modulus: 6144706769222379850430183405655235862870193813433361902309516534729547168229223442088128897090426025874990958624426272027915771330043379079076269082776443120496525109458437435793974957144923190172655546279112796066635455545786300647745888353781002359412766112775410851780140804282673804950495744761467
  public exponent: 65537
  Validity: [From: Tue Nov 08 21:00:00 BRT 1994,
               To: Thu Jan 07 20:59:59 BRT 2010]
  Issuer: OU=Secure Server Certification Authority, O=&quot;RSA Data Security, Inc.&quot;, C=US
  SerialNumber: [    02ad667e 4e45fe5e 576f3c98 195eddc0]
]
  Algorithm: [MD2withRSA]
  Signature:
0000: 65 DD 7E E1 B2 EC B0 E2   3A E0 EC 71 46 9A 19 11  e.......:..qF...
0010: B8 D3 C7 A0 B4 03 40 26   02 3E 09 9C E1 12 B3 D1  ......@&.&gt;......
0020: 5A F6 37 A5 B7 61 03 B6   5B 16 69 3B C6 44 08 0C  Z.7..a..[.i;.D..
0030: 88 53 0C 6B 97 49 C7 3E   35 DC 6C B9 BB AA DF 5C  .S.k.I.&gt;5.l....\
0040: BB 3A 2F 93 60 B6 A9 4B   4D F2 20 F7 CD 5F 7F 64  .:/.`..KM. .._.d
0050: 7B 8E DC 00 5C D7 FA 77   CA 39 16 59 6F 0E EA D3  ....\..w.9.Yo...
0060: B5 83 7F 4D 4D 42 56 76   B4 C9 5F 04 F8 38 F8 EB  ...MMBVv.._..8..
0070: D2 5F 75 5F CD 7B FC E5   8E 80 7C FC 50           ._u_........P
]
INFO: Security startup service called
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.
INFO: Security service(s) started successfully....
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Virtual server server loaded system default web module
SEVERE: log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
INFO: Loading application Catequese at /Catequese
INFO: Loading Catequese Application done is 12115 ms
INFO: GlassFish v3 (74.2) startup time : Felix(2868ms) startup services(13266ms) total(16134ms)
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Binding RMI port to *:8686
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://junior-desktop:8686/jndi/rmi://junior-desktop:8686/jmxrmi
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /usr/local/sges-v3/glassfish/domains/domain1/autodeploy/bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /tmp/fileinstall-6597245433213514835, felix.fileinstall.filter = null}
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /usr/local/sges-v3/glassfish/modules/autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /tmp/fileinstall-7609099883141603444, felix.fileinstall.filter = null}
INFO: Started bundle: file:/usr/local/sges-v3/glassfish/modules/autostart/osgi-web-container.jar
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Grizzly Framework 1.9.18-k started in: 2ms listening on port 8080
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Grizzly Framework 1.9.18-k started in: 4ms listening on port 8181
INFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: Installed /usr/local/sges-v3/glassfish/modules/autostart/org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /usr/local/sges-v3/glassfish/domains/domain1/autodeploy/bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /tmp/fileinstall-7098051337930260722, felix.fileinstall.filter = null}
SEVERE: log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
INFO: Loading application Catequese at /Catequese
INFO: Catequese was successfully deployed in 6.231 milliseconds.
INFO: 13:44:19,978  INFO Version:15 - Hibernate Annotations 3.4.0.GA

INFO: 13:44:20,012  INFO Environment:560 - Hibernate 3.3.2.GA

INFO: 13:44:20,017  INFO Environment:578 - loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password=****, hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.connection.url=jdbc:postgresql://localhost:5432/nutec, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.driver_class=org.postgresql.Driver}

INFO: 13:44:20,020  INFO Environment:771 - Bytecode provider name : javassist

INFO: 13:44:20,028  INFO Environment:652 - using JDK 1.4 java.sql.Timestamp handling

INFO: 13:44:20,160  INFO Version:14 - Hibernate Commons Annotations 3.1.0.GA

INFO: 13:44:20,166  INFO Configuration:1474 - configuring from resource: /hibernate.cfg.xml

INFO: 13:44:20,166  INFO Configuration:1451 - Configuration resource: /hibernate.cfg.xml

INFO: 13:44:20,272  INFO Configuration:1589 - Configured SessionFactory: null

INFO: 13:44:20,280  INFO HibernateSearchEventListenerRegister:53 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

INFO: 13:44:20,335  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Aluno

INFO: 13:44:20,397  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Aluno on table aluno

INFO: 13:44:20,474  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Turma

INFO: 13:44:20,475  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Turma on table turma

INFO: 13:44:20,476  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Professor

INFO: 13:44:20,479  INFO QueryBinder:64 - Binding Named query: Professor.findAll =&gt; SELECT p FROM Professor p

INFO: 13:44:20,479  INFO QueryBinder:64 - Binding Named query: Professor.findByIdProfessor =&gt; SELECT p FROM Professor p WHERE p.idProfessor = :idProfessor

INFO: 13:44:20,480  INFO QueryBinder:64 - Binding Named query: Professor.findByAtivDecanais =&gt; SELECT p FROM Professor p WHERE p.ativDecanais = :ativDecanais

INFO: 13:44:20,480  INFO QueryBinder:64 - Binding Named query: Professor.findByAtivProfissionais =&gt; SELECT p FROM Professor p WHERE p.ativProfissionais = :ativProfissionais

INFO: 13:44:20,481  INFO QueryBinder:64 - Binding Named query: Professor.findByCelular =&gt; SELECT p FROM Professor p WHERE p.celular = :celular

INFO: 13:44:20,481  INFO QueryBinder:64 - Binding Named query: Professor.findByCep =&gt; SELECT p FROM Professor p WHERE p.cep = :cep

INFO: 13:44:20,482  INFO QueryBinder:64 - Binding Named query: Professor.findByCpf =&gt; SELECT p FROM Professor p WHERE p.cpf = :cpf

INFO: 13:44:20,482  INFO QueryBinder:64 - Binding Named query: Professor.findByEndereco =&gt; SELECT p FROM Professor p WHERE p.endereco = :endereco

INFO: 13:44:20,483  INFO QueryBinder:64 - Binding Named query: Professor.findByFone =&gt; SELECT p FROM Professor p WHERE p.fone = :fone

INFO: 13:44:20,483  INFO QueryBinder:64 - Binding Named query: Professor.findByFormacao =&gt; SELECT p FROM Professor p WHERE p.formacao = :formacao

INFO: 13:44:20,484  INFO QueryBinder:64 - Binding Named query: Professor.findByNome =&gt; SELECT p FROM Professor p WHERE p.nome = :nome

INFO: 13:44:20,484  INFO QueryBinder:64 - Binding Named query: Professor.findByRg =&gt; SELECT p FROM Professor p WHERE p.rg = :rg

INFO: 13:44:20,485  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Professor on table professor

INFO: 13:44:20,487  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Trabalho

INFO: 13:44:20,488  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Trabalho on table trabalho

INFO: 13:44:20,493  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.TrabalhoEntrega

INFO: 13:44:20,495  INFO EntityBinder:422 - Bind entity br.com.catequese.to.TrabalhoEntrega on table TrabalhoEntrega

INFO: 13:44:20,497  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Etapa

INFO: 13:44:20,498  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Etapa on table etapa

INFO: 13:44:20,537  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Disciplina

INFO: 13:44:20,537  INFO QueryBinder:64 - Binding Named query: Disciplina.findAll =&gt; SELECT d FROM Disciplina d

INFO: 13:44:20,538  INFO QueryBinder:64 - Binding Named query: Disciplina.findByIdDisciplina =&gt; SELECT d FROM Disciplina d WHERE d.idDisciplina = :idDisciplina

INFO: 13:44:20,538  INFO QueryBinder:64 - Binding Named query: Disciplina.findByNome =&gt; SELECT d FROM Disciplina d WHERE d.nome = :nome

INFO: 13:44:20,539  INFO QueryBinder:64 - Binding Named query: Disciplina.findByDtInicio =&gt; SELECT d FROM Disciplina d WHERE d.dtInicio = :dtInicio

INFO: 13:44:20,539  INFO QueryBinder:64 - Binding Named query: Disciplina.findByDtFim =&gt; SELECT d FROM Disciplina d WHERE d.dtFim = :dtFim

INFO: 13:44:20,540  INFO QueryBinder:64 - Binding Named query: Disciplina.findByCargaHoraria =&gt; SELECT d FROM Disciplina d WHERE d.cargaHoraria = :cargaHoraria

INFO: 13:44:20,540  INFO QueryBinder:64 - Binding Named query: Disciplina.findByNrDias =&gt; SELECT d FROM Disciplina d WHERE d.nrDias = :nrDias

INFO: 13:44:20,541  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Disciplina on table disciplina

INFO: 13:44:20,546  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Decanato

INFO: 13:44:20,547  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Decanato on table decanato

INFO: 13:44:20,548  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.GrauInstrucao

INFO: 13:44:20,549  INFO EntityBinder:422 - Bind entity br.com.catequese.to.GrauInstrucao on table grauinstrucao

INFO: 13:44:20,552  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Paroquia

INFO: 13:44:20,553  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Paroquia on table paroquia

INFO: 13:44:20,554  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.ChamadaItem

INFO: 13:44:20,554  INFO EntityBinder:422 - Bind entity br.com.catequese.to.ChamadaItem on table chamadaItem

INFO: 13:44:20,558  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Chamada

INFO: 13:44:20,558  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Chamada on table chamada

INFO: 13:44:20,560  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.EstadoCivil

INFO: 13:44:20,560  INFO EntityBinder:422 - Bind entity br.com.catequese.to.EstadoCivil on table estadocivil

INFO: 13:44:20,562  INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Usuario

INFO: 13:44:20,562  INFO EntityBinder:422 - Bind entity br.com.catequese.to.Usuario on table usuario

INFO: 13:44:20,664  INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.Etapa.chamadaCollection -&gt; chamada

INFO: 13:44:20,668  INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.Decanato.alunoCollection -&gt; aluno

INFO: 13:44:20,669  INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.GrauInstrucao.alunoCollection -&gt; aluno

INFO: 13:44:20,669  INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.EstadoCivil.alunoCollection -&gt; aluno

INFO: 13:44:20,679  INFO Version:17 - Hibernate Validator 3.1.0.GA

INFO: 13:44:20,722  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)

INFO: 13:44:20,723  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20

INFO: 13:44:20,724  INFO DriverManagerConnectionProvider:68 - autocommit mode: false

INFO: 13:44:20,724  INFO DriverManagerConnectionProvider:103 - using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/nutec

INFO: 13:44:20,725  INFO DriverManagerConnectionProvider:109 - connection properties: {user=root, password=****}

INFO: 13:44:20,772  INFO SettingsFactory:114 - RDBMS: PostgreSQL, version: 8.4.4

INFO: 13:44:20,772  INFO SettingsFactory:115 - JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.3 JDBC3 with SSL (build 603)

INFO: 13:44:20,821  INFO Dialect:175 - Using dialect: org.hibernate.dialect.PostgreSQLDialect

INFO: 13:44:20,830  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)

INFO: 13:44:20,835  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

INFO: 13:44:20,835  INFO SettingsFactory:161 - Automatic flush during beforeCompletion(): disabled

INFO: 13:44:20,835  INFO SettingsFactory:165 - Automatic session close at end of transaction: disabled

INFO: 13:44:20,836  INFO SettingsFactory:172 - JDBC batch size: 15

INFO: 13:44:20,836  INFO SettingsFactory:175 - JDBC batch updates for versioned data: disabled

INFO: 13:44:20,838  INFO SettingsFactory:180 - Scrollable result sets: enabled

INFO: 13:44:20,838  INFO SettingsFactory:188 - JDBC3 getGeneratedKeys(): disabled

INFO: 13:44:20,839  INFO SettingsFactory:196 - Connection release mode: auto

INFO: 13:44:20,840  INFO SettingsFactory:214 - Default schema: catequese

INFO: 13:44:20,841  INFO SettingsFactory:223 - Default batch fetch size: 1

INFO: 13:44:20,841  INFO SettingsFactory:227 - Generate SQL with comments: disabled

INFO: 13:44:20,841  INFO SettingsFactory:231 - Order SQL updates by primary key: disabled

INFO: 13:44:20,842  INFO SettingsFactory:235 - Order SQL inserts for batching: disabled

INFO: 13:44:20,842  INFO SettingsFactory:397 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

INFO: 13:44:20,848  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory

INFO: 13:44:20,848  INFO SettingsFactory:243 - Query language substitutions: {}

INFO: 13:44:20,849  INFO SettingsFactory:248 - JPA-QL strict compliance: disabled

INFO: 13:44:20,849  INFO SettingsFactory:253 - Second-level cache: enabled

INFO: 13:44:20,850  INFO SettingsFactory:257 - Query cache: disabled

INFO: 13:44:20,850  INFO SettingsFactory:382 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

INFO: 13:44:20,850  INFO SettingsFactory:267 - Optimize cache for minimal puts: disabled

INFO: 13:44:20,851  INFO SettingsFactory:276 - Structured second-level cache entries: disabled

INFO: 13:44:20,862  INFO SettingsFactory:305 - Statistics: disabled

INFO: 13:44:20,863  INFO SettingsFactory:309 - Deleted entity synthetic identifier rollback: disabled

INFO: 13:44:20,863  INFO SettingsFactory:324 - Default entity-mode: pojo

INFO: 13:44:20,864  INFO SettingsFactory:328 - Named query checking : enabled

INFO: 13:44:20,968  INFO SessionFactoryImpl:193 - building session factory

INFO: 13:44:21,287  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured

INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
WARNING: PWC4011: Unable to set request character encoding to ISO-8859-1 from context /Catequese, because request parameters have already been read, or ServletRequest.getReader() has already been called
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session[/code]

no console:

[code]07/10/2010 13:43:53 com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix

INFO: Perform lazy SSL initialization for the listener 'http-listener-2’
INFO: Starting Grizzly Framework 1.9.18-k - Thu Oct 07 13:43:56 BRT 2010
INFO: Starting Grizzly Framework 1.9.18-k - Thu Oct 07 13:43:56 BRT 2010
INFO: Grizzly Framework 1.9.18-k started in: 58ms listening on port 4848
INFO: Grizzly Framework 1.9.18-k started in: 66ms listening on port 8181
INFO: Grizzly Framework 1.9.18-k started in: 50ms listening on port 3700
INFO: Grizzly Framework 1.9.18-k started in: 38ms listening on port 7676
INFO: Grizzly Framework 1.9.18-k started in: 88ms listening on port 8080
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
INFO: javassist.util.proxy.ProxyFactory.classLoaderProvider = org.glassfish.weld.WeldActivator$GlassFishClassLoaderProvider@108a93d9
INFO: SEC1002: Security Manager is OFF.
SEVERE: SEC5054: Certificate has expired: [
[
Version: V1
Subject: OU=Secure Server Certification Authority, O=“RSA Data Security, Inc.”, C=US
Signature Algorithm: MD2withRSA, OID = 1.2.840.113549.1.1.2
Key: Sun RSA public key, 1000 bits
modulus: 6144706769222379850430183405655235862870193813433361902309516534729547168229223442088128897090426025874990958624426272027915771330043379079076269082776443120496525109458437435793974957144923190172655546279112796066635455545786300647745888353781002359412766112775410851780140804282673804950495744761467
public exponent: 65537
Validity: [From: Tue Nov 08 21:00:00 BRT 1994,
To: Thu Jan 07 20:59:59 BRT 2010]
Issuer: OU=Secure Server Certification Authority, O=“RSA Data Security, Inc.”, C=US
SerialNumber: [ 02ad667e 4e45fe5e 576f3c98 195eddc0]
]
Algorithm: [MD2withRSA]
Signature:
0000: 65 DD 7E E1 B2 EC B0 E2 3A E0 EC 71 46 9A 19 11 e…:…qF…
0010: B8 D3 C7 A0 B4 03 40 26 02 3E 09 9C E1 12 B3 D1 …@&.>…
0020: 5A F6 37 A5 B7 61 03 B6 5B 16 69 3B C6 44 08 0C Z.7…a…[.i;.D…
0030: 88 53 0C 6B 97 49 C7 3E 35 DC 6C B9 BB AA DF 5C .S.k.I.>5.l…
0040: BB 3A 2F 93 60 B6 A9 4B 4D F2 20 F7 CD 5F 7F 64 .:/.`…KM. ….d
0050: 7B 8E DC 00 5C D7 FA 77 CA 39 16 59 6F 0E EA D3 …w.9.Yo…
0060: B5 83 7F 4D 4D 42 56 76 B4 C9 5F 04 F8 38 F8 EB …MMBVv…
…8…
0070: D2 5F 75 5F CD 7B FC E5 8E 80 7C FC 50 .u…P
]
INFO: Security startup service called
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.
INFO: Security service(s) started successfully…
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Virtual server server loaded system default web module
SEVERE: log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
INFO: Loading application Catequese at /Catequese
INFO: Loading Catequese Application done is 12115 ms
INFO: GlassFish v3 (74.2) startup time : Felix(2868ms) startup services(13266ms) total(16134ms)
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Binding RMI port to *:8686
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://junior-desktop:8686/jndi/rmi://junior-desktop:8686/jmxrmi
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /usr/local/sges-v3/glassfish/domains/domain1/autodeploy/bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /tmp/fileinstall-6597245433213514835, felix.fileinstall.filter = null}
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /usr/local/sges-v3/glassfish/modules/autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /tmp/fileinstall-7609099883141603444, felix.fileinstall.filter = null}
INFO: Started bundle: file:/usr/local/sges-v3/glassfish/modules/autostart/osgi-web-container.jar
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Grizzly Framework 1.9.18-k started in: 2ms listening on port 8080
INFO: Perform lazy SSL initialization for the listener 'http-listener-2’
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Grizzly Framework 1.9.18-k started in: 4ms listening on port 8181
INFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: Installed /usr/local/sges-v3/glassfish/modules/autostart/org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /usr/local/sges-v3/glassfish/domains/domain1/autodeploy/bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /tmp/fileinstall-7098051337930260722, felix.fileinstall.filter = null}
SEVERE: log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
INFO: Loading application Catequese at /Catequese
INFO: Catequese was successfully deployed in 6.231 milliseconds.
INFO: 13:44:19,978 INFO Version:15 - Hibernate Annotations 3.4.0.GA

INFO: 13:44:20,012 INFO Environment:560 - Hibernate 3.3.2.GA

INFO: 13:44:20,017 INFO Environment:578 - loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password=****, hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.connection.url=jdbc:postgresql://localhost:5432/nutec, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.driver_class=org.postgresql.Driver}

INFO: 13:44:20,020 INFO Environment:771 - Bytecode provider name : javassist

INFO: 13:44:20,028 INFO Environment:652 - using JDK 1.4 java.sql.Timestamp handling

INFO: 13:44:20,160 INFO Version:14 - Hibernate Commons Annotations 3.1.0.GA

INFO: 13:44:20,166 INFO Configuration:1474 - configuring from resource: /hibernate.cfg.xml

INFO: 13:44:20,166 INFO Configuration:1451 - Configuration resource: /hibernate.cfg.xml

INFO: 13:44:20,272 INFO Configuration:1589 - Configured SessionFactory: null

INFO: 13:44:20,280 INFO HibernateSearchEventListenerRegister:53 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

INFO: 13:44:20,335 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Aluno

INFO: 13:44:20,397 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Aluno on table aluno

INFO: 13:44:20,474 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Turma

INFO: 13:44:20,475 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Turma on table turma

INFO: 13:44:20,476 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Professor

INFO: 13:44:20,479 INFO QueryBinder:64 - Binding Named query: Professor.findAll => SELECT p FROM Professor p

INFO: 13:44:20,479 INFO QueryBinder:64 - Binding Named query: Professor.findByIdProfessor => SELECT p FROM Professor p WHERE p.idProfessor = :idProfessor

INFO: 13:44:20,480 INFO QueryBinder:64 - Binding Named query: Professor.findByAtivDecanais => SELECT p FROM Professor p WHERE p.ativDecanais = :ativDecanais

INFO: 13:44:20,480 INFO QueryBinder:64 - Binding Named query: Professor.findByAtivProfissionais => SELECT p FROM Professor p WHERE p.ativProfissionais = :ativProfissionais

INFO: 13:44:20,481 INFO QueryBinder:64 - Binding Named query: Professor.findByCelular => SELECT p FROM Professor p WHERE p.celular = :celular

INFO: 13:44:20,481 INFO QueryBinder:64 - Binding Named query: Professor.findByCep => SELECT p FROM Professor p WHERE p.cep = :cep

INFO: 13:44:20,482 INFO QueryBinder:64 - Binding Named query: Professor.findByCpf => SELECT p FROM Professor p WHERE p.cpf = :cpf

INFO: 13:44:20,482 INFO QueryBinder:64 - Binding Named query: Professor.findByEndereco => SELECT p FROM Professor p WHERE p.endereco = :endereco

INFO: 13:44:20,483 INFO QueryBinder:64 - Binding Named query: Professor.findByFone => SELECT p FROM Professor p WHERE p.fone = :fone

INFO: 13:44:20,483 INFO QueryBinder:64 - Binding Named query: Professor.findByFormacao => SELECT p FROM Professor p WHERE p.formacao = :formacao

INFO: 13:44:20,484 INFO QueryBinder:64 - Binding Named query: Professor.findByNome => SELECT p FROM Professor p WHERE p.nome = :nome

INFO: 13:44:20,484 INFO QueryBinder:64 - Binding Named query: Professor.findByRg => SELECT p FROM Professor p WHERE p.rg = :rg

INFO: 13:44:20,485 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Professor on table professor

INFO: 13:44:20,487 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Trabalho

INFO: 13:44:20,488 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Trabalho on table trabalho

INFO: 13:44:20,493 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.TrabalhoEntrega

INFO: 13:44:20,495 INFO EntityBinder:422 - Bind entity br.com.catequese.to.TrabalhoEntrega on table TrabalhoEntrega

INFO: 13:44:20,497 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Etapa

INFO: 13:44:20,498 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Etapa on table etapa

INFO: 13:44:20,537 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Disciplina

INFO: 13:44:20,537 INFO QueryBinder:64 - Binding Named query: Disciplina.findAll => SELECT d FROM Disciplina d

INFO: 13:44:20,538 INFO QueryBinder:64 - Binding Named query: Disciplina.findByIdDisciplina => SELECT d FROM Disciplina d WHERE d.idDisciplina = :idDisciplina

INFO: 13:44:20,538 INFO QueryBinder:64 - Binding Named query: Disciplina.findByNome => SELECT d FROM Disciplina d WHERE d.nome = :nome

INFO: 13:44:20,539 INFO QueryBinder:64 - Binding Named query: Disciplina.findByDtInicio => SELECT d FROM Disciplina d WHERE d.dtInicio = :dtInicio

INFO: 13:44:20,539 INFO QueryBinder:64 - Binding Named query: Disciplina.findByDtFim => SELECT d FROM Disciplina d WHERE d.dtFim = :dtFim

INFO: 13:44:20,540 INFO QueryBinder:64 - Binding Named query: Disciplina.findByCargaHoraria => SELECT d FROM Disciplina d WHERE d.cargaHoraria = :cargaHoraria

INFO: 13:44:20,540 INFO QueryBinder:64 - Binding Named query: Disciplina.findByNrDias => SELECT d FROM Disciplina d WHERE d.nrDias = :nrDias

INFO: 13:44:20,541 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Disciplina on table disciplina

INFO: 13:44:20,546 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Decanato

INFO: 13:44:20,547 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Decanato on table decanato

INFO: 13:44:20,548 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.GrauInstrucao

INFO: 13:44:20,549 INFO EntityBinder:422 - Bind entity br.com.catequese.to.GrauInstrucao on table grauinstrucao

INFO: 13:44:20,552 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Paroquia

INFO: 13:44:20,553 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Paroquia on table paroquia

INFO: 13:44:20,554 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.ChamadaItem

INFO: 13:44:20,554 INFO EntityBinder:422 - Bind entity br.com.catequese.to.ChamadaItem on table chamadaItem

INFO: 13:44:20,558 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Chamada

INFO: 13:44:20,558 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Chamada on table chamada

INFO: 13:44:20,560 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.EstadoCivil

INFO: 13:44:20,560 INFO EntityBinder:422 - Bind entity br.com.catequese.to.EstadoCivil on table estadocivil

INFO: 13:44:20,562 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.catequese.to.Usuario

INFO: 13:44:20,562 INFO EntityBinder:422 - Bind entity br.com.catequese.to.Usuario on table usuario

INFO: 13:44:20,664 INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.Etapa.chamadaCollection -> chamada

INFO: 13:44:20,668 INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.Decanato.alunoCollection -> aluno

INFO: 13:44:20,669 INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.GrauInstrucao.alunoCollection -> aluno

INFO: 13:44:20,669 INFO CollectionBinder:650 - Mapping collection: br.com.catequese.to.EstadoCivil.alunoCollection -> aluno

INFO: 13:44:20,679 INFO Version:17 - Hibernate Validator 3.1.0.GA

INFO: 13:44:20,722 INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)

INFO: 13:44:20,723 INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20

INFO: 13:44:20,724 INFO DriverManagerConnectionProvider:68 - autocommit mode: false

INFO: 13:44:20,724 INFO DriverManagerConnectionProvider:103 - using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/nutec

INFO: 13:44:20,725 INFO DriverManagerConnectionProvider:109 - connection properties: {user=root, password=****}

INFO: 13:44:20,772 INFO SettingsFactory:114 - RDBMS: PostgreSQL, version: 8.4.4

INFO: 13:44:20,772 INFO SettingsFactory:115 - JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.3 JDBC3 with SSL (build 603)

INFO: 13:44:20,821 INFO Dialect:175 - Using dialect: org.hibernate.dialect.PostgreSQLDialect

INFO: 13:44:20,830 INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)

INFO: 13:44:20,835 INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

INFO: 13:44:20,835 INFO SettingsFactory:161 - Automatic flush during beforeCompletion(): disabled

INFO: 13:44:20,835 INFO SettingsFactory:165 - Automatic session close at end of transaction: disabled

INFO: 13:44:20,836 INFO SettingsFactory:172 - JDBC batch size: 15

INFO: 13:44:20,836 INFO SettingsFactory:175 - JDBC batch updates for versioned data: disabled

INFO: 13:44:20,838 INFO SettingsFactory:180 - Scrollable result sets: enabled

INFO: 13:44:20,838 INFO SettingsFactory:188 - JDBC3 getGeneratedKeys(): disabled

INFO: 13:44:20,839 INFO SettingsFactory:196 - Connection release mode: auto

INFO: 13:44:20,840 INFO SettingsFactory:214 - Default schema: catequese

INFO: 13:44:20,841 INFO SettingsFactory:223 - Default batch fetch size: 1

INFO: 13:44:20,841 INFO SettingsFactory:227 - Generate SQL with comments: disabled

INFO: 13:44:20,841 INFO SettingsFactory:231 - Order SQL updates by primary key: disabled

INFO: 13:44:20,842 INFO SettingsFactory:235 - Order SQL inserts for batching: disabled

INFO: 13:44:20,842 INFO SettingsFactory:397 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

INFO: 13:44:20,848 INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory

INFO: 13:44:20,848 INFO SettingsFactory:243 - Query language substitutions: {}

INFO: 13:44:20,849 INFO SettingsFactory:248 - JPA-QL strict compliance: disabled

INFO: 13:44:20,849 INFO SettingsFactory:253 - Second-level cache: enabled

INFO: 13:44:20,850 INFO SettingsFactory:257 - Query cache: disabled

INFO: 13:44:20,850 INFO SettingsFactory:382 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

INFO: 13:44:20,850 INFO SettingsFactory:267 - Optimize cache for minimal puts: disabled

INFO: 13:44:20,851 INFO SettingsFactory:276 - Structured second-level cache entries: disabled

INFO: 13:44:20,862 INFO SettingsFactory:305 - Statistics: disabled

INFO: 13:44:20,863 INFO SettingsFactory:309 - Deleted entity synthetic identifier rollback: disabled

INFO: 13:44:20,863 INFO SettingsFactory:324 - Default entity-mode: pojo

INFO: 13:44:20,864 INFO SettingsFactory:328 - Named query checking : enabled

INFO: 13:44:20,968 INFO SessionFactoryImpl:193 - building session factory

INFO: 13:44:21,287 INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured

INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
WARNING: PWC4011: Unable to set request character encoding to ISO-8859-1 from context /Catequese, because request parameters have already been read, or ServletRequest.getReader() has already been called
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - SessionfACTORY
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session
INFO: Iniciou o ComponentFactory - Session[/code]

A chamada ta assim :

public InputStreamDownload relatAlunos(String turma) throws JRException, SQLException, ClassNotFoundException { InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relatAlunos.jasper"); Map parametros = new HashMap(); parametros.put("turma", turma); ByteArrayOutputStream os = new ByteArrayOutputStream(); JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao()); InputStream document = new ByteArrayInputStream(os.toByteArray()); return new InputStreamDownload(document, "application/pdf", "relatorioDeAlunos.pdf", true, os.toByteArray().length); }

http://lh3.ggpht.com/_nTzBoYSeT2I/TLc2lcQOg-I/AAAAAAAAEMA/hovV8KSmN0M/s720/rel.png

qual é o problema mesmo?

Resolvido Resolvendo !

bibliotecas erradas … esse era o erro !