rimolive 1 de mar. de 2012
A classe em questão fica dentro da biblioteca do Hibernate EntityManager (no meu se chama hibernate-entitymanager-4.0.0.CR1.jar).
Onde você está fazendo deploy dessa aplicação? Tenha a certeza de que você está empacotando esse jar na sua aplicação.
evertonsilvagomesjav 1 de mar. de 2012
Entao amigo eu uso Weblogic dentro do weblogic tenho meu EAR que contem um ProjetoWEB e nesse projeto estão os jars dentro de web-inf/lib
rimolive 1 de mar. de 2012
Esse é o único erro que aparece nos logs? Poderia enviar o trecho completo? ao invés de colar aqui, cole no pastebin.com e poste aqui o link gerado por ele.
evertonsilvagomesjav 1 de mar. de 2012
No console aparece isso:
< Failure occurred in the execution of deployment request with ID '1330653113684' for task '0' . Error is : 'weblogic.application.ModuleException: Exception preparing module: EJBModule(TesteEJB.jar)
'
weblogic . application . ModuleException : Exception preparing module : EJBModule ( TesteEJB . jar )
at weblogic . ejb . container . deployer . EJBModule . prepare ( EJBModule . java : 399 )
at weblogic . application . internal . flow . ModuleListenerInvoker . prepare ( ModuleListenerInvoker . java : 93 )
at weblogic . application . internal . flow . DeploymentCallbackFlow $ 1. next ( DeploymentCallbackFlow . java : 360 )
at weblogic . application . utils . StateMachineDriver . nextState ( StateMachineDriver . java : 26 )
at weblogic . application . internal . flow . DeploymentCallbackFlow . prepare ( DeploymentCallbackFlow . java : 56 )
Truncated . see log file for complete stacktrace
weblogic . deployment . EnvironmentException : Error processing persitence unit evertonconnection of module TesteEJB . jar : Error instantiating the Persistence Provider class org . hibernate . ejb . HibernatePersistence of the PersistenceUnit evertonconnection : java . lang . ClassNotFoundException : org . hibernate . ejb . HibernatePersistence
at weblogic . deployment . PersistenceUnitInfoImpl . createEntityManagerFactory ( PersistenceUnitInfoImpl . java : 258 )
at weblogic . deployment . PersistenceUnitInfoImpl .< init > ( PersistenceUnitInfoImpl . java : 110 )
at weblogic . deployment . AbstractPersistenceUnitRegistry . storeDescriptors ( AbstractPersistenceUnitRegistry . java : 316 )
at weblogic . deployment . AbstractPersistenceUnitRegistry . loadPersistenceDescriptor ( AbstractPersistenceUnitRegistry . java : 230 )
at weblogic . deployment . ModulePersistenceUnitRegistry .< init > ( ModulePersistenceUnitRegistry . java : 58 )
Truncated . see log file for complete stacktrace
>
< 01 / 03 / 2012 22 h52min01s BRT > < Warning > < Deployer > < BEA - 149004 > < Failures were detected while initiating deploy task for application 'TesteEAR' .>
< 01 / 03 / 2012 22 h52min01s BRT > < Warning > < Deployer > < BEA - 149078 > < Stack trace for message 149004
weblogic . application . ModuleException : Exception preparing module : EJBModule ( TesteEJB . jar )
at weblogic . ejb . container . deployer . EJBModule . prepare ( EJBModule . java : 399 )
at weblogic . application . internal . flow . ModuleListenerInvoker . prepare ( ModuleListenerInvoker . java : 93 )
at weblogic . application . internal . flow . DeploymentCallbackFlow $ 1. next ( DeploymentCallbackFlow . java : 360 )
at weblogic . application . utils . StateMachineDriver . nextState ( StateMachineDriver . java : 26 )
at weblogic . application . internal . flow . DeploymentCallbackFlow . prepare ( DeploymentCallbackFlow . java : 56 )
Truncated . see log file for complete stacktrace
weblogic . deployment . EnvironmentException : Error processing persitence unit evertonconnection of module TesteEJB . jar : Error instantiating the Persistence Provider class org . hibernate . ejb . HibernatePersistence of the PersistenceUnit evertonconnection : java . lang . ClassNotFoundException : org . hibernate . ejb . HibernatePersistence
at weblogic . deployment . PersistenceUnitInfoImpl . createEntityManagerFactory ( PersistenceUnitInfoImpl . java : 258 )
at weblogic . deployment . PersistenceUnitInfoImpl .< init > ( PersistenceUnitInfoImpl . java : 110 )
at weblogic . deployment . AbstractPersistenceUnitRegistry . storeDescriptors ( AbstractPersistenceUnitRegistry . java : 316 )
at weblogic . deployment . AbstractPersistenceUnitRegistry . loadPersistenceDescriptor ( AbstractPersistenceUnitRegistry . java : 230 )
at weblogic . deployment . ModulePersistenceUnitRegistry .< init > ( ModulePersistenceUnitRegistry . java : 58 )
Truncated . see log file for complete stacktrace
>