5 Replies Latest reply on Mar 11, 2010 3:36 PM by Wagner Marques

    org.jboss.seam imports cannot be resolved

    Oliver Libutzki Newbie

      Hi everyone,


      each time I create a new seam project in my Eclipse IDE, the wizard creates 4 projects (projectname, projectname-ear, projectname-ejb and projectname-test).


      In my ejb-Project the Imports of org.jboss.seam cannot be resolved, lthough the EAR Libraries, which contain the jboss-seam.jar, are referenced.


      Sometimes it takes some time or it works out of the box, but mostly the imports cannot be resolved. Any ideas?

        • 1. Re: org.jboss.seam imports cannot be resolved
          Oliver Libutzki Newbie

          Sorry, I forgot to mention some important facts:
          My environment:
          Eclipse Ganymede
          JBoss Tools
          Seam 2.1.1
          JBoss AS 5.0.0

          • 2. Re: org.jboss.seam imports cannot be resolved
            Alexey Kazakov Newbie

            Hi,
            JBoss Tools Seam 2.1.1 doesn't support Eclipse Ganymede (3.4). Download 3.0.0CR2 My Link or use Eclipse Europe (3.3)

            • 3. Re: org.jboss.seam imports cannot be resolved
              Oliver Libutzki Newbie

              Alexey Kazakov wrote on Jan 30, 2009 17:50:


              Hi,
              JBoss Tools Seam 2.1.1 doesn't support Eclipse Ganymede (3.4). Download 3.0.0CR2 My Link or use Eclipse Europe (3.3)


              Thanks for your help... as I want to use stable versions only I decided to use Eclipse Europe and Seam 2.0... I don't have these compilations errors anymore, but I wonder why the jboss-seam.jar is not deployed within the ear-file:



              org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(Testanwendung-ear.ear)
                   at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                   at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
                   at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:853)
                   at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:303)
                   at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:260)
                   at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:303)
                   at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                   at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                   at org.jboss.Main.boot(Main.java:209)
                   at org.jboss.Main$1.run(Main.java:547)
                   at java.lang.Thread.run(Unknown Source)
              Caused by: java.lang.RuntimeException: Error determining structure: Testanwendung-ear.ear
                   at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
                   at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
                   at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
                   at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
                   at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
                   ... 9 more
              Caused by: java.lang.RuntimeException: jboss-seam.jar module listed in application.xml does not exist within .ear vfsfile:/C:/Coden/tools/jboss-5.0.0.GA/server/default/deploy/Testanwendung-ear.ear/
                   at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:272)
                   ... 13 more



              The library exists in the EarContent directory, but it's not deployed... may someone can help me again?

              • 4. Re: org.jboss.seam imports cannot be resolved
                Alexey Kazakov Newbie

                There were a lot of bugs in Eclipse Web Tools that does a big part of deployment work.


                I recommend you downloading Eclipse 3.4.2 + WTP-R-3.0.3 + other dependencies + JBoss Tools CR2.
                CR2 is quite stable and it's close to GA.

                • 5. Re: org.jboss.seam imports cannot be resolved
                  Wagner Marques Newbie

                  Hi Oliver,


                  go to the your jboss deploy folder, enter in your ear module folder and paste there the jar that is missing.


                  I think is interesting erase the tmp files too


                  In the eclipse, with wtp plugin, in the server view, if your ear is added on the server just proceed with righ click on it and choose full publish, and if are not, proceed with a right click on the server instance, choose add/remove e make a simple deploy of your ear


                  start the server


                  this method works with me, good luck!


                  wagner