Can you try 2.0? Since 1.0 is quite out to date.
VELO On Wed, Feb 4, 2009 at 2:27 PM, Kent Brockman <[email protected]> wrote: > > I'm having trouble executing my FlexUnit tests using maven. When I > run the following pom: > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// > www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// > maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <parent> > <groupId>info.rvin.mojo</groupId> > <artifactId>flex-super-pom</artifactId> > <version>1.0</version> > </parent> > <groupId>com.test</groupId> > <artifactId>testlib</artifactId> > <version>1.0-SNAPSHOT</version> > <packaging>swc</packaging> > <name>TestLib Flex</name> > <build> > </build> > </project> > > With a simple unit test/action script file, the code compiles fine but > I get the following exception: > > [INFO] [flex-compiler-mojo:test-run] > opened server socket > accepting data from client > Exception in thread "Thread-0" java.lang.NoClassDefFoundError: org/ > jaxen/JaxenException > at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java: > 230) > at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java: > 207) > at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189) > at info.rvin.flexmojo.test.FlexUnitMojo.writeTestReport > (FlexUnitMojo.jav > a:267) > at info.rvin.flexmojo.test.FlexUnitMojo.access$400 > (FlexUnitMojo.java:32) > > at info.rvin.flexmojo.test.FlexUnitMojo$1.saveTestReport > (FlexUnitMojo.ja > va:172) > at info.rvin.flexmojo.test.FlexUnitMojo$1.run > (FlexUnitMojo.java:126) > Caused by: java.lang.ClassNotFoundException: org.jaxen.JaxenException > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at org.codehaus.classworlds.RealmClassLoader.loadClassDirect > (RealmClassL > oader.java:195) > at org.codehaus.classworlds.DefaultClassRealm.loadClass > (DefaultClassReal > m.java:255) > at org.codehaus.classworlds.DefaultClassRealm.loadClass > (DefaultClassReal > m.java:274) > at org.codehaus.classworlds.RealmClassLoader.loadClass > (RealmClassLoader. > java:214) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: > 319) > ... 7 more > > I've tried adding a dependency to jaxen-1.1 in the pom, but that > doesn't change anything. > Has anyone else seen this or have a suggestion as to what I'm doing > wrong? > > Thanks, > > Kent > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
