1 2 Previous Next 15 Replies Latest reply on Apr 14, 2009 7:47 AM by Max Rydahl Andersen

    Seam Components Problem

    Tim Evers Master

      Hi all,

      I'm having a rather large issue at the moment with JBoss Tools.
      Basically what's happening is that it is not finding all my SEAM components. It only finds about 9 of my SEAM components and then stops.

      I have well over 100 SEAM components and they just arn't showing up.
      This means my auto complete in xhtml files is no longer working and SEAM validation is not working cause it doesn't find my other SEAM beans.

      I tried completely rebuilding my workspace. I rechecked out my codebase... I've wasted a lot of time trying to get this working again. (Yes it was working)
      Someone checked in a .project file with the SEAM builder disabled. Ever since then I've had this problem. Reverting to my old .project file did not fix this. I was able to trick it into finding my SEAM beans by renaming my root package (but this is not a solution I can use). After renaming the package it seemed to do a full scan and pick up my SEAM beans. HOWEVER, it still doesn't find the SEAM beans inside the SEAM libs.

      I am using:
      Eclipse 3.4.1
      JBoss Tools 3.0.0.CR1-R200812191611

      Here is my .project file

      <?xml version="1.0" encoding="UTF-8"?>
      <projectDescription>
       <name>gekko</name>
       <comment></comment>
       <projects>
       </projects>
       <buildSpec>
       <buildCommand>
       <name>org.eclipse.jdt.core.javabuilder</name>
       <arguments>
       </arguments>
       </buildCommand>
       <buildCommand>
       <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
       <triggers>auto,full,incremental,</triggers>
       <arguments>
       <dictionary>
       <key>LaunchConfigHandle</key>
       <value><project>/.externalToolBuilders/CopyConfig.launch</value>
       </dictionary>
       </arguments>
       </buildCommand>
       <buildCommand>
       <name>org.jboss.tools.seam.core.seambuilder</name>
       <arguments>
       </arguments>
       </buildCommand>
       </buildSpec>
       <natures>
       <nature>org.eclipse.jdt.core.javanature</nature>
       <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature>
       <nature>org.jboss.tools.seam.core.seamnature</nature>
       </natures>
       <linkedResources>
       <link>
       <name>gekko-build-exploded</name>
       <type>2</type>
       <locationURI>GEKKO_BUILD/exploded</locationURI>
       </link>
       <link>
       <name>gekko-build-services-classes-prod</name>
       <type>2</type>
       <locationURI>GEKKO_BUILD/gekko-services/classes/prod</locationURI>
       </link>
       <link>
       <name>gekko-build-services-classes-test</name>
       <type>2</type>
       <locationURI>GEKKO_BUILD/gekko-services/classes/test</locationURI>
       </link>
       <link>
       <name>gekko-build-web-classes-prod</name>
       <type>2</type>
       <locationURI>GEKKO_BUILD/gekko-web/classes/prod</locationURI>
       </link>
       <link>
       <name>gekko-build-web-classes-test</name>
       <type>2</type>
       <locationURI>GEKKO_BUILD/gekko-web/classes/test</locationURI>
       </link>
       </linkedResources>
      </projectDescription>
      



      I also tried going back to an older version of Eclipse and JBoss tools and that worked.


      Can someone tell me what I need to do to fix this? Otherwise I'm just probly gona switch to using InteliJ.

      Thanks for any help.

      Tim

        • 1. Re: Seam Components Problem
          Max Rydahl Andersen Master

          Sorry you are having problems.

          I can see you are using CR1 we have had CR2 and GA since then. Could you try a later version and then let us know if it is still a problem ?

          • 2. Re: Seam Components Problem
            Tim Evers Master

            I tried the GA release and I'm still having the same problem.

            This is really frustrating me! Everything was working fine and now I can't find anyway to fix it.

            I don't understand why it only finds my first 9 SEAM beans and then just stops.

            • 3. Re: Seam Components Problem
              Alexey Kazakov Master

              Any exceptions in Eclipse log?

              • 4. Re: Seam Components Problem
                Max Rydahl Andersen Master

                alexey, any chance the extensive usage of linked folders is causing it ?

                Kragoth - have you tried disabling/enabling seam on the project ? That should ensure both the builder and the nature is installed.

                Do you have more than 9 seam beans in your project ? i.e. is it simply just the files in jars that is being somehow ignored ?

                • 5. Re: Seam Components Problem
                  Alexey Kazakov Master

                   

                  "max.andersen@jboss.com" wrote:
                  alexey, any chance the extensive usage of linked folders is causing it ?

                  It must work anyway if the libs in the project's class path. And as far as I understend Kragoth even some components from source folder are not loaded by Seam Tools.

                  • 6. Re: Seam Components Problem
                    Tim Evers Master

                    I have over 100 SEAM beans in my project. So there should definitly be more then 9. As well as this I should be seeing the SEAM libs components as well.

                    I have tried toggeling the SEAM support to try force the nature and builder to restart etc, but this did not fix the problem.

                    If I touch a SEAM bean that is not in the list and save it, then it will appear in the list. (Not sure what's going on there)

                    I have worked around the issue at the moment by booting up and old version of Eclipse/JBossTools and getting it to load all my SEAM components and then switching back to the new version. However this still does not show *all* my components, and the default SEAM package components are not listed either.

                    In my error log, here are some of the entries that are coming from the JBoss tools plugin.

                    !ENTRY org.jboss.tools.seam.core 4 0 2009-04-03 13:39:42.207
                    !MESSAGE An error occurred while traversing resources.
                    !STACK 1
                    org.eclipse.core.internal.resources.ResourceException(/gekko)[566]: java.lang.NullPointerException
                     at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
                     at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
                     at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                     at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                     at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
                     at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                     at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                     at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
                     at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                     at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
                     at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
                     at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
                     at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
                     at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
                     at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
                     at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
                     at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
                     at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
                     at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
                     at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
                     at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
                     at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
                     at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
                     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
                     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
                     at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
                     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
                     at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
                     at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
                     at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
                     at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                    !SUBENTRY 1 org.eclipse.core.resources 4 566 2009-04-03 13:39:42.207
                    !MESSAGE An error occurred while traversing resources.
                    !STACK 0
                    java.lang.NullPointerException
                     at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
                     at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
                     at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                     at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                     at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
                     at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                     at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                     at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
                     at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                     at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
                     at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
                     at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
                     at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
                     at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
                     at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
                     at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
                     at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                     at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
                     at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
                     at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
                     at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
                     at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
                     at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
                     at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
                     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
                     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
                     at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
                     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
                     at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
                     at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
                     at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
                     at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                    


                    But I did notice this in my error log as well. I'm not sure if this is related in any way at all, but it would seem to go along the lines that the linked resources are cause issues :S

                    !ENTRY org.jboss.ide.eclipse.archives.core 2 0 2009-04-03 13:44:34.588
                    !MESSAGE Could not create directory scanner: basedir D:\EVERST\Phase2\code\gekko\gekko-build-services-classes-prod is not a directory
                    !STACK 0
                    java.lang.IllegalStateException: basedir D:\EVERST\Phase2\code\gekko\gekko-build-services-classes-prod is not a directory
                     at org.jboss.ide.eclipse.archives.core.asf.DirectoryScanner.scan(DirectoryScanner.java:816)
                     at org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.createDirectoryScanner(DirectoryScannerFactory.java:70)
                     at org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.createDirectoryScanner(DirectoryScannerFactory.java:50)
                     at org.jboss.ide.eclipse.archives.core.model.internal.ArchiveFileSetImpl.getScanner(ArchiveFileSetImpl.java:144)
                     at org.jboss.ide.eclipse.archives.core.model.internal.ArchiveFileSetImpl.findMatchingPaths(ArchiveFileSetImpl.java:131)
                     at org.jboss.ide.eclipse.archives.core.util.internal.ModelTruezipBridge.fullFilesetBuild(ModelTruezipBridge.java:72)
                     at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.nodeAdded(ModelChangeListener.java:198)
                     at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.nodeAdded(ModelChangeListener.java:184)
                     at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.handle(ModelChangeListener.java:100)
                     at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.modelChanged(ModelChangeListener.java:71)
                     at org.jboss.ide.eclipse.archives.core.model.EventManager.fireDelta(EventManager.java:186)
                     at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.fireRegistrationEvent(ArchivesModel.java:255)
                     at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.fireRegisterProjectEvent(ArchivesModel.java:234)
                     at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.registerProject(ArchivesModel.java:217)
                     at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.registerProject(ArchivesModel.java:208)
                     at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.registerProject(ArchivesModel.java:181)
                     at org.jboss.ide.eclipse.archives.webtools.modules.ArchivesModelModuleContributor.getModules(ArchivesModelModuleContributor.java:79)
                     at org.jboss.ide.eclipse.archives.webtools.modules.ArchivesModelModuleContributor.refreshProject(ArchivesModelModuleContributor.java:133)
                     at org.jboss.ide.eclipse.archives.webtools.modules.PackageModuleFactory.getModules(PackageModuleFactory.java:174)
                     at org.eclipse.wst.server.core.internal.ModuleFactory.getModules(ModuleFactory.java:131)
                     at org.eclipse.wst.server.core.ServerUtil.getModules(ServerUtil.java:96)
                     at org.eclipse.wst.server.core.internal.ResourceManager.publishHandleProjectChange(ResourceManager.java:965)
                     at org.eclipse.wst.server.core.internal.ResourceManager$ServerResourceChangeListener$1.visit(ResourceManager.java:122)
                     at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
                     at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
                     at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
                     at org.eclipse.wst.server.core.internal.ResourceManager$ServerResourceChangeListener.resourceChanged(ResourceManager.java:116)
                     at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
                     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                     at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
                     at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
                     at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
                     at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
                     at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                    



                    But ultimately, if I disable SEAM on my project and then reenable it, then the first stacktrace always appears. The second one is not consistent.

                    I also get this error - pretty sure its unrelated but, just in case
                    !ENTRY org.eclipse.wst.validation 4 0 2009-04-08 09:04:35.608
                    !MESSAGE Plug-in "org.eclipse.jst.jsp.core" was unable to instantiate class "org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator".
                    !STACK 1
                    org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.jst.jsp.core" was unable to instantiate class "org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator".
                     at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
                     at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
                     at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
                     at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
                     at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
                     at org.eclipse.wst.validation.Validator$V2.getValidator(Validator.java:933)
                     at org.eclipse.wst.validation.Validator$V2.getDelegatedValidator(Validator.java:892)
                     at org.eclipse.wst.validation.Validator$V2.validationStarting(Validator.java:1150)
                     at org.eclipse.wst.validation.internal.ValOperationManager$1.visit(ValOperationManager.java:142)
                     at org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:622)
                     at org.eclipse.wst.validation.internal.ValOperationManager.resourceChanged(ValOperationManager.java:145)
                     at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
                     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                     at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
                     at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
                     at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
                     at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:136)
                     at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                    Caused by: java.lang.ExceptionInInitializerError
                     at org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator.<init>(JSPBatchValidator.java:161)
                     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                     at java.lang.reflect.Constructor.newInstance(Unknown Source)
                     at java.lang.Class.newInstance0(Unknown Source)
                     at java.lang.Class.newInstance(Unknown Source)
                     at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
                     ... 17 more
                    Caused by: java.lang.NullPointerException
                     at org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator.<clinit>(JSPDirectiveValidator.java:68)
                     ... 25 more
                    !SUBENTRY 1 org.eclipse.equinox.registry 4 1 2009-04-08 09:04:35.608
                    !MESSAGE Plug-in "org.eclipse.jst.jsp.core" was unable to instantiate class "org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator".
                    !STACK 0
                    java.lang.ExceptionInInitializerError
                     at org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator.<init>(JSPBatchValidator.java:161)
                     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                     at java.lang.reflect.Constructor.newInstance(Unknown Source)
                     at java.lang.Class.newInstance0(Unknown Source)
                     at java.lang.Class.newInstance(Unknown Source)
                     at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
                     at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
                     at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
                     at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
                     at org.eclipse.wst.validation.Validator$V2.getValidator(Validator.java:933)
                     at org.eclipse.wst.validation.Validator$V2.getDelegatedValidator(Validator.java:892)
                     at org.eclipse.wst.validation.Validator$V2.validationStarting(Validator.java:1150)
                     at org.eclipse.wst.validation.internal.ValOperationManager$1.visit(ValOperationManager.java:142)
                     at org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:622)
                     at org.eclipse.wst.validation.internal.ValOperationManager.resourceChanged(ValOperationManager.java:145)
                     at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
                     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                     at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
                     at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
                     at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
                     at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:136)
                     at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                    Caused by: java.lang.NullPointerException
                     at org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator.<clinit>(JSPDirectiveValidator.java:68)
                     ... 25 more
                    



                    Anyway, I've now managed to lose all but those 9 SEAM beans again now while trying to get this error log :P

                    So its gona be a long frustrating day!

                    I'm gona try get all this working in latest version of Eclipse and JBossTools so that if/when we figure out the problem the fix is easier.

                    Thanks for the help!

                    • 7. Re: Seam Components Problem
                      Tim Evers Master

                      Ok, went back and tried the latest version of Eclipse and the GA release of JBossTools and the only exception I'm getting in my error logs is this:

                      !SESSION 2009-04-08 10:56:31.240 -----------------------------------------------
                      eclipse.buildId=M20090211-1700
                      java.version=1.6.0_13
                      java.vendor=Sun Microsystems Inc.
                      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_AU
                      Command-line arguments: -os win32 -ws win32 -arch x86
                      
                      !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-04-08 10:56:46.146
                      !MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
                      
                      !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-04-08 10:56:46.146
                      !MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
                      
                      !ENTRY org.eclipse.core.resources 4 566 2009-04-08 12:13:57.929
                      !MESSAGE An error occurred while traversing resources.
                      !STACK 0
                      java.lang.NullPointerException
                       at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
                       at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                       at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                       at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
                       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
                       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
                       at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
                       at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
                       at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
                       at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
                       at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
                       at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
                       at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
                       at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
                       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
                       at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
                       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
                       at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
                       at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
                       at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
                       at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                      
                      !ENTRY org.jboss.tools.seam.core 4 0 2009-04-08 12:13:57.929
                      !MESSAGE An error occurred while traversing resources.
                      !STACK 1
                      org.eclipse.core.internal.resources.ResourceException(/gekko)[566]: java.lang.NullPointerException
                       at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
                       at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                       at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                       at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
                       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
                       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
                       at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
                       at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
                       at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
                       at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
                       at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
                       at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
                       at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
                       at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
                       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
                       at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
                       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
                       at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
                       at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
                       at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
                       at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                      !SUBENTRY 1 org.eclipse.core.resources 4 566 2009-04-08 12:13:57.929
                      !MESSAGE An error occurred while traversing resources.
                      !STACK 0
                      java.lang.NullPointerException
                       at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
                       at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                       at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
                       at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
                       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
                       at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
                       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
                       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
                       at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
                       at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
                       at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
                       at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
                       at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
                       at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
                       at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
                       at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
                       at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
                       at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
                       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
                       at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
                       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
                       at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
                       at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
                       at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
                       at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
                       at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
                       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
                      
                      


                      So this would appear to be what's stopping me. I hope you guys have some ideas of what's going on here cause I got no clue!

                      If you need any more info to help resolve this problem please let me know.

                      Thanks,
                      Tim

                      • 8. Re: Seam Components Problem
                        Alexey Kazakov Master

                        Kragoth, thank you for log. Yes, this exeption in org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl is what must be a reason to stop loading all Seam components. We well try to figure out what is going on there.

                        • 9. Re: Seam Components Problem
                          Viacheslav Kabanovich Newbie

                          I have reproduced the problem by creating an annotation type in Java sources and annotating it:

                          @Deprecated
                          public @interface MyAnnotation {
                          }

                          Please check if you have annotation types. If this is the case, try this workaround: move annotation types to a separate project, build a jar of it, and add the jar to the classpath of the main project. Seam builder will not fail if annotation types are in a jar.

                          We will fix the issue ASAP. Max, shall we patch 3.0.0?

                          • 10. Re: Seam Components Problem
                            Max Rydahl Andersen Master

                            Yes - having annotations on annotations is a very common thing.

                            • 12. Re: Seam Components Problem
                              Tim Evers Master

                              Fantastic! Thanks heaps guys for your quick responses and help!

                              I'm not sure I could try the work around as it would be a rather large modification for me to make to our project.

                              For the time being I will just bear the pain of all the nice features of JbossTools not working and hope the patch comes soon. :) *wink*

                              But honestly, great job in finding the problem considering I didn't even tell you we had annotation classes etc :D

                              Now the guys in my team that use IDEA can stop teasing me :P hehe

                              • 13. Re: Seam Components Problem
                                Viacheslav Kabanovich Newbie

                                I have committed changes to versions 3.0.1 and 3.1.0.
                                (see JIRA issue https://jira.jboss.org/jira/browse/JBIDE-4144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel)

                                Kragoth, please try your project with next nightly build for JBoss Tools 3.0.1.

                                • 14. Re: Seam Components Problem
                                  Tim Evers Master

                                  Hi,

                                  I downloaded 3.1.0 nightly (sorry should have got 3.0.1 but miss read) and it seems to be working for me :)

                                  Thanks heaps.

                                  At first it seemed to stall in a slightly different spot but after a project clean it seemed to start working.

                                  Thank you for the fast response!

                                  1 2 Previous Next