Uploaded image for project: 'Portlet Bridge'
  1. Portlet Bridge
  2. PBR-297

Invalid portlet.xml of JSF 1.2 and Seam Maven archetypes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.0.FINAL, 2.2.0.CR1
    • Fix Version/s: 2.2.0.FINAL
    • Component/s: None
    • Labels:
      None
    • Environment:

      EPP 5.2.0.ER05, Portlet Bridge Maven archetypes 2.1.0.FINAL

    • Workaround Description:
      Hide

      Attached portlet.xml files fix the problem.

      Show
      Attached portlet.xml files fix the problem.

      Description

      The portlet.xml files of both JSF 1.2 and Seam archetypes are not valid with respect to their XSD. The problem is the order of the elements.

      As a result, archetypes cannot be deployed on recent versions of EPP as portlet.xml is validated there by default. The following error is logged during deployment (this is the case of the JSF archetype, the situation is the same for the Seam archetype):

      22:29:41,074 ERROR [PortletApplicationDeployer] Cannot read portlet.xml jndi:/localhost/JSFRIPortlet/WEB-INF/portlet.xml
      org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'portlet-info'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":cache-scope, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":supports}' is expected.
              at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
              at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
              at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
              at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(Unknown Source)
              at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
              at javax.xml.validation.Validator.validate(Validator.java:127)
              at org.gatein.pc.portlet.impl.deployment.xml.XSD.validate(XSD.java:146)
              at org.gatein.pc.portlet.impl.deployment.staxnav.PortletApplicationMetaDataBuilder.build(PortletApplicationMetaDataBuilder.java:206)
              at org.gatein.pc.portlet.impl.deployment.PortletApplicationDeployer.buildPortletApplicationMetaData(PortletApplicationDeployer.java:272)
              at org.exoplatform.portal.pc.ExoPortletApplicationDeployer.buildPortletApplicationMetaData(ExoPortletApplicationDeployer.java:52)
              at org.gatein.pc.portlet.impl.deployment.PortletApplicationDeployer.add(PortletApplicationDeployer.java:190)
              at org.gatein.pc.portlet.impl.deployment.PortletApplicationDeployer.onEvent(PortletApplicationDeployer.java:168)
              at org.gatein.wci.impl.DefaultServletContainer.safeFireEvent(DefaultServletContainer.java:200)
              at org.gatein.wci.impl.DefaultServletContainer.fireEvent(DefaultServletContainer.java:219)
              at org.gatein.wci.impl.DefaultServletContainer.access$400(DefaultServletContainer.java:60)
              at org.gatein.wci.impl.DefaultServletContainer$RegistrationImpl.registerWebApp(DefaultServletContainer.java:338)
              at org.gatein.wci.tomcat.TC6ServletContainerContext.start(TC6ServletContainerContext.java:337)
              at org.gatein.wci.tomcat.TC6ServletContainerContext.lifecycleEvent(TC6ServletContainerContext.java:195)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4384)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)
              at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
              at sun.reflect.GeneratedMethodAccessor388.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:157)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
              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:668)
              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
              at $Proxy38.start(Unknown Source)
              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
              at org.jboss.system.ServiceController.start(ServiceController.java:460)
              at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      

      Note: RichFaces archetype is fine.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                mcupak Miroslav Cupak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: