3 Replies Latest reply on Jun 7, 2012 12:04 PM by Naveen Koneru

    i want to export excel sheet  from seam ...

    Aboo salimon Newbie


      I am using jboss seam 2.1.1 GA

      1) I am having jboss.seam-excel.jar & jxl.jar.

      2)In Components.xml

      <components xmlns:excel="http://jboss.com/products/seam/excel"
      xmlns:document="http://jboss.com/products/seam/document"
      xsi:schemaLocation= http://jboss.com/products/seam/excel http://jboss.com/products/seam/excel/excel-2.1.xsd
      http://jboss.com/products/seam/document http://jboss.com/products/seam/document-2.1.xsd">

      when i used
      <excel:document-store use-extensions="true"/>
      I got deployment Exception.
      so changed to
      <document:document-store use-extensions="true"/>

      3) In web.xml


      <servlet-name>Document Store Servlet Excel</servlet-name>
      <servlet-class>org.jboss.seam.excel.DocumentStoreServlet</servlet-class>


      <servlet-mapping>
      <servlet-name>Document Store Servlet Excel</servlet-name>
      <url-pattern>*.xls</url-pattern>
      </servlet-mapping>


      <context-param>
      <param-name>webAppRootKey</param-name>
      <param-value>seam-excel</param-value>
      </context-param>

      4) In jboss-web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-web PUBLIC
      "-//JBoss//DTD Web Application 4.2//EN"
      "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">

      <jboss-web>
      <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
      seam.jboss.org:loader=seam-excel
      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>
      </class-loading>
      </jboss-web>

      5) In Jsp
      <h:commandButton id="export_top" type="submit" value="Export to Excel" action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}" />


      20:26:43,250 ERROR [application] javax.el.PropertyNotFoundException: /miscellaneous/addressbook.jsp @56,164 action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}": Property 'ExcelExport' not found on type org.jboss.seam.Namespace
      javax.faces.el.EvaluationException: javax.el.PropertyNotFoundException: /miscellaneous/addressbook.jsp @56,164 action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}": Property 'ExcelExport' not found on type org.jboss.seam.Namespace
      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:95)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
      at javax.faces.component.UICommand.broadcast(UICommand.java:387)
      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.el.PropertyNotFoundException: /miscellaneous/addressbook.jsp @56,164 action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}": Property 'ExcelExport' not found on type org.jboss.seam.Namespace
      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:70)
      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
      ... 51 more
      20:26:43,250 WARN [lifecycle] #{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}: javax.el.PropertyNotFoundException: /miscellaneous/addressbook.jsp @56,164 action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}": Property 'ExcelExport' not found on type org.jboss.seam.Namespace
      javax.faces.FacesException: #{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}: javax.el.PropertyNotFoundException: /miscellaneous/addressbook.jsp @56,164 action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}": Property 'ExcelExport' not found on type org.jboss.seam.Namespace
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
      at javax.faces.component.UICommand.broadcast(UICommand.java:387)
      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.faces.el.EvaluationException: javax.el.PropertyNotFoundException: /miscellaneous/addressbook.jsp @56,164 action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}": Property 'ExcelExport' not found on type org.jboss.seam.Namespace
      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:95)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
      ... 50 more
      Caused by: javax.el.PropertyNotFoundException: /miscellaneous/addressbook.jsp @56,164 action="#{org.jboss.seam.excel.exporter.ExcelExport.export('addresslist','jxl')}": Property 'ExcelExport' not found on type org.jboss.seam.Namespace
      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:70)
      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
      ... 51 more
        • 1. Re: i want to export excel sheet  from seam ...
          Jai Naga Rani Kasirajan Newbie
          hi,
            The same error i am also getting
          when using
          <excel:document-store use-extensions="true"/>

          i got the deployment Exception,
          Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.RuntimeException: error while reading /WEB-INF/components.xml
                  at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:231)
                  at org.jboss.seam.init.Initialization.create(Initialization.java:134)
                  at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
                  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
                  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
                  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
                  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                  at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                  at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                  at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                  at org.jboss.web.WebModule.startModule(WebModule.java:83)
                  at org.jboss.web.WebModule.startService(WebModule.java:61)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:417)
                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy44.start(Unknown Source)
                  at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                  at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                  at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
                  at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                  at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy45.start(Unknown Source)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                  at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy9.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:417)
                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy4.start(Unknown Source)
                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy5.deploy(Unknown Source)
                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                  at org.jboss.Main.boot(Main.java:200)
                  at org.jboss.Main$1.run(Main.java:508)
                  at java.lang.Thread.run(Thread.java:619)
          Caused by: java.lang.RuntimeException: Error loading element DocumentStore with component name null and component class null
                  at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:352)
                  at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:227)
                  ... 138 more
          • 2. Re: i want to export excel sheet  from seam ...
            Jai Naga Rani Kasirajan Newbie
            Hi,

            we got this working.

            We do not need to specify (xmlns excel ) in component.xml
            (in our case build.xml we are mentioning the lib files).
            and in Jsp


            <h:commandButton  id="export_top" type="submit"    value="Export to Excel"      action="#{org.jboss.seam.excel.exporter.excelExporter.export('addressListForm:addresslist','jxl')}" />

            org.jboss.seam.excel.exporter.excelExporter seam name of the ExcelExporter class file

            'addressListForm:addresslist'-FormId:ComponentId.
            • 3. Re: i want to export excel sheet  from seam ...
              Naveen Koneru Newbie

              Hi

               

              I am facing a similar issue .

               

              Here are my issue details..

               

              jboss-seam.jar(2.0.3.CR1),jboss-seam-excel.jar(2.1.1.GA) and jxl.jar.

               

              components.xml

                  

              <?xml version="1.0" encoding="UTF-8"?>

              <components xmlns="http://jboss.com/products/seam/components"

                          xmlns:core="http://jboss.com/products/seam/core"

                          xmlns:persistence="http://jboss.com/products/seam/persistence"

                          xmlns:security="http://jboss.com/products/seam/security"

                          xmlns:web="http://jboss.com/products/seam/web"

                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                          xmlns:excel="http://jboss.com/products/seam/excel"

                          xmlns:document="http://jboss.com/products/seam/document"

                          xsi:schemaLocation=

                              "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd

                               http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd

                               http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd

                               http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd

                               http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.1.xsd

                               http://jboss.com/products/seam/excel http://jboss.com/products/seam/excel-2.1.xsd

                               http://jboss.com/products/seam/document http://jboss.com/products/seam/document-2.1.xsd">

               

                       <document:document-store use-extensions="true"/>

                   

              </components>

               

               

              jboss-web.xml

               

              <?xml version="1.0" encoding="UTF-8"?>

              <!DOCTYPE jboss-web PUBLIC

              "-//JBoss//DTD Web Application 4.2//EN"

              "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">

               

               

              <jboss-web>

                 <context-root>/easypay2run</context-root>

                

                  <class-loading java2ClassLoadingCompliance="false">

                      <loader-repository>

                          seam.jboss.org:loader=seam-excel

                      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

                      </loader-repository>

                  </class-loading>

                    

                 <replication-config>

                      <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>

                      <replication-granularity>SESSION</replication-granularity>

                      <replication-field-batch-mode>true</replication-field-batch-mode>

                  </replication-config>

              </jboss-web>

               

              web.xml

               

              <?xml version="1.0" encoding="UTF-8"?>

              <web-app version="2.4" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"

                  xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">

               

                  <description>Ez-RUN ETL Web Application</description>

                  <display-name>ETL</display-name>

                  <distributable/>

               

                  <context-param>

                      <description>ETL Web App Version</description>

                      <param-name>etl.web.app.version</param-name>

                      <param-value>@VERSION@</param-value>

                  </context-param>

                 

                  <context-param>

                      <description>ETL Web App Build</description>

                      <param-name>etl.web.app.build</param-name>

                      <param-value>@BUILD@</param-value>

                  </context-param>

                 

                  <context-param>

                      <description></description>

                      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

                      <param-value>.xhtml</param-value>

                  </context-param>

               

                  <context-param>

                      <description></description>

                      <param-name>facelets.REFRESH_PERIOD</param-name>

                      <param-value>-1</param-value>

                  </context-param>

               

                  <context-param>

                      <description></description>

                      <param-name>facelets.DEVELOPMENT</param-name>

                      <param-value>true</param-value>

                  </context-param>

               

                  <context-param>

                      <description>Where to save the state</description>

                      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

                      <param-value>SERVER</param-value>

                  </context-param>

               

                  <context-param>

                      <description>Skin to be used in the application</description>

                      <param-name>org.richfaces.SKIN</param-name>

                      <param-value>etl</param-value>

                  </context-param>

               

                  <context-param>

                      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

                      <param-value>com.sun.facelets.FaceletViewHandler</param-value>

                  </context-param>

                 

                  <context-param>

                      <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>

                      <param-value>true</param-value>

                  </context-param>

               

                  <filter>

                      <description>RichFaces Filter</description>

                      <filter-name>richfaces</filter-name>

                      <filter-class>org.ajax4jsf.Filter</filter-class>

                  </filter>

               

                  <filter-mapping>

                      <filter-name>richfaces</filter-name>

                      <servlet-name>Faces Servlet</servlet-name>

                      <dispatcher>REQUEST</dispatcher>

                      <dispatcher>FORWARD</dispatcher>

                      <dispatcher>INCLUDE</dispatcher>

                  </filter-mapping>

               

                  <filter>

                      <filter-name>Seam Filter</filter-name>

                      <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>

                      <init-param>

                          <param-name>createTempFiles</param-name>

                          <param-value>false</param-value>

                      </init-param>

                  </filter>

               

                  <filter-mapping>

                      <filter-name>Seam Filter</filter-name>

                      <url-pattern>/*</url-pattern>

                  </filter-mapping>

                 

                  <listener>

                      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>

                  </listener>

               

                  <servlet>

                      <servlet-name>Faces Servlet</servlet-name>

                      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                      <load-on-startup>1</load-on-startup>

                  </servlet>

               

                  <servlet-mapping>

                      <servlet-name>Faces Servlet</servlet-name>

                      <url-pattern>*.jsf</url-pattern>

                  </servlet-mapping>

                 

                  <servlet>

                      <servlet-name>PDFWebServlet</servlet-name>

                      <servlet-class>com.adp.sbs.etl.web.util.PDFDisplayServlet

                      </servlet-class>

                  </servlet>

                 

                  <servlet-mapping>

                      <servlet-name>PDFWebServlet</servlet-name>

                      <url-pattern>/PDFWebServlet</url-pattern>

                  </servlet-mapping> 

               

                  <servlet>

                      <servlet-name>Document Store Servlet</servlet-name>

                      <servlet-class>org.jboss.seam.excel.DocumentStoreServlet</servlet-class>

                  </servlet>

               

                  <servlet-mapping>

                      <servlet-name>Document Store Servlet</servlet-name>

                      <url-pattern>*.xls</url-pattern>

                  </servlet-mapping> 

                

                  <context-param>  

                      <param-name>webAppRootKey</param-name>

                      <param-value>seam-excel</param-value>

                  </context-param>

               

                  <session-config>

                      <session-timeout>240</session-timeout>

                  </session-config>

               

                  <welcome-file-list>

                      <welcome-file>index.jsp</welcome-file>

                  </welcome-file-list>

                  <error-page>

                      <exception-type>javax.faces.application.ViewExpiredException</exception-type>

                      <location>/Logout.xhtml</location>

                  </error-page>

                 

               

                 

              </web-app>

               

               

               

               

              and my jsf is as follows...

               

              <a4j:form id="trackClientForm">

              .......

               

              <h:commandLink id="ExcelButtonID" value="Export to Excel" type="Submit"

                                       rendered="#{!empty trackClients.workflowRecords}"

                                       action="#{org.jboss.seam.excel.exporter.excelExporter.export('j_id20:j_id168:trackClientForm:trackClientTable')}"/>

               

              ........

              <h:panelGrid id="panelGridID"  columns="1" width="100%">

                              <rich:dataTable id="trackClientTable" value="#{trackClients.workflowRecords}" var="trackClient" style="width:100%" width="700px" sortMode="multi" reRender="trackClientsDS">

               

               

               

              But still i am getting the following exception...

               

               

              java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.seam.document.DocumentStore org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212) org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521) org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415) java.lang.ClassLoader.loadClass(ClassLoader.java:248) org.jboss.seam.excel.exporter.ExcelExporter.export(ExcelExporter.java:85) org.jboss.seam.excel.exporter.ExcelExporter.export(ExcelExporter.java:62) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329) org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274) org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59) org.jboss.el.parser.AstMethodSuffix.invoke(AstMethodSuffix.java:65

               

               

               

               

              Can u please help me out in resolving this issue ????

               

               

              Thanks,

              Naveen