On Fri, Mar 13, 2009 at 6:29 AM, Javier Puerto <javier.puerto....@juntadeandalucia.es> wrote: > I have changed the dependency in the pom to look like this: > <dependency> > <groupId>org.apache.ws.commons.axiom</groupId> > <artifactId>axiom-impl</artifactId> > <version>1.2.6</version> > <exclusions> > <exclusion> > <groupId>org.apache.geronimo.specs</groupId> > <artifactId>geronimo-activation_1.1_spec</artifactId> > </exclusion> > <exclusion> > <groupId>org.apache.geronimo.specs</groupId> > <artifactId>geronimo-javamail_1.4_spec</artifactId> > </exclusion> > </exclusions> > </dependency> > > In the same project I have another dependency to SendMailTransformer > from Cocoon. You can see the problem in the following link, at the > bottom of the page: > http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html
I believe this problem was fixed a while ago. Axiom 1.2.6 uses Geronimo JavaMail spec 1.2 but the latest version is 1.6. If you add <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-javamail_1.4_spec</artifactId> <version>1.6</version> </dependency> within the <dependencyManagment> in your pom that should make Maven use newer version of the JavaMail spec. And if you still see this problem (or other problems) with Geronimo JavaMail implementation please open a bug in the Geronimo project and we'll take a look at it. Thanks, Jarek