2 Replies Latest reply on Sep 30, 2011 10:19 AM by Vinicius Carvalho

    Running weld-ee tests

    Vinicius Carvalho Apprentice

      Hi. Trying to get the Weld-ee container to run. But I'm bumping on all types of dependencies issues.

       

      I'm trying to test a war file so I don't know that if this might be the issue. But the initial setup for weld-ee proved to be insuficient, I had to download extra jars to put on classpath (asm-commons, nekko-html, commons-http) but after that I get this error:

       

      java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/validator/LongRangeValidator

       

      I found out that's because my dependency:

       

      <dependency>

                                    <groupId>javax</groupId>

                                    <artifactId>javaee-api</artifactId>

                                    <version>${java.ee.version}</version>

                                    <scope>provided</scope>

                          </dependency>

       

       

      Does not contain method bodies, I'd need to point to my jee jar on one of my servers. But if I have to do so, I would rather run the test against jboss container.

       

      So my question really is: Can I test war files inside the weld-ee? Or I'll need a full container for that.

       

      Regards