2 Replies Latest reply on Feb 22, 2013 8:32 AM by nathan dennis

    Seam-Mail 3.1. and pom dependency problem

    Frank Ruenagel Newbie

      Hello,

       

      I tried to install seam mail in my  J2ee project with Eclipse Indigo and JBoss 7.1.1. I use embedded maven 3.0.2.

       

      Using http://docs.jboss.org/seam/3/mail/snapshot/reference/en-US/html_single/

      I think that also others will stumble over the following problem:

      My maven does not like the version variable in the pom.xml here:

      <dependency>
        <groupId>org.jboss.seam.mail</groupId>
        <artifactId>seam-mail-impl</artifactId>
        <version>${seam.mail.version}</version>
      </dependency
      >

      The “version” is not resolved. I had to replace it with “3.1.0.Beta3”. Then it works (well, seems to...)

       

      The following does better and uses the 3.1.1.Final Version

       

      <dependency>

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

        <artifactId>seam-mail</artifactId>

         <version>3.1.1.Final</version>

      </dependency>

       

      But this throws an exception on startup:

       

      org.jboss.msc.service.StartException in service jboss.deployment.unit."XX.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.ocpsoft.rewrite.cdi.expressions.Expressions(ELContext, ExpressionFactory)]. Possible dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.solder.el.ELContextProducer.createELContext()], Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.ocpsoft.rewrite.cdi.expressions.ELContextProducer.createELContext()]]]

       

      So ist Solder incompatible with ocpsoft.rewrite? I cannot believe this, since ocpsoft.rewrite is used by richfaces: It seems to be needed by the push mechanism (atmosphere).

       

      Regards

      Frank Ruenagel

       

      Text added after "The following does better...." from Frank Ruenagel