Ajuda Erro JPA [Resolvido]

Pessoal estou recebendo o seguinte erro:

[quote]Exception in thread “main” javax.persistence.PersistenceException: No Persistence provider for EntityManager named NotasPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Local Exception Stack:
Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [NotasPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class br.com.dnasolution.entity.TbDocumento] uses a non-entity [class br.com.dnasolution.entity.TbProtocolo] as target entity in the relationship attribute [private br.com.dnasolution.entity.TbProtocolo br.com.dnasolution.entity.TbDocumento.cdProtocolo].
at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at br.com.dnasolution.dao.Conexao.conectar(Conexao.java:30)
at br.com.dnasolution.gui.GerenciarProtocoloJF.(GerenciarProtocoloJF.java:28)
at notas.Main.main(Main.java:99)
Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [NotasPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class br.com.dnasolution.entity.TbDocumento] uses a non-entity [class br.com.dnasolution.entity.TbProtocolo] as target entity in the relationship attribute [private br.com.dnasolution.entity.TbProtocolo br.com.dnasolution.entity.TbDocumento.cdProtocolo].
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:643)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:171)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:239)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
… 5 more
Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [NotasPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class br.com.dnasolution.entity.TbDocumento] uses a non-entity [class br.com.dnasolution.entity.TbProtocolo] as target entity in the relationship attribute [private br.com.dnasolution.entity.TbProtocolo br.com.dnasolution.entity.TbDocumento.cdProtocolo].
at oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
… 10 more
Caused by: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class br.com.dnasolution.entity.TbDocumento] uses a non-entity [class br.com.dnasolution.entity.TbProtocolo] as target entity in the relationship attribute [private br.com.dnasolution.entity.TbProtocolo br.com.dnasolution.entity.TbDocumento.cdProtocolo].
at oracle.toplink.essentials.exceptions.ValidationException.nonEntityTargetInRelationship(ValidationException.java:1140)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwNonEntityTargetInRelationship(MetadataValidator.java:321)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.getReferenceDescriptor(RelationshipAccessor.java:164)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ObjectAccessor.processOneToOneForeignKeyRelationship(ObjectAccessor.java:128)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ObjectAccessor.processOwningMappingKeys(ObjectAccessor.java:205)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ManyToOneAccessor.process(ManyToOneAccessor.java:121)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.processRelationship(RelationshipAccessor.java:290)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProject.processRelationshipDescriptors(MetadataProject.java:579)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProject.process(MetadataProject.java:512)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:246)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:370)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
… 9 more

The following providers:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.

    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
    at br.com.dnasolution.dao.Conexao.conectar(Conexao.java:30)
    at br.com.dnasolution.gui.GerenciarProtocoloJF.<init>(GerenciarProtocoloJF.java:28)
    at notas.Main.main(Main.java:99)

Java Result: 1
BUILD SUCCESSFUL (total time: 20 seconds)
[/quote]

pelo q eu entendi ele fala q a minha classe TbDocumento esta referenciando uma nao entity TbProtocolo mas as duas sao entitys… o netbeans q criou…

segue elas
TbDocumento


@Entity
@Table(name = "tb_documento", schema="db_notas")
@SequenceGenerator(sequenceName="tb_documento_cd_documento_seq",allocationSize=1, initialValue=0, name = "tb_documento_cd_documento_seq")
@NamedQueries({@NamedQuery(name = "TbDocumento.findByCdDocumento", query = "SELECT t FROM TbDocumento t WHERE t.cdDocumento = :cdDocumento"), @NamedQuery(name = "TbDocumento.findByNmDocumento", query = "SELECT t FROM TbDocumento t WHERE t.nmDocumento = :nmDocumento"), @NamedQuery(name = "TbDocumento.findByNrLivro", query = "SELECT t FROM TbDocumento t WHERE t.nrLivro = :nrLivro"), @NamedQuery(name = "TbDocumento.findByNrFolha", query = "SELECT t FROM TbDocumento t WHERE t.nrFolha = :nrFolha"), @NamedQuery(name = "TbDocumento.findByVlVenal", query = "SELECT t FROM TbDocumento t WHERE t.vlVenal = :vlVenal"), @NamedQuery(name = "TbDocumento.findByVlNegocio", query = "SELECT t FROM TbDocumento t WHERE t.vlNegocio = :vlNegocio"), @NamedQuery(name = "TbDocumento.findByDtPrevisaoDocumento", query = "SELECT t FROM TbDocumento t WHERE t.dtPrevisaoDocumento = :dtPrevisaoDocumento")})
public class TbDocumento implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY, generator="tb_documento_cd_documento_seq") 
    @Column(name = "cd_documento", nullable = false)
    private Integer cdDocumento;
    @Column(name = "nm_documento", nullable = false)
    private String nmDocumento;
    @Column(name = "nr_livro")
    private String nrLivro;
    @Column(name = "nr_folha")
    private String nrFolha;
    @Column(name = "vl_venal", scale=12, precision=2)
    private BigDecimal vlVenal;
    @Column(name = "vl_negocio", scale=12, precision=2)
    private BigDecimal vlNegocio;
    @Column(name = "dt_previsao_documento")
    @Temporal(TemporalType.DATE)
    private Date dtPrevisaoDocumento;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "tbDocumento")
    private Collection<TbDocumentoAndamento> tbDocumentoAndamentoCollection;
    @OneToMany(mappedBy = "cdDocumento")
    private Collection<TbParte> tbParteCollection;
    @JoinColumn(name = "cd_funcionario", referencedColumnName = "cd_funcionario")
    @ManyToOne
    private TbFuncionario cdFuncionario;
    @JoinColumn(name = "cd_natureza", referencedColumnName = "cd_natureza")
    @ManyToOne
    private TbNatureza cdNatureza;
    @JoinColumn(name = "cd_protocolo", referencedColumnName = "cd_protocolo")
    @ManyToOne
    private TbProtocolo cdProtocolo;
    @JoinColumn(name = "cd_titulo", referencedColumnName = "cd_titulo")
    @ManyToOne
    private TbTitulo cdTitulo;

