6 Replies Latest reply on Oct 25, 2006 11:42 AM by Gavin King

    Seam in Eclipse: Library problems

    Clark Updike Newbie

      I was following along with the Seam in Eclipse flash demo, and after pulling the project down from cvs, there were 5 library jars that were reporting problems (2 drools jars, 2 myfaces jars and a jbpm jar). It looked like they had been updated with later versions but the eclipse project classpath had not been updated. So I updated the 5 entries in the build path libraries. Now I get two errors.

      The project was not built since its build path is incomplete. Cannot find the class file for org.jgroups.MembershipListener. Fix the build path then try building this project
      The type org.jgroups.MembershipListener cannot be resolved. It is indirectly referenced from required .class files UICache.java jboss-seam/src/ui/org/jboss/seam/ui line 86

      Is there any way to get rid of these errors?

      Note: The ant compile still runs without any errors.

      TIA, Clark

        • 1. Re: Seam in Eclipse: Library problems
          Cutberto Ocampo Newbie

          Just wondering, why don't you remove the .java files from "ui" directory (not the directory itself, since it is somehow required in the ant tasks). After all, all the classes required to run your projects (those related to ui management) are already included in the jboss-seam-ui.jar file.

          I hope this may be useful to you, and please let me know if it works for you. I was having trouble with the ant "compile" task (unable to locate JSF files), and deleting the "ui" source files worked for me, since the projects doesn't need the "debug" and "ui" classes to run, just to compile.


          • 2. Re: Seam in Eclipse: Library problems
            Clark Updike Newbie

            Call me old-fashioned, but when I go to build a project, I expect it to build without errors, and don't like the thought of ripping stuff out of it to get it to work. After all, JBoss is all about professionalopen source. Climbing down off my soapbox now... I, of course, reserve the right to have goofed something up, not realized it, and look stupid (as always ;-)

            To get the project to build properly, I downloaded and added the JGroup project http://www.jgroups.org/javagroupsnew/docs/index.html to my libs. Then, I had to change line 126 of org.jboss.seam.util.Conversions.java from this:

            public static class ArrayConverter implements Converter
            to this:
            public static class ArrayConverter implements Converter<Object>

            and now everything is fine. I'd submit a patch but seems pretty overkill to add 8 chars to a file (and I'm not sure I just didn't do something dumb).


            • 3. Re: Seam in Eclipse: Library problems
              Pete Muir Master

              I would suggest using a stable released version e.g. 1.0.1.GA if you want something that 'just works'. If you want something a bit more cutting edge you could try using 1.1.BETA1

              • 4. Re: Seam in Eclipse: Library problems
                Clark Updike Newbie

                There's a difference between expecting a project to "just work" and expecting it to "just build". I don't always expect the head to have completely working functionality--but I do expect it to at least build properly. Certainly there can be short term gaffs, but they should be promptly repaired. At least that was the expectation on the last open source project I contributed to.

                • 5. Re: Seam in Eclipse: Library problems

                  It builds fine -- just not on eclipse. I don't think the eclipse project file gets updated as often, since when I import the project, it still has dependencies on old library versions (myfaces-1.1.3 instead of 1.1.4, jbpm-3.1.1 instead of 3.1.2, etc). Blame eclipse for not supporting wildcard patterns in its build system like ant does (that's got to be the first time I've actually defended ant).

                  I'd say it's worth opening a bug. Hell, I've opened a bug on a one-character typo.

                  • 6. Re: Seam in Eclipse: Library problems
                    Gavin King Master

                    I have fixed the eclipsy stuff in CVS. I don't usually commit that stuff, I didn't put it there, and I don't really agree fully with it being there....