Applications runs fine when i run in my local server and with the same instance when i am trying to run in another server/remoter server it gives me the error java.lang.NoClassDefFoundError: org/hibernate/persister/entity/EntityPersister and some times it give me the error
My EAR contains a JAR and a WAR. and if we see the order of deployement in org.jboss.deployment.MainDeployer-xmbean.xml is
and hibernate3.jar is present in C:\JBOSS Server\server\CONSServer\lib
First of all, are you using Hibernate-core or JPA using Hibernate implementation?
Looking at the error, I guess you're tyring to use JPA. Hence, only the hibernate3.jar file is not enough. There are a lot of others JARs file required. Also, you will need to download the Hibernate-annotation and Hibernate-EntityManager packages.