1 2 Previous Next 25 Replies Latest reply on Jun 13, 2011 3:32 PM by lvdberg Go to original post
      • 15. Re: Empty Result Hibernate search
        scope_talka

        Hi Leo,
        Sorry to ask, what version of hibernate search and lucene library did use for testing? Just thought that might be an issue. Thanks again.

        • 16. Re: Empty Result Hibernate search
          lvdberg

          Hi,


          I am now using the latest version (3.3.0 Final) with Lucene core 3.0.3. Maybe there is where your problem is, I not there are version conflicts with Hibernate ORM. I can't recall exactly, but I know that you should combine the right versions.


          Leo


          P.S. I always use these occasions to shamelessly plug Maven. All dependencies can be configured out if you want AND it solves conflicts !

          • 17. Re: Empty Result Hibernate search
            scope_talka

            Hi Leo,


            Thanks for all your help again, the things is I have never used maven before so I would have to do this manually. If you don't mind, could you list all the jar files needed. I have managed to get the ones you listed but am getting some ClassNotFoundExceptions. Thanks.

            • 18. Re: Empty Result Hibernate search
              scope_talka

              Hi Leo,
              If possible could you give a brief explanation on how to update eclipse with maven to include all the libraries needed for hibernate search. Thanks.

              • 19. Re: Empty Result Hibernate search
                lvdberg

                Hi,


                in addition to the jars mentioned before I also have:



                • hibernate-search-analyzers-3.3.0.Final.jar



                and also:



                • lucene-misc-3.0.3.jar and lucene-snowball-3.0.3.jar



                Although I doubt if the last two are really needed in basic configurations.


                There are also a number of apache-commons jars involved, but most of them are already on the classpath, because JBoss-Appserver uses them. This is what I use in a AP6 environment.


                I also looked at the Search version in relation to Hibernate. Search 3.0x is compatible with Hibernate core from 3.2.2 and Hibernate annotations and EntityManager from 3.3.X


                Search 3.1 is compatible with Hibernate core 3.3.X, Hibernate Annotations 3.4.X and Entitymanager 3.4.x





                Leo

                • 20. Re: Empty Result Hibernate search
                  lvdberg

                  Wale,


                  you can install a Maven plugin M2 the standard way. I've included the direct link. Be aware, that it can take some time to learn, but it's worth the effort. Seam 3 is fully Mavenized, so at the moment you make the step, you will be prepared.


                  Sonatype install Maven


                  Leo

                  • 21. Re: Empty Result Hibernate search
                    scope_talka

                    Hi Leo,


                    Thanks for the reply, I have already installed the m2eclipse plugin, I just don't know what to do next, I mean the steps to follow in order to use maven to install the needed libraries. perhaps, start a new maven or something similar. Thanks

                    • 22. Re: Empty Result Hibernate search
                      scope_talka

                      Hi Leo,
                      If you don't mind me asking, did you create a mavenized seam project or you created a maven project separately then add it to the seam project? Thanks.

                      • 23. Re: Empty Result Hibernate search
                        lvdberg

                        Hi,


                        Depends, I do both. Adding support is simply setting the option and maven takes care of the rest. The Maven-approach has some quirks, because it asks you a lot of additional stuff. If you just use it to figure out the dependencies, th first approach is the most simple one.


                        Leo

                        • 24. Re: Empty Result Hibernate search
                          scope_talka

                          Hi Leo,


                          I now understand how maven build works to some extent. so I created a mavenized seam project then started the server, but its generating bunch of errors, I added the needed dependencies and got some fixed but get new errors like.


                          - argument type mismatch
                          - CONFIGURATION FAILED! argument type mismatch
                          - java.lang.ClassNotFoundException: org.drools.RuleBase


                          quick questions please. where should the dependencies be added? parent project or the project that needs the dependency? Lastly, a dependency is added, does maven fetch the proper library for the projects or do I have to manually select the ones I think would work for the project? Right now am really just concerned with getting the server to run without any errors before anything else. Thanks.

                          • 25. Re: Empty Result Hibernate search
                            lvdberg

                            Hi,


                            I don't understand your question. What do you mean by running te server. maven is for buidling your project AND it can be used to automate testrun, debug etc.


                            I assumed you had a problem buidling the project for which MAVEN helps a lot. So you use the dependies to solve any problem, but you need to provide the basic yourself. I use a generic parent projects which contains the enterprise settings such as the repositories, compile, javadoc etc. For a war/ear project I always create a super-pom which has the generic one as parent and all projects use the child-pom. For a Seam project I create a XXX-pom, which contains all SEAM-stuff and the war and ear projects have it as parent.


                            Hoepfully this helps a bit.


                            Leo


                            P.S. This is really not the best place to start Maven discussions. There are not much users here. I can recommend the book maven the definitive guide and the Maven website. Mind you it is not a easy-to-learn thing!!

                            1 2 Previous Next