TbProtocolo

@Entity
@Table(name = "tb_protocolo", schema="db_notas")
@SequenceGenerator(sequenceName="tb_protocolo_cd_protocolo_seq",allocationSize=1, initialValue=0, name = "tb_protocolo_cd_protocolo_seq")
@NamedQueries({@NamedQuery(name = "TbProtocolo.findByCdProtocolo", query = "SELECT t FROM TbProtocolo t WHERE t.cdProtocolo = :cdProtocolo"), @NamedQuery(name = "TbProtocolo.findByNmApresentante", query = "SELECT t FROM TbProtocolo t WHERE t.nmApresentante = :nmApresentante"), @NamedQuery(name = "TbProtocolo.findByNrTelefoneApresentante", query = "SELECT t FROM TbProtocolo t WHERE t.nrTelefoneApresentante = :nrTelefoneApresentante"), @NamedQuery(name = "TbProtocolo.findByNmEmailApresentante", query = "SELECT t FROM TbProtocolo t WHERE t.nmEmailApresentante = :nmEmailApresentante"), @NamedQuery(name = "TbProtocolo.findByDtEntradaProtocolo", query = "SELECT t FROM TbProtocolo t WHERE t.dtEntradaProtocolo = :dtEntradaProtocolo"), @NamedQuery(name = "TbProtocolo.findByHrEntradaProtocolo", query = "SELECT t FROM TbProtocolo t WHERE t.hrEntradaProtocolo = :hrEntradaProtocolo"), @NamedQuery(name = "TbProtocolo.findByDtEntregaProtocolo", query = "SELECT t FROM TbProtocolo t WHERE t.dtEntregaProtocolo = :dtEntregaProtocolo"), @NamedQuery(name = "TbProtocolo.findByHrEntregaProtocolo", query = "SELECT t FROM TbProtocolo t WHERE t.hrEntregaProtocolo = :hrEntregaProtocolo"), @NamedQuery(name = "TbProtocolo.findByVlProtocolo", query = "SELECT t FROM TbProtocolo t WHERE t.vlProtocolo = :vlProtocolo")})
public class TbProtocolo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY, generator="tb_protocolo_cd_protocolo_seq") 
    @Column(name = "cd_protocolo", nullable = false)
    private Integer cdProtocolo;
    @Column(name = "nm_apresentante")
    private String nmApresentante;
    @Column(name = "nr_telefone_apresentante")
    private String nrTelefoneApresentante;
    @Column(name = "nm_email_apresentante")
    private String nmEmailApresentante;
    @Column(name = "dt_entrada_protocolo")
    @Temporal(TemporalType.DATE)
    private Date dtEntradaProtocolo;
    @Column(name = "hr_entrada_protocolo")
    @Temporal(TemporalType.TIME)
    private Date hrEntradaProtocolo;
    @Column(name = "dt_entrega_protocolo")
    @Temporal(TemporalType.DATE)
    private Date dtEntregaProtocolo;
    @Column(name = "hr_entrega_protocolo")
    @Temporal(TemporalType.TIME)
    private Date hrEntregaProtocolo;
    @Column(name = "vl_protocolo", scale=12, precision=2)
    private BigDecimal vlProtocolo;
    @OneToMany(mappedBy = "cdProtocolo")
    private Collection<TbDocumento> tbDocumentoCollection;

alguem ae sabe??

*********** nao tinha declarado a classe no meu persistence.xml

Posta a solução,por favor.

Vou chutar…
o seu persistence.xml estava sem a declaração do provider
Ex:

...
  <persistence-unit name="punit">
      [b]<provider>org.hibernate.ejb.HibernatePersistence</provider>[/b]
  </persistence-unit>	
</persistence>

nao… eu nao tinha declarado a classe no persistence
foi so add

br.com.dnasolution.entity.TbProtocolo

e as outras q faltavam no persistence.xml