4 Replies Latest reply on Jan 11, 2011 1:01 PM by ihsankocak

    Disable or configure Seam Mail - Meldware

    dgriffin

      AS 5.1.0
      Seam 2.2.0.CR1


      I am trying to use 5.1.0 for the first time.  During startup / deployment I get


      java.lang.RuntimeException: Exception setting attribute KeyStoreURL on mbean meldware.mail:service JaasSecurityDomain,name=Mail+SSL
      ......
      Caused by: java.net.MalformedURLException: Failed to find url=...conf/meldware.store as a URL, file or resource


      This file does not exist and I do not want to mess with SSL or mail.


      I do not need to use Seam mail for now.  I need to know how to either disable it or configure it properly without SSL.  It is a surprise that this will not work out of the box and is wanting me to use mail+SSL.


      I saw in the Seam manual: To include Email support in your application, include jboss-seam-mail.jar  in your WEB-INF/lib directory.   I have discovered its absence does not appear to disable it.


      How to disable or configure it to work?

        • 1. Re: Disable or configure Seam Mail - Meldware
          asookazian

          If you unexplode/undeploy all Seam apps in AS 5.1.0 and restart JBoss, do you still get this:


          java.lang.RuntimeException: Exception setting attribute KeyStoreURL on mbean meldware.mail:service JaasSecurityDomain,name=Mail+SSL ...... Caused by: java.net.MalformedURLException: Failed to find url=...conf/meldware.store as a URL, file or resource



          You should probably get the 2.2.0.GA distro...

          • 2. Re: Disable or configure Seam Mail - Meldware
            dgriffin

            I did notice that Seam 2.2.0 was released.  I had just tried upgrading to 2.2.0 before seeing your suggestion. Same problem with 2.2.0


            I can get the DVD store example to run fine.    It looks like something in my app wants to use Seam mail yet I have no idea what it is.  I am not using mail nor have I declared any dependencies. Maybe I have done that indirectly but I do not where or how I would have done that.


            I tried removing all seam jars (debug, mail, ...) except the main seam jar.  Still the same problem.


            So, if I understand the issue,  I need to figure how to turn off SSL or totally disable meldware and/or any dependency for it.  I am not sure how to do that since I did not ask for it to be used.

            • 3. Re: Disable or configure Seam Mail - Meldware
              asookazian

              Start doing some global searches for 'SSL' or 'mail' to see if they're referenced in a config file.  I don't know what else to say, never had this problem.


              Also, did you seam-gen your project skeleton?

              • 4. Re: Disable or configure Seam Mail - Meldware
                ihsankocak

                i have absolutely same problem.any ideas?