1 2 Previous Next 15 Replies Latest reply on Dec 4, 2008 4:00 AM by Max Rydahl Andersen

    Error creating Seam 2.1.0 SP1 Web Project with Tools 3 beta1

    Andrew Fuqua Newbie

      I am trying to create a new Seam Web Project with JBoss Tools 3.0 Beta1. After going through the entire wizard and setting up the facets and db connections, I get a pop-up error stating: "Failed while installing Seam 2.0" Reason: "Failed while installing Seam 2.0". Clicking the details button reveals "java.lang.NullPointerException", but nothing more. Since I start eclipse from the command line in linux, I can see more details about the NullPointerException. Here are the details:

      *** ERROR ***: Sun Nov 09 01:50:12 EST 2008 java.lang.NullPointerException
       at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.registerAsModelStateListener(EMF2DOMSSERenderer.java:527)
       at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.setXMLModel(EMF2DOMSSERenderer.java:608)
       at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.initializeXMLModel(EMF2DOMSSERenderer.java:360)
       at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.createDocument(EMF2DOMSSERenderer.java:183)
       at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.createDOMTree(EMF2DOMRenderer.java:127)
       at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.createDOMTreeIfNecessary(EMF2DOMSSERenderer.java:192)
       at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.doSave(EMF2DOMSSERenderer.java:249)
       at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.doSave(TranslatorResourceImpl.java:180)
       at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.save(TranslatorResourceImpl.java:160)
       at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.primSaveResource(EditModel.java:1299)
       at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.saveResource(EditModel.java:1330)
       at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.primSave(EditModel.java:1265)
       at org.eclipse.jst.common.jdt.internal.integration.JavaArtifactEditModel.primSave(JavaArtifactEditModel.java:144)
       at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel$1.run(EditModel.java:372)
       at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
       at org.eclipse.jst.common.jdt.internal.integration.JavaArtifactEditModel.runSaveOperation(JavaArtifactEditModel.java:148)
       at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.save(EditModel.java:375)
       at org.eclipse.wst.common.componentcore.ArtifactEdit.save(ArtifactEdit.java:454)
       at org.eclipse.jpt.core.resource.persistence.PersistenceArtifactEdit.createDefaultResource(PersistenceArtifactEdit.java:120)
       at org.eclipse.jpt.core.internal.GenericJpaModel.createPersistenceXml(GenericJpaModel.java:259)
       at org.eclipse.jpt.core.internal.GenericJpaModel.createProjectXml(GenericJpaModel.java:245)
       at org.eclipse.jpt.core.internal.GenericJpaModel$1.run(GenericJpaModel.java:236)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      


      As some background, I am running a fresh install of Ganymede. I am using Tools 3.0 Beta1 as a dropin (dropin/jbt is a symlink pointing to the location where I unzip'ed the Tools download). Lastly, I did an update within eclipse to ensure I have the latest versions. Am I missing something in the install process? Any ideas how to overcome the exception so I can use all the awesome new features of Tools 3.0 Beta1?!


        • 1. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
          Max Rydahl Andersen Master

          hmm....this looks very much like a old bug in Eclipse Dali (JPA) support which should be fixed in Ganymede.

          Are you 100% sure you are running Ganymede and not an old install ? :)

          The workaround for the old bug was to not choose JPA when creating the project but enable it after the project have been created in the Project Facets properties on the project.

          Let me know if that works and wether it keeps happening on new projects since then we need to follow up with eclipse Dali project.

          • 2. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
            Andrew Fuqua Newbie

            I am 100% sure I'm using Ganymede (info from Help->About Eclipse: Eclipse Platform, Version: 3.4.1, Build id: M20080911-1700).

            I tried creating a new Seam Web Project using the Configuration settings of "Dynamic Web Project with Seam 2.0". This does not include JPA. I still get a NullPointerException. There is no verbose exception information on the linux shell console from which I started eclipse, however. I just tried again to create a Seam 2.0 project with JPA support and all I got was the NullPointerException (no verbose exception output this time.)

            What other info can I give you to help solve this? I am doing something really basic and running into this error. With WebTools 3.0 alpha 1 and this exact version of eclipse I did not run into this error. (Mind you, I'm not mixing alpha1 install with beta1 install, I started from a fresh eclipse).

            • 3. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
              Max Rydahl Andersen Master

              go to Error log and see the full error log ...please show the full trace.

              Is it the same NPE ? you should not get any...

              • 4. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                Andrew Fuqua Newbie

                Here are the two errors that are generated when I try to build a Seam 2.0 project with JPA.

                eclipse.buildId=M20080911-1700
                java.version=1.6.0_07
                java.vendor=Sun Microsystems Inc.
                BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
                Command-line arguments: -os linux -ws gtk -arch x86
                
                
                Error
                Mon Nov 10 15:40:14 CST 2008
                Failed while installing Seam 2.0.
                
                java.lang.NullPointerException
                at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.registerAsModelStateListener(EMF2DOMSSERenderer.java:527)
                at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.setXMLModel(EMF2DOMSSERenderer.java:608)
                at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.initializeXMLModel(EMF2DOMSSERenderer.java:368)
                at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.loadDocument(EMF2DOMSSERenderer.java:416)
                at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doLoad(EMF2DOMRenderer.java:62)
                at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:144)
                at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:175)
                at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1445)
                at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.loadExisting(CompatibilityXMIResourceImpl.java:293)
                at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:393)
                at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
                at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.demandLoad(ProjectResourceSetImpl.java:155)
                at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
                at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.getResource(ProjectResourceSetImpl.java:428)
                at org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper.getOrCreateResource(WorkbenchResourceHelper.java:384)
                at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.getResource(EditModel.java:684)
                at org.eclipse.wst.common.componentcore.internal.ArtifactEditModel.getResource(ArtifactEditModel.java:200)
                at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getDeploymentDescriptorResource(FacesConfigArtifactEdit.java:167)
                at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getDeploymentDescriptorRoot(FacesConfigArtifactEdit.java:149)
                at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getFacesConfig(FacesConfigArtifactEdit.java:133)
                at org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate.configureFacesConfigXml(Seam2FacetInstallDelegate.java:150)
                at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.copyFilesToWarProject(SeamFacetAbstractInstallDelegate.java:359)
                at org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate.copyFilesToWarProject(Seam2FacetInstallDelegate.java:111)
                at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.doExecuteForWar(SeamFacetAbstractInstallDelegate.java:317)
                at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.doExecute(SeamFacetAbstractInstallDelegate.java:704)
                at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.execute(SeamFacetAbstractInstallDelegate.java:172)
                at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1394)
                at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:401)
                at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1134)
                at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1070)
                at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1052)
                at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
                at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1062)
                at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1827)
                at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:388)
                at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:276)
                at org.jboss.tools.seam.ui.wizard.SeamProjectWizard.performFinish(SeamProjectWizard.java:203)
                at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:330)
                at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
                at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:344)
                at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
                
                
                


                eclipse.buildId=M20080911-1700
                java.version=1.6.0_07
                java.vendor=Sun Microsystems Inc.
                BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
                Command-line arguments: -os linux -ws gtk -arch x86
                
                
                Error
                Mon Nov 10 15:40:16 CST 2008
                
                
                java.lang.NullPointerException
                 at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.registerAsModelStateListener(EMF2DOMSSERenderer.java:527)
                 at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.setXMLModel(EMF2DOMSSERenderer.java:608)
                 at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.initializeXMLModel(EMF2DOMSSERenderer.java:368)
                 at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.loadDocument(EMF2DOMSSERenderer.java:416)
                 at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doLoad(EMF2DOMRenderer.java:62)
                 at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:144)
                 at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:175)
                 at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1445)
                 at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.loadExisting(CompatibilityXMIResourceImpl.java:293)
                 at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:393)
                 at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
                 at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.demandLoad(ProjectResourceSetImpl.java:155)
                 at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
                 at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.getResource(ProjectResourceSetImpl.java:428)
                 at org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper.getOrCreateResource(WorkbenchResourceHelper.java:384)
                 at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.getResource(EditModel.java:684)
                 at org.eclipse.wst.common.componentcore.internal.ArtifactEditModel.getResource(ArtifactEditModel.java:200)
                 at org.eclipse.jpt.core.resource.persistence.PersistenceArtifactEdit.getResource(PersistenceArtifactEdit.java:95)
                 at org.eclipse.jpt.core.resource.persistence.PersistenceArtifactEdit.getResource(PersistenceArtifactEdit.java:106)
                 at org.eclipse.jpt.core.internal.context.GenericRootContextNode.<init>(GenericRootContextNode.java:54)
                 at org.eclipse.jpt.core.internal.platform.GenericJpaFactory.buildRootContext(GenericJpaFactory.java:326)
                 at org.eclipse.jpt.core.internal.GenericJpaProject.buildRootContextNode(GenericJpaProject.java:191)
                 at org.eclipse.jpt.core.internal.GenericJpaProject.<init>(GenericJpaProject.java:153)
                 at org.eclipse.jpt.core.internal.platform.GenericJpaFactory.buildJpaProject(GenericJpaFactory.java:222)
                 at org.eclipse.jpt.core.internal.GenericJpaModel$DefaultJpaProjectHolder.buildJpaProject(GenericJpaModel.java:453)
                 at org.eclipse.jpt.core.internal.GenericJpaModel$DefaultJpaProjectHolder.jpaProject(GenericJpaModel.java:445)
                 at org.eclipse.jpt.core.internal.GenericJpaModel.getJpaProject(GenericJpaModel.java:84)
                 at org.eclipse.jpt.core.internal.JpaModelManager.getJpaProject(JpaModelManager.java:178)
                 at org.eclipse.jpt.core.JptCorePlugin.getJpaProject(JptCorePlugin.java:157)
                 at org.eclipse.jpt.core.internal.validation.JpaValidator.validationMessages(JpaValidator.java:55)
                 at org.eclipse.jpt.core.internal.validation.JpaValidator.validate(JpaValidator.java:48)
                 at org.eclipse.jpt.core.internal.validation.JpaValidator.validateInJob(JpaValidator.java:77)
                 at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
                 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                
                
                


                • 5. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                  Max Rydahl Andersen Master

                  do you touch any facet's settings besides the default ones ? I can't reproduce this ;(

                  • 6. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                    Andrew Fuqua Newbie

                    This appears to be the worst kind of problem. For me it repeats every time I try it, and for you, never. I am using the default settings for Dynamic Web Project with Seam 2.0 and am changing nothing else on any facet. Are you using the same build of eclipse that I am using (M20080911-1700)? What else can I do?

                    • 7. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                      Max Rydahl Andersen Master

                      what happens if you do it with a clean workspace ?

                      • 8. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                        Andrew Fuqua Newbie

                        With a clean workspace and a newly-created server I get the same error (exceptions).

                        • 9. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                          Max Rydahl Andersen Master

                          Please show the exact exceptions. They cannot be the same since by default there is no JPA enabled.

                          • 10. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                            Andrew Fuqua Newbie

                            I get this exception with DWP Seam 2.0, No JPA. It occurs within a brand new workspace in Ganymede. Please see my next post for exceptions that occur with JPA enabled.

                            java.lang.NullPointerException
                            at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.registerAsModelStateListener(EMF2DOMSSERenderer.java:527)
                            at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.setXMLModel(EMF2DOMSSERenderer.java:608)
                            at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.initializeXMLModel(EMF2DOMSSERenderer.java:368)
                            at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.loadDocument(EMF2DOMSSERenderer.java:416)
                            at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doLoad(EMF2DOMRenderer.java:62)
                            at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:144)
                            at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:175)
                            at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1445)
                            at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.loadExisting(CompatibilityXMIResourceImpl.java:293)
                            at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:393)
                            at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
                            at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.demandLoad(ProjectResourceSetImpl.java:155)
                            at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
                            at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.getResource(ProjectResourceSetImpl.java:428)
                            at org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper.getOrCreateResource(WorkbenchResourceHelper.java:384)
                            at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.getResource(EditModel.java:684)
                            at org.eclipse.wst.common.componentcore.internal.ArtifactEditModel.getResource(ArtifactEditModel.java:200)
                            at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getDeploymentDescriptorResource(FacesConfigArtifactEdit.java:167)
                            at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getDeploymentDescriptorRoot(FacesConfigArtifactEdit.java:149)
                            at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getFacesConfig(FacesConfigArtifactEdit.java:133)
                            at org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate.configureFacesConfigXml(Seam2FacetInstallDelegate.java:150)
                            at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.copyFilesToWarProject(SeamFacetAbstractInstallDelegate.java:359)
                            at org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate.copyFilesToWarProject(Seam2FacetInstallDelegate.java:111)
                            at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.doExecuteForWar(SeamFacetAbstractInstallDelegate.java:317)
                            at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.doExecute(SeamFacetAbstractInstallDelegate.java:704)
                            at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.execute(SeamFacetAbstractInstallDelegate.java:172)
                            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1394)
                            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:401)
                            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1134)
                            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1070)
                            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1052)
                            at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
                            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1062)
                            at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1827)
                            at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:388)
                            at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:276)
                            at org.jboss.tools.seam.ui.wizard.SeamProjectWizard.performFinish(SeamProjectWizard.java:203)
                            at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:330)
                            at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
                            at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:344)
                            at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
                            
                            






                            • 11. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                              Andrew Fuqua Newbie

                              I get these exceptions creating a new Seam Web Project with DWP Seam 2.0, JPA enabled.

                              Exception message "Failed while installing Seam 2.0"

                              
                              java.lang.NullPointerException
                              at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.registerAsModelStateListener(EMF2DOMSSERenderer.java:527)
                              at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.setXMLModel(EMF2DOMSSERenderer.java:608)
                              at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.initializeXMLModel(EMF2DOMSSERenderer.java:368)
                              at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.loadDocument(EMF2DOMSSERenderer.java:416)
                              at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doLoad(EMF2DOMRenderer.java:62)
                              at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:144)
                              at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:175)
                              at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1445)
                              at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.loadExisting(CompatibilityXMIResourceImpl.java:293)
                              at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:393)
                              at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
                              at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.demandLoad(ProjectResourceSetImpl.java:155)
                              at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
                              at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.getResource(ProjectResourceSetImpl.java:428)
                              at org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper.getOrCreateResource(WorkbenchResourceHelper.java:384)
                              at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.getResource(EditModel.java:684)
                              at org.eclipse.wst.common.componentcore.internal.ArtifactEditModel.getResource(ArtifactEditModel.java:200)
                              at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getDeploymentDescriptorResource(FacesConfigArtifactEdit.java:167)
                              at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getDeploymentDescriptorRoot(FacesConfigArtifactEdit.java:149)
                              at org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit.getFacesConfig(FacesConfigArtifactEdit.java:133)
                              at org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate.configureFacesConfigXml(Seam2FacetInstallDelegate.java:150)
                              at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.copyFilesToWarProject(SeamFacetAbstractInstallDelegate.java:359)
                              at org.jboss.tools.seam.internal.core.project.facet.Seam2FacetInstallDelegate.copyFilesToWarProject(Seam2FacetInstallDelegate.java:111)
                              at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.doExecuteForWar(SeamFacetAbstractInstallDelegate.java:317)
                              at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.doExecute(SeamFacetAbstractInstallDelegate.java:704)
                              at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.execute(SeamFacetAbstractInstallDelegate.java:172)
                              at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1394)
                              at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:401)
                              at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1134)
                              at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1070)
                              at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1052)
                              at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
                              at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1062)
                              at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1827)
                              at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:388)
                              at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:276)
                              at org.jboss.tools.seam.ui.wizard.SeamProjectWizard.performFinish(SeamProjectWizard.java:203)
                              at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:330)
                              at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
                              at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:344)
                              at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
                              
                              


                              Exception with no message/title:
                              java.lang.NullPointerException
                               at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.registerAsModelStateListener(EMF2DOMSSERenderer.java:527)
                               at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.setXMLModel(EMF2DOMSSERenderer.java:608)
                               at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.initializeXMLModel(EMF2DOMSSERenderer.java:368)
                               at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSERenderer.loadDocument(EMF2DOMSSERenderer.java:416)
                               at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doLoad(EMF2DOMRenderer.java:62)
                               at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:144)
                               at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:175)
                               at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1445)
                               at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.loadExisting(CompatibilityXMIResourceImpl.java:293)
                               at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:393)
                               at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
                               at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.demandLoad(ProjectResourceSetImpl.java:155)
                               at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
                               at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.getResource(ProjectResourceSetImpl.java:428)
                               at org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper.getOrCreateResource(WorkbenchResourceHelper.java:384)
                               at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.getResource(EditModel.java:684)
                               at org.eclipse.wst.common.componentcore.internal.ArtifactEditModel.getResource(ArtifactEditModel.java:200)
                               at org.eclipse.jpt.core.resource.persistence.PersistenceArtifactEdit.getResource(PersistenceArtifactEdit.java:95)
                               at org.eclipse.jpt.core.resource.persistence.PersistenceArtifactEdit.getResource(PersistenceArtifactEdit.java:106)
                               at org.eclipse.jpt.core.internal.context.GenericRootContextNode.<init>(GenericRootContextNode.java:54)
                               at org.eclipse.jpt.core.internal.platform.GenericJpaFactory.buildRootContext(GenericJpaFactory.java:326)
                               at org.eclipse.jpt.core.internal.GenericJpaProject.buildRootContextNode(GenericJpaProject.java:191)
                               at org.eclipse.jpt.core.internal.GenericJpaProject.<init>(GenericJpaProject.java:153)
                               at org.eclipse.jpt.core.internal.platform.GenericJpaFactory.buildJpaProject(GenericJpaFactory.java:222)
                               at org.eclipse.jpt.core.internal.GenericJpaModel$DefaultJpaProjectHolder.buildJpaProject(GenericJpaModel.java:453)
                               at org.eclipse.jpt.core.internal.GenericJpaModel$DefaultJpaProjectHolder.jpaProject(GenericJpaModel.java:445)
                               at org.eclipse.jpt.core.internal.GenericJpaModel.getJpaProject(GenericJpaModel.java:84)
                               at org.eclipse.jpt.core.internal.JpaModelManager.getJpaProject(JpaModelManager.java:178)
                               at org.eclipse.jpt.core.JptCorePlugin.getJpaProject(JptCorePlugin.java:157)
                               at org.eclipse.jpt.core.internal.validation.JpaValidator.validationMessages(JpaValidator.java:55)
                               at org.eclipse.jpt.core.internal.validation.JpaValidator.validate(JpaValidator.java:48)
                               at org.eclipse.jpt.core.internal.validation.JpaValidator.validateInJob(JpaValidator.java:77)
                               at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
                               at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                              
                              


                              • 12. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                                Andrew Fuqua Newbie

                                Well, my problem has a frustratingly simple solution: use Eclipse Ganymede SR1, not the original Ganymede release. A note on the JBT 3.0 Beta1 news release page might save some other people the headache of trying to get 3 Beta1 to work with the original Ganymede release. Thanks, Max, for at least looking into this with me.

                                • 14. Re: Error creating Seam 2.1.0 SP1 Web Project with Tools 3 b
                                  Andrew Fuqua Newbie

                                  This issue is not closed yet. It's not simply a matter of installing the Ganymede SR1. I installed Oxygen XML's XML plugin (com.oxygenxml.editor_9.3.0) in the dropins/ directory and I see the same errors as earlier in the post all over again. I am definitely using the version of the plugin for Eclipse 3.4. The only work-around is to remove the Oxygen eclipse plugin from dropins/. I really would like to use the Oxygen XML plugin in conjunction with Tools 3 but right now I can't. This same plugin works with previous versions of JBoss Tools (i.e. v2).

                                  1 2 Previous Next