-
1. Re: Problem deployment .. ClassCastException
jae77 Jun 18, 2004 12:31 PM (in response to samfra)http://www.jboss.org/wiki/Wiki.jsp?page=HotDeployClassCastExceptions
let me know if you have further questions. -
2. Re: Problem deployment .. ClassCastException
samfra Jun 19, 2004 3:10 AM (in response to samfra)It helped me partially...
In fact, you can not do interfaces everytime for all classes...
I took the example of Team and Player.. but in fact, I need to deploy Hibernate and all my hibernate objects... and then I have to deploy my mbeans that accesses to hib-objects.
But I've found the following solution :
1- myutils.jar
2- hibernat2.jar
3-Hibernate.sar
|-- hibernat2 needed jars
|-- jboss-service.xml with classpath to HibernateObjects.jar
4- HibernateObjects.jar
5- MyMbean.sar
|- all my classes
|- jboss-service.xml with classpath to HibernateObjects.jar + hibernat2.jar
6- AnOtherMBean.sar
|- it needs to access to classes from MyMbean.sar .. I think I will have to make myMbean.JAR and store it externally to MyMbean.sar
I'm doing test, if I redeploy a jar, it should be ok for .sar that uses it ! -
3. Re: Problem deployment .. ClassCastException
kondjboss Jun 23, 2004 4:40 PM (in response to samfra)You can just specify linear dependency in your sars.