1 Reply Latest reply on Jul 4, 2013 6:22 AM by Marko Strukelj

    java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

    Anish Antony Newbie

      Hi all

       

      In GateIn 3.2 got following exception when i create a page programattically, I am using GateIn 3.2 with 'Jboss 5 AS' as server

       

      3:40:41,911 ERROR [STDERR] java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

      13:40:41,913 ERROR [STDERR]           at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)

      13:40:41,914 ERROR [STDERR]           at org.exoplatform.portal.config.model.ModelUnmarshaller.unmarshall(ModelUnmarshaller.java:55)

      13:40:41,914 ERROR [STDERR]           at org.exoplatform.portal.config.NewPortalConfigListener.fromXML(NewPortalConfigListener.java:848)

      13:40:41,914 ERROR [STDERR]           at org.exoplatform.portal.config.NewPortalConfigListener.createPageFromTemplate(NewPortalConfigListener.java:783)

      13:40:41,914 ERROR [STDERR]           at org.exoplatform.portal.config.UserPortalConfigService.createPageTemplate(UserPortalConfigService.java:528)

      13:40:41,914 ERROR [STDERR]           at com.company.MyPortal.view.util.MyPortalGenericPortlet.createPage(MyPortalGenericPortlet.java:784)

      13:40:41,914 ERROR [STDERR]           at com.company.MyPortal.view.util.MyPortalGenericPortlet.doView(MyPortalGenericPortlet.java:755)

      13:40:41,914 ERROR [STDERR]           at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)

      13:40:41,914 ERROR [STDERR]           at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)

      13:40:41,914 ERROR [STDERR]           at com.company.MyPortal.view.util.MyPortalGenericPortlet.render(MyPortalGenericPortlet.java:129)

      13:40:41,914 ERROR [STDERR]           at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569)

      13:40:41,914 ERROR [STDERR]           at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)

      13:40:41,915 ERROR [STDERR]           at org.exoplatform.portal.application.ApplicationMonitoringFilter.doFilter(ApplicationMonitoringFilter.java:77)

      13:40:41,915 ERROR [STDERR]           at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)

      13:40:41,915 ERROR [STDERR]           at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)

      13:40:41,915 ERROR [STDERR]           at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)

       

       

      regards

      Anish Antony