13 Replies Latest reply on May 16, 2012 4:57 PM by jason817

    seam3: maven dependencies

    jason817

      I am very frustrated in seam3. Is there any good example  to use? poor....

        • 1. Re: seam3: maven dependencies
          lightguard

          Have you looked? Have you read any of the documentation? Are you using the boms?

          • 2. Re: seam3: maven dependencies
            jason817

            Thank you for your reply.

             

            I have read seam3  reference doc. and refer to example from seam3 3.1.0.Final release.

             

            I create a JEE project with jboss tools. After that, I am trying to add seam3. But, I stuck there for few days....

             

            Can you advice on how to add seam3 to the existing JEE project?

            • 3. Re: seam3: maven dependencies
              lightguard

              Add this to your pom:

               

               

              <dependencyManagement>
                  <dependencies>
                      <dependency>
                          <groupId>org.jboss.seam</groupId>
                          <artifactId>seam-bom</artifactId>
                          <version>3.1.0.Final</version>
                          <type>pom</type>
                          <scope>import</scope>
                      </dependency>
                  </dependencies>
              </dependencyManagement>
              
              

               

              Then add the modules you need to your dependencies.

              • 4. Re: seam3: maven dependencies
                jason817

                I never use seam before. appreciate for any help on add seam to maven based project.

                • 5. Re: seam3: maven dependencies
                  jason817

                  Thanks Jason, yes. I added that already.

                   

                  What module is a must for seam 3 to work in JEE application?

                   

                  Is solder? thanks

                  • 6. Re: seam3: maven dependencies
                    lightguard

                    That all depends on your application. What are you doing? Seam 3 has modules for JSF (seam-faces), mail (seam-mail), JPA (seam-persistence) etc.

                    • 7. Re: seam3: maven dependencies
                      jason817

                      first, I want to add i18n, internationalize module, i read the http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html_single/

                      and add

                      <dependency>

                                          <groupId>org.jboss.seam.international</groupId>

                                          <artifactId>seam-international</artifactId>

                                          <version></version>

                                </dependency>

                       

                      later, I will add module used for web tier , do not know which one is suited? not like spring, there is spring-web.

                       

                      Thanks

                      • 8. Re: seam3: maven dependencies
                        lightguard

                        For web, you'll probably want JSF (seam-faces)

                        • 9. Re: seam3: maven dependencies
                          jason817

                          Thanks Jason.

                           

                          I notice in eclipse 3.7 version, after i install jboss tools, user can create "seam action, seam form ....", not support seam3.

                           

                          Is there any document on how to get start to design web tier with seam3? 

                           

                          I will use JSF 2.x to implement web tier. I do not know what will seam3 help to JSF. Your advice is most appreciated.

                          • 10. Re: seam3: maven dependencies
                            lightguard

                            I don't use JBoss Tools for my development, sorry. I've been an IntelliJ user for the past three years and they haven't been able to get me to switch yet

                            • 11. Re: seam3: maven dependencies
                              jason817

                              after adding international and seam faces module , i encounter the following few errors:

                               

                              org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.jboss.logging.Log4jLogger

                              Caused by: java.lang.NoClassDefFoundError: Lorg/jboss/seam/transaction/SeamTransaction;

                              Caused by: java.lang.TypeNotPresentException: Type org.jboss.seam.security.events.AuthorizationCheckEvent

                              Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LocationAwareLogger

                              Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;

                               

                              should I add seacurity module and transaction module? what is module for  org.jboss.logging.Log4jLogger?

                               

                              Thanks

                              • 12. Re: seam3: maven dependencies
                                lightguard

                                I haven't the slightest idea what your project looks like, but the logging stuff is already in AS7. Maybe some of the blog posts I have may help https://community.jboss.org/blogs/lightguardjp

                                • 13. Re: seam3: maven dependencies
                                  jason817

                                  thank you Jason