Hello,
I've a swing client that make calls to session bean on a JEE server (jonas).
On my client I've this error:
Code:
java.rmi.UnmarshalException: ClassNotFoundException unmarshalling returnjava.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet (no security manager: RMI class loader disabled)
at org.objectweb.carol.rmi.jrmp.server.JUnicastRef.invoke(JUnicastRef.java:178)
at test.interfaces.JOnASAdminSession739595833Remote_Stub.getAllUsers(Unknown Source)
Here is my session bean code:
Code:
public Collection getAllUsers() throws BusinessException {
Collection users = null;
try {
init();
session.connect();
users = userDAO.findAll();
} finally {
session.disconnect();
}
return users;
}
And here is my dao code:
Code:
public Collection findAll() throws InfrastructureException {
Collection users;
try {
users = session.createCriteria(User.class).list();
} catch (HibernateException ex) {
throw new InfrastructureException(ex);
}
return users;
}
If I put the hibernate3.jar in the client's classpath all work fine.
Is there a way to avoid to put this jar on the client?
Thanks in advance.