For all those who are trying to run
JDK 6 + maven2 + embedded JBoss and keep getting the Array error,
The trick is to use the following system property
-Dsun.lang.ClassLoader.allowArraySyntax=true
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- for JDK6 Support --> <argLine>-Dsun.lang.ClassLoader.allowArraySyntax=true</argLine> </configuration> </plugin>