Hi Shawn, Thank you for your fast response! I did all the three steps except I did not have the latest realm and enmasse. After pulling them, building realm, and running mvn clean install -Dload.file=./src/main/resources/FortressRestServerPolicy.xml I get:
[startAnt] BUILD FAILED [startAnt] /Users/myusername/git/directory-fortress-enmasse/src/main/resources/Fortres sRestServerPolicy.xml:26: java.lang.IllegalMonitorStateException: attempt to unlock read lock, not locked by current thread [startAnt] at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.unmatchedUnlockExcep tion(ReentrantReadWriteLock.java:444) [startAnt] at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(Ree ntrantReadWriteLock.java:428) [startAnt] at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(Abstrac tQueuedSynchronizer.java:1341) [startAnt] at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(Reentrant ReadWriteLock.java:881) [startAnt] at org.apache.directory.fortress.core.rbac.RoleUtil.getGraph(RoleUtil.java:389 ) [startAnt] at org.apache.directory.fortress.core.rbac.RoleUtil.getChildren(RoleUtil.java: 122) [startAnt] at org.apache.directory.fortress.core.rbac.RoleDAO.unloadLdapEntry(RoleDAO.jav a:644) [startAnt] at org.apache.directory.fortress.core.rbac.RoleDAO.getRole(RoleDAO.java:387) [startAnt] at org.apache.directory.fortress.core.rbac.RoleP.read(RoleP.java:73) [startAnt] at org.apache.directory.fortress.core.rbac.AdminMgrImpl.addInheritance(AdminMg rImpl.java:1090) [startAnt] at org.apache.directory.fortress.core.ant.FortressAntTask.addRoleInheritances( FortressAntTask.java:1463) [startAnt] at org.apache.directory.fortress.core.ant.FortressAntTask.execute(FortressAntT ask.java:947) [startAnt] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) [startAnt] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [startAnt] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6 2) [startAnt] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:43) [startAnt] at java.lang.reflect.Method.invoke(Method.java:483) [startAnt] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [startAnt] at org.apache.tools.ant.Task.perform(Task.java:348) [startAnt] at org.apache.tools.ant.Target.execute(Target.java:435) [startAnt] at org.apache.tools.ant.Target.performTasks(Target.java:456) [startAnt] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) [startAnt] at org.apache.tools.ant.Project.executeTarget(Project.java:1364) [startAnt] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor. java:41) [startAnt] at org.apache.tools.ant.Project.executeTargets(Project.java:1248) [startAnt] at org.apache.tools.ant.Main.runBuild(Main.java:851) [startAnt] at org.apache.tools.ant.Main.startAnt(Main.java:235) [startAnt] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [startAnt] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [startAnt] [startAnt] Total time: 1 second [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.092s [INFO] Finished at: Thu Apr 16 16:10:34 CEST 2015 [INFO] Final Memory: 41M/344M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project fortress-rest: An Ant BuildException has occured: Java returned: 1 [ERROR] around Ant part ...<java fork="true" classname="org.apache.tools.ant.launch.Launcher" taskname="startAnt" failonerror="true" dir="/Users/sanyasnb/git/directory-fortress-enmasse" timeout="4000000">... @ 5:180 in /Users/myusername/git/directory-fortress-enmasse/target/antrun/build-fortre ss-load.xml Best, Oleksandr On 16/4/2015 15:40 , "Shawn McKinney" <[email protected]> wrote: > >> On Apr 16, 2015, at 5:44 AM, Emmanuel Lécharny <[email protected]> >>wrote: >> >> Le 16/04/15 12:35, Oleksandr Bodriagov (Polystar) a écrit : >>> I get the same error when running mvn clean install >>> -Dload.file=./src/main/resources/FortressRestServerPolicy.xml >> >> >> Hmmm, same thing for me... >> >> We will have to wait a few hours for Shawn to have a look at this issue. > >Hi, > >Let me see if I have this right: > >1. You have pulled the latest source from git for core, realm and >enmasse. > >2. Next you changed the version in core from 1.0-RC41-SNAPSHOT TO >1.0-RC40-SNAPSHOT in the core pom.xml. > >3. Next you have built the core and realm. > >4. Next you try to mvn clean install on enmasse and you get an error. > >When I do the same I get a different error on enmasse mvn clean install. >Excerpt is below. Emmanuel do you know the cause for what my error is? >Guessing it has something to do with the parent project being added to >the pom.xml. > > >[INFO] Building jar: >/home/smckinn/GIT/fortressDev/directory-fortress-enmasse/target/fortress-r >est-1.0-RC40-SNAPSHOT-sources.jar >[INFO] >[INFO] --- tools-maven-plugin:1.4:verify-legal-files (verify-legal-files) >@ fortress-rest --- >[INFO] Checking legal files in: fortress-rest.war >[INFO] >------------------------------------------------------------------------ >[INFO] BUILD FAILURE >[INFO] >------------------------------------------------------------------------ >[INFO] Total time: 8.756 s >[INFO] Finished at: 2015-04-16T06:54:45-06:00 >[INFO] Final Memory: 49M/606M >[INFO] >------------------------------------------------------------------------ >[ERROR] Failed to execute goal >org.apache.geronimo.genesis.plugins:tools-maven-plugin:1.4:verify-legal-fi >les (verify-legal-files) on project fortress-rest: Artifact does not >contain any legal files: fortress-rest.war -> [Help 1] >[ERROR] >[ERROR] To see the full stack trace of the errors, re-run Maven with the >-e switch. >[ERROR] Re-run Maven using the -X switch to enable full debug logging. >[ERROR] >[ERROR] For more information about the errors and possible solutions, >please read the following articles: >[ERROR] [Help 1] >http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > > >Shawn >[email protected] >
