[O'Reilly JBoss 3.0/4.0 Workbook] - Re: how to run ex04_1a from remote ?
by atelieux
------- summary of (server) machine ---------
OS: Windows Vista (!!)
JDK & JRE: 1.6.0
JBOSS: 4.0.5
ANT: 1.7.0
JAVA DEV.ENV.: Eclipse 3.2.2
----------------------------------------------------------
Hi all! i'm a newbie with Jboss...i'm porting an application from jboss 3.0.5 (PERFECTLY WORKING) to jboss 4.0.5 GA, and when i run the application, java diplays this error:
[java] Root exception is java.io.InvalidClassException:
[java] org.jboss.proxy.ejb.GenericEJBInterceptor; local class incompatible:
[java] stream classdesc serialVersionUID = 3844706474734439975, local
[java] class serialVersionUID = 4582256576523491346
The error is displayed when the application do the context lookup.
I tried to make the changes explained in this thread for jboss 3.x but the problem remains...the issue persists on local and on remote side.
I post also the properties file:
[prop] PROVIDER_URL=192.168.2.82:1099
[prop] INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
Obviously, i re-build ALL ejb with the new jdk, 1.6.0, but the previous version was 1.4.0, with ant 1.7.0.
Somebody has any idea?? thanks...
A.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053387#4053387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053387
18Â years, 10Â months
[JBoss Seam] - Re: TestNG with hibernate
by cormet
Hi Chris,
Thx for the reply. I tried it but i gives me error. here are my simple code:
| EntityManagerFactory emf = Persistence.createEntityManagerFactory("mySession");
| EntityManager em = emf.createEntityManager();
| ManagedHibernateSession session = (ManagedHibernateSession) em.getDelegate();
|
and here are the error:
| javax.persistence.PersistenceException: No Persistence provider for EntityManager named mySession
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
| at com.medansoft.controller.GeneralJournalActionTest.createGeneralJournalTest(GeneralJournalActionTest.java:19)
| ... Removed 21 stack frames
|
| ===============================================
| GeneralJournalAction
| Tests run: 1, Failures: 1, Skips: 0
| ===============================================
|
|
| ===============================================
| Accounting System Test Suite
| Total tests run: 1, Failures: 1, Skips: 0
| ===============================================
|
As I named my hibernate session -- mySession in component.xml...
Any help will be appreciated...
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053379#4053379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053379
18Â years, 10Â months