1 Reply Latest reply on Apr 14, 2011 12:38 PM by Gerry Matte

    Examples eMail setup - SEAM 2.2.1.Final and Meldware

    Gerry Matte Newbie

      I am using JBoss 6.0.0.Final with SEAM 2.2.1.Final.

      While attempting to deploy the SEAM examples email application I discovered a few problems which required changes to the distributed components.xml and manual removal of meldware artifacts.

      I always configure the JBoss JNDI Mail session to provide a container wide mail service.
      I therefore commented out the meldware specific settings and implemented a reference to the JBoss mail session as described in section of the SEAM 2.2.1.Final reference manual.

      You may alternatively wish to configure a mail session to your own mail host as described in section and 32.9.  The only required entry in components.xml is
      <mail:mail-session session-jndi-name="java:/Mail" />

      Most importantly, after the mail example has been exploded to JBoss, be sure to remove the file meldwarebase.sar from the jboss deploy folder and then delete the file meldware.store from the jboss conf folder.

      The eMail examples should then begin to work.

      Hopefully the people maintaining SEAM 2 will at some point remove the meldware target from the eMail example's build.xml.  Until that happens, you can correct the ant build task by changing line 11 to disable deploying meldware by changing value=yes to no:      
      <property name="deploy.meldware.mail" value="no" />

        • 1. Re: Examples eMail setup - SEAM 2.2.1.Final and Meldware
          Gerry Matte Newbie

          One correction to my posting.  Changing the mail example's build.xml as described in the last sentence will prevent deployment of meldwarebase.sar but it will NOT prevent deployment of meldware.store to the conf folder. After running ant explode you should manually delete meldware.store.

          If you do not do this step there is no harm and the application will operate without any errors.  You will simply have an extra unused file in your conf folder.