3 Replies Latest reply on Sep 2, 2008 1:10 PM by Pete Muir

    Jboss Tools EAR Wizard

    Beren Erchamion Newbie

      I'm trying to use the Jboss Tools to create a seam project using hte EAR format. I seem to get some variability when I do this. I'm using Seam 2 tech preview the JBoss 4.2.

      I get these two things happening:

      1. If AS is running when the wizard completes I'll get an error that the components.xml cannot be read.

      2. If AS is not running and I start JBoss after the wizard completes and I start up AS and then deploy the project I will not be able to login and will get an error like this:

      15:47:17,439 WARN  [IdentityManager] no identity store available - please install an IdentityStore with the name 'identityStore' if identity management is required.
      15:47:17,439 ERROR [SeamLoginModule] No authentication method defined - please define authenticate-method for <security:identity/> in components.xml

      WAR based projects seem to work fine.

      Where should the components.xml file be located in the EAR project structure?

      Any help/sugestions would be great.

        • 1. Re: Jboss Tools EAR Wizard
          Beren Erchamion Newbie

          I tried seam-gen and I get the same issue with EAR projects.

          • 2. Re: Jboss Tools EAR Wizard
            Beren Erchamion Newbie

            I think the issue is the build script that both seam-den and the JBoss Tools wizard uses to build an EAR project. There's a few extra thing added into the components.xml file that cause this error. There's a drools block, some extra events, and there's a security tag added that must be causing my specific error.

            I went into the booking example and using the components.xml in that project as a guide I modified my file and now my EAR deploys from both Eclipse and from seam-gen and I can log in.

            Many thanks to Christoph foe his excellent tutorial on seam-gen and working with Eclipse:



            Here's my final components.xml content:

            <?xml version="1.0" encoding="UTF-8"?>
            <components xmlns="http://jboss.com/products/seam/components"
                            "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd 
                             http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd 
                             http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
                             http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
                             http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                             http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd
                             http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
               <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
               <core:manager concurrent-request-timeout="500" 
               <persistence:managed-persistence-context name="entityManager"
               <drools:rule-base name="securityRules">
               <security:identity security-rules="#{securityRules}" remember-me="true"/>
            <security:identity authenticate-method="#{authenticator.authenticate}"/>
               <event type="org.jboss.seam.security.notLoggedIn">
                   <action execute="#{redirect.captureCurrentView}"/>
               <event type="org.jboss.seam.security.loginSuccessful">
                   <action execute="#{redirect.returnToCapturedView}"/>
               <mail:mail-session host="localhost" port="2525" username="test" password="test" />
               <!-- For use with jBPM pageflow or process management -->

            • 3. Re: Jboss Tools EAR Wizard
              Pete Muir Master

              Please move this to the jboss tools forum