3.0.0.CR2 and JBoss AS 7.2.0.Alpha1 snapshot
bwallis42 Oct 11, 2012 9:47 PMThe joys of working against a moving target.
If you download a copy of the nightly build, the new CR2 release of modeshape won't work against it. On October 5th there was an update on the 7.2.0 jboss branch to upgrade Infinispan from 5.1.x to 5.2.0.Beta1 (AS7-5254). This causes a class not found error on startup.
You also cannot build ModeShape 3.0.0.CR2 against the latest jboss alpha code. I tried by updating the infinispan version for the as72 profile in the parent pom to 5.2.0.Beta1 and I get the following compile error.
{code}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project modeshape-jcr: Compilation failure: Compilation failure:
[ERROR] /users/bwallis/InfoMedix/JBoss/ModeShape/workspace/modeshape-src/modeshape/modeshape-jcr/src/test/java/org/modeshape/jcr/store/JdbcStringCacheStoreTest.java:[50,16] cannot find symbol
[ERROR] symbol : method addProperty(java.lang.String,java.lang.String)
[ERROR] location: class java.lang.Object
[ERROR] /users/bwallis/InfoMedix/JBoss/ModeShape/workspace/modeshape-src/modeshape/modeshape-jcr/src/test/java/org/modeshape/jcr/InfinispanUtilTest.java:[68,21] cannot find symbol
[ERROR] symbol : method purgeOnStartup(boolean)
[ERROR] location: interface org.infinispan.configuration.cache.LoaderConfigurationBuilder
[ERROR] /users/bwallis/InfoMedix/JBoss/ModeShape/workspace/modeshape-src/modeshape/modeshape-jcr/src/test/java/org/modeshape/jcr/store/JdbcBinaryCacheStoreTest.java:[57,16] cannot find symbol
[ERROR] symbol : method addProperty(java.lang.String,java.lang.String)
[ERROR] location: class java.lang.Object
{code}
The nightly build from before Oct 5th is no longer available from the build server so I built the version mentioned in MODE-1601 by checking out jboss src like so:
git checkout adaa66bbca6ef426bcb0b5fcdb86ed18f0757c9c
and building jboss
./build.sh clean install -Prelease -DskipTests
and then building the tip of the master branch of modeshape
mvn clean install -o -DskipTests -Pintegration,as72
Installed the jboss archive just built, unpacked the modeshape on top of it and I now have a working installation.