Re: Unit test error in binding comet

2010-08-27 Thread Simon Nash
Florian MOGA wrote: Tried the geronimo servlet 3.0 artifact and it works fine. I've committed the latest pom containing it. It's much better having a stable artifact. This seems like the right solution. Thanks for the tip. In relation to this topic, I wonder why Sun (Oracle) wouldn't make

Re: Unit test error in binding comet

2010-08-27 Thread Florian MOGA
Tried the geronimo servlet 3.0 artifact and it works fine. I've committed the latest pom containing it. It's much better having a stable artifact. Thanks for the tip. In relation to this topic, I wonder why Sun (Oracle) wouldn't make public the javaee 6 jars containing the implementation in maven

Re: Unit test error in binding comet

2010-08-27 Thread ant elder
On Fri, Aug 27, 2010 at 10:13 AM, Florian MOGA wrote: > In conclusion, we've got 3 possibilities: > > javaee-web-api + javax.mail > javaee-web-api + geronimo.javamail > servlet-api:3.0-alpha-1 > > Let me know which option seems best for you. I'd go for the servlet-api due > to it's conciseness bu

Re: Unit test error in binding comet

2010-08-27 Thread Florian MOGA
After trying geronimo artifacts the whole morning with no result, I came over this thread [1] which states that the jars containing the implementations have to be placed before the javaee api jar in the pom. This solved the problem, it works with either geronimo.javamail or javax.mail:mail (Ant pro

Re: Unit test error in binding comet

2010-08-27 Thread ant elder
That sounds likely to me, the dependency javaee-web-api does include the javax.mail interfaces so its duplicating whats in mail-1.4.jar so its just chance that in my environment it uses the classes from the mail jar and works whereas in your environment it uses the classes from javaee-web-api and s

Re: Unit test error in binding comet

2010-08-26 Thread Simon Nash
Thread [1] below might be relevant. Apparently Sun is in the habit of releasing a "borked" JavaEE API jar that can only be used for compiling and not for running testcases. The suggested solution is not to use the Sun JavaEE API jar but instead to use the equivalent Geronimo API jars, which aren

Unit test error in binding comet

2010-08-26 Thread Florian MOGA
Hi, I've noticed a strange error in the logs when running *mvn test *on binding-comet-runtime. java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/internet/ParseException Full logs can be found here [0]. I've searched the internet