-
1. Re: Failed to build AS7 from source/tag
jaikiran May 12, 2012 2:01 AM (in response to juergen.zimmermann)Juergen, I branched your post to a separate topic here. Could you please provide more details including the exact command you used to fetch the source and then build the code? Also, have you tried JDK6 to build it instead of JDK7?
-
2. Re: Failed to build AS7 from source/tag
frank.cornelis May 12, 2012 5:11 AM (in response to juergen.zimmermann)The Arquillian integration tests will fail if you already have a JBoss up and running.
-
3. Re: Failed to build AS7 from source/tag
juergen.zimmermann May 12, 2012 10:16 AM (in response to jaikiran)Jaikiran, I tried JDK 6u32 both 32 bit and 64 bit. Both versions failed when invoking "mvn install". I'll attach the logs for both compilation runs.
-
mvn-install.64.log.zip 180.2 KB
-
mvn-install.32.log.zip 19.1 KB
-
-
4. Re: Failed to build AS7 from source/tag
jaikiran May 12, 2012 10:20 AM (in response to juergen.zimmermann)[WARNING] \temp\jboss712\jboss-as\clustering\infinispan\src\test\java\org\jboss\as\clustering\infinispan\DefaultEmbeddedCacheManagerTest.java:[44,28] [deprecation] org.infinispan.config.Configuration in org.infinispan.config has been deprecated
[WARNING] \temp\jboss712\jboss-as\clustering\infinispan\src\test\java\org\jboss\as\clustering\infinispan\DefaultEmbeddedCacheManagerTest.java:[46,28] [deprecation] org.infinispan.config.GlobalConfiguration in org.infinispan.config has been deprecated
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: Exception thrown while constructing Processor object: java.lang.OutOfMemoryError: PermGen space
[INFO] 1 error
Looks like your MAVEN_OPTS has a low memory setting. Try increasing the memory settings.
-
5. Re: Failed to build AS7 from source/tag
juergen.zimmermann May 12, 2012 10:29 AM (in response to jaikiran)I just saw it. Now I'll try -Xmx1536m -XX:MaxPermSize=1024m
-
6. Re: Failed to build AS7 from source/tag
juergen.zimmermann May 12, 2012 10:57 AM (in response to juergen.zimmermann)I was using the 32 Bit version of JDK 6u32 and MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=512m. Now I got this error message:
Running org.jboss.as.test.smoke.osgi.SimpleRepositoryTestCase
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 42.418 sec <<< FAILURE!
The surefire output files for SimpleRepositoryTestCase will be attached
-
7. Re: Failed to build AS7 from source/tag
lafr May 12, 2012 11:11 AM (in response to juergen.zimmermann)I also saw this when building on Windows 7.
Same source code on Solaris Sparc builds fine without failure.
-
8. Re: Failed to build AS7 from source/tag
jaikiran May 12, 2012 11:36 AM (in response to juergen.zimmermann)I kind of remember someone else saying about random failures in this testcase. Can you add a @Ignore to that test for now and continue with the build. I'll check if this is a known issue.
-
9. Re: Failed to build AS7 from source/tag
juergen.zimmermann May 13, 2012 11:50 AM (in response to jaikiran)Using @Ignore I could compile 7.1.2 using JDK 6u32 and 7u4 (both in the 32 Bit variant). However, when running a simple test I'm getting a NoSuchMethodError. See https://issues.jboss.org/browse/AS7-4782
-
10. Re: Failed to build AS7 from source/tag
ctomc May 13, 2012 12:47 PM (in response to juergen.zimmermann)Hi guys,
Please make sure that sun(oracle) jvm or apple's jdk is used to compile, others might not work as expected. build on openjdk/ibm jvm is known to not work as expected
to build use provided scripts build.sh/build.bat that will use bundled maven that.
In worst case scenario, if you just need to get binary build you can build it without running tests.
run
build.sh/build.bat/mvn -DskipTests
--
tomaz
-
11. Re: Failed to build AS7 from source/tag
juergen.zimmermann May 13, 2012 8:12 PM (in response to ctomc)As mentioned above I'm using Windows 7 64Bit with JDK 6u32 (and tried also 7u4) -- not OpenJDK. I thought it's obvious that it's *Oracle's* JDK (on a Windows box).
-
12. Re: Failed to build AS7 from source/tag
jaikiran May 13, 2012 9:29 PM (in response to juergen.zimmermann)Have you tried
mvn clean install
instead of
mvn install
-
13. Re: Failed to build AS7 from source/tag
juergen.zimmermann May 13, 2012 9:44 PM (in response to jaikiran)Compilation isn't the problem anymore: @Ignore for the org.jboss.as.test.smoke.osgi.SimpleRepositoryTestCase did the job.
Now I'm struggling with https://issues.jboss.org/browse/AS7-4782 because of a wrong dependency in org.jboss.remotingjmx:remoting-jmx:1.0.3.Final referencing org.jboss.logmanager:jboss-logmanager:1.3.0.Final instead of 1.3.1.Final.
-
14. Re: Failed to build AS7 from source/tag
jaikiran May 14, 2012 12:02 AM (in response to juergen.zimmermann)That's strange. Are you sure your local Maven repository is clean and doesn't have some artifact downloads. Just to be sure, can you maybe point your local repo to a different location and build this? It might take a while to build because it's going to download the entire set of dependencies.