This content has been marked as final.
Show 2 replies
-
1. Re: ClassCastException: org.jboss.portal.cms.impl.jcr.JCRCom
peterj Sep 15, 2006 11:35 AM (in response to pavlikus)Try this:
Object obj = CMSService.getCommandFactory();
System.out.println(""cmd factory is a " + obj.getClass());
Then you will know what to cast it to. Or we can discuss why the object rerturned by getCommandFactory is what it is. -
2. Re: ClassCastException: org.jboss.portal.cms.impl.jcr.JCRCom
pavlikus Sep 15, 2006 1:22 PM (in response to pavlikus)Thanks for response Peter,
It's solved. For unknown reason I packed portal-cms-lib.jar, jackrabbit-core-1.0.jar and other jars into my portlet's war file, so it gave me that classcast at deploy. Once I got rid of jars in war file - everything works fine.