On Aug 12, 2010, at 1:35 PM, Lin Sun wrote: > Hi > > I am trying to build the new openejb-jcdi code. Here is what I did > 1. check out code from > http://svn.apache.org/repos/asf/openejb/branches/openejb-jcdi/ > 2. run mvn clean test, it failed at some junit failure > 3. run mvn clean test -DskipTests=true > > However, I am failing at many compilation errors like below - > > [INFO] Compiling 599 source files to > C:\openejb-jcdi\container\openejb-core\targ > et\classes > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Compilation failure > > C:\openejb-jcdi\container\openejb-core\src\main\java\org\apache\openejb\util\Poj > oSerialization.java:[38,33] sun.misc.Unsafe is Sun proprietary API and may be > re > moved in a future release > > C:\openejb-jcdi\container\openejb-core\src\main\java\org\apache\openejb\util\pro > xy\LocalBeanProxyGeneratorImpl.java:[30,33] sun.misc.Unsafe is Sun > proprietary A > PI and may be removed in a future release > > How can i get the openejb-jcdi project to build? I am using sun jdk > 1.6.0_21 and maven 2.2.1
The "sun.misc.Unsafe" lines are warnings and shouldn't cause any build failures. I don't know if the OpenWebBeans snapshots are current. I just checked out fresh copies of both[1][2] and built with tests off to check for compilation errors and didn't have any compile issues. You can ignore or comment out any failed test cases. -David [1] https://svn.apache.org/repos/asf/openwebbeans/trunk [2] https://svn.apache.org/repos/asf/openejb/branches/openejb-jcdi
