4 Replies Latest reply on Feb 9, 2010 3:56 PM by Denis Golovin

    NPE in portal module with multiple faces config files

    Stefan Tausendpfund Novice

      Hello,

       

      when importing an existing maven portal web project with more than one config.xml in web.xml I get an NPE and an error message "Failed while installing JBoss JSF Portlet 1.0."

       

      Here the configuration in web.xml:

       <context-param>
          <param-name>javax.faces.CONFIG_FILES</param-name>
          <param-value>/WEB-INF/faces-config.xml,/WEB-INF/a-config.xml</param-value>
        </context-param>
      

       

      The viewhandler and statemangager are configured in faces-config.xml.

       

      The Stack Trace:

      java.lang.NullPointerException
           at org.jboss.tools.portlet.core.internal.project.facet.JSFPortletFacetInstallDelegate.configureFacesConfig(JSFPortletFacetInstallDelegate.java:146)
           at org.jboss.tools.portlet.core.internal.project.facet.JSFPortletFacetInstallDelegate.execute(JSFPortletFacetInstallDelegate.java:115)
           at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1467)
           at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:438)
           at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1171)
              at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1107)
           at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:321)
           at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
           at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modify(FacetedProject.java:336)
           at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.installProjectFacet(FacetedProject.java:252)
           at org.jboss.tools.maven.seam.configurators.PortletProjectConfigurator.installPortletFacet(PortletProjectConfigurator.java:146)
           at org.jboss.tools.maven.seam.configurators.PortletProjectConfigurator.installWarFacets(PortletProjectConfigurator.java:121)
           at org.jboss.tools.maven.seam.configurators.PortletProjectConfigurator.configureInternal(PortletProjectConfigurator.java:82)
           at org.jboss.tools.maven.seam.configurators.PortletProjectConfigurator.mavenProjectChanged(PortletProjectConfigurator.java:96)
           at org.maven.ide.eclipse.project.configurator.AbstractProjectConfigurator.mavenProjectChanged(AbstractProjectConfigurator.java:118)
           at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.mavenProjectChanged(ProjectConfigurationManager.java:678)
           at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.notifyProjectChangeListeners(MavenProjectManagerImpl.java:629)
           at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.applyMutableProjectRegistry(MavenProjectManagerImpl.java:757)
           at org.maven.ide.eclipse.internal.project.MavenProjectManagerRefreshJob.run(MavenProjectManagerRefreshJob.java:99)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

       

       

      My configuration:

      eclipse.buildId=M20090917-0800
      java.version=1.5.0_21
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
      Framework arguments:  -product org.eclipse.epp.package.jee.product
      Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
      
      JBoss Tools Version:
      Version: 1.1.0.v201001270902N-H171-CR2
      
      

       

       

      regards

        Stefan