-
1. Re: java.lang.ClassCastException
raja05 Jul 14, 2003 12:49 PM (in response to bigheadace)Are you deploying the war and jar files separately? There is a chance that the war file is still holding reference to the older Stub for the EJB and when you deploy the new jar, a classcastexception arises.
Post ur directory structure and how you deploy the files!!
-Raj -
2. Re: java.lang.ClassCastException
bigheadace Jul 15, 2003 7:09 AM (in response to bigheadace)EJB jar packaged using ant;
classpath:
-ejb
|__husky
|__ persistency
|_ classes....
servlet classes are packed by jar cf ;
kkk.war:
-web.xml
-jboss-web.xml
-struts-config.xml
-WEB-INF
|_ classes
|_husky
|_struts
|_ classes...
-other html or js files.
Is there anything not right there?
Thank you for your help.
It took me almost one week, damnit. -
3. Re: java.lang.ClassCastException
bigheadace Jul 15, 2003 7:12 AM (in response to bigheadace)there is misleading on display:
path is:
-ejb/husky/persistency/ EJB classes....
war:
-web.xml
-jboss-web.xml
-struts-config.xml
-WEB-INF/classes/husky/struts/ servlet classes...
-other html or js files. -
4. Re: java.lang.ClassCastException
raja05 Jul 15, 2003 8:21 AM (in response to bigheadace)if u are deploying teh jar and war separately, you might get this class cast exception. Try redeploying them both or package them into an ear and deploy as a singleunit.
if u deploy them separately, the war might be holding refrerences to the stub of the jar from an earlier deploy. -
5. Re: java.lang.ClassCastException
bigheadace Jul 17, 2003 5:42 AM (in response to bigheadace)Thank raja05.
I have resolved this problem.
this is caused by misusing interface during coding EJB.