I have been running TeamCity Enterprise Version 3.1.1 for my CI with Maven and been getting the following errors
java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/security/Init
i was able to fix the this error by adding the following to the pom file...
<dependency> <groupId>com.sun.org.apache.xml.security</groupId> <artifactId>xmlsec</artifactId> <version>2.0</version> <scope>test</scope> </dependency>
If you are having this issue in tomcat then add the above dependency to your pom less the scope like the following
<dependency>
<groupId>com.sun.org.apache.xml.security</groupId>
<artifactId>xmlsec</artifactId>
<version>2.0</version>
</dependency>



0 Comments:
Post a Comment