Hi!
It's jboss portal 2.4 final.

I am getting classcast exception while trying to access jcr repository in my 
portlet:

CMS CMSService = (CMS) getPortletContext().getAttribute("CMS");
  | System.out.println(CMSService.getDefaultLocale()); //<= works fine!!!
  | org.jboss.portal.cms.CommandFactory factory = 
CMSService.getCommandFactory();

The last line throws classcast.
13:46:56,376 ERROR [HelloWorldPortlet] The portlet threw an exception
  | java.lang.ClassCastException: 
org.jboss.portal.cms.impl.jcr.JCRCommandFactory
  |     at $Proxy146.getCommandFactory(Unknown Source)
  |     at 
org.jboss.portlet.hello.HelloWorldPortlet.doView(HelloWorldPortlet.java:47)
  |     at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)

You see, I am on 'helloworld' phase, so would be appreciate any help/advice.

Thank you!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971907#3971907

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971907
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to