directory-fortress mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Bodriagov (Polystar)" <oleksandr.bodria...@polystar.com>
Subject error when building Apache Fortress Web 1.0-RC40-SNAPSHOT
Date Fri, 17 Apr 2015 09:36:09 GMT
Hi Shawn,

Thank you very much for your help!
Can you look also into a problem with Apache Fortress Web. I cannot build
it when I run
"mvn clean install 
-Dload.file=./src/main/resources/FortressWebDemoUsers.xml²
However, if I run simply "mvn clean install², then everything works.
Here is my problem listing:
 [startAnt] BUILD FAILED
 [startAnt] 
/Users/myusername/git/directory-fortress-commander/src/main/resources/Fortr
essWebDemoUsers.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.UsoUtil.getGraph(UsoUtil.java:284)
 [startAnt] 	at 
org.apache.directory.fortress.core.rbac.UsoUtil.getChildren(UsoUtil.java:11
0)
 [startAnt] 	at 
org.apache.directory.fortress.core.rbac.OrgUnitDAO.getEntityFromLdapEntry(O
rgUnitDAO.java:711)
 [startAnt] 	at 
org.apache.directory.fortress.core.rbac.OrgUnitDAO.findByKey(OrgUnitDAO.jav
a:359)
 [startAnt] 	at 
org.apache.directory.fortress.core.rbac.OrgUnitP.read(OrgUnitP.java:239)
 [startAnt] 	at 
org.apache.directory.fortress.core.rbac.AdminRoleP.validate(AdminRoleP.java
:399)
 [startAnt] 	at 
org.apache.directory.fortress.core.rbac.AdminRoleP.add(AdminRoleP.java:138)
 [startAnt] 	at 
org.apache.directory.fortress.core.rbac.DelAdminMgrImpl.addRole(DelAdminMgr
Impl.java:98)
 [startAnt] 	at 
org.apache.directory.fortress.core.ant.FortressAntTask.addAdminRoles(Fortre
[FortressAdmin] 2015-04-17 11:29:058 WARN  FortressAntTask:1979 -
addOrgunits name [demousrs1] caught
SecurityException=org.apacssAntTask.java:2137)
 [startAnt] 	at 
org.apache.directory.fortress.core.ant.FortressAntTask.execute(FortressAntT
ask.java:932)
 [startAnt] 	at org.apachehe.directory.fortress.core.CreateException:
create orgUnit name [demousrs1] type [USER] root
[ou=demousrs1,ou=OS-U,ou=ARBAC,dc=example,dc=com] caught
LdapException=org.apache.directory.api.ldap.model.exception.LdapEntryAlread
yExistsException: ENTRY_ALREADY_EXISTS: failed for MessageType :
ADD_REQUEST
 [startAnt] [FortressAdmin] Message ID : 5
 [startAnt] [FortressAdmin]     Add Request :
 [startAnt] [FortressAdmin]
E.tools.ant.UnknownElement.execute(UnknownElement.java:291)
 [startAnt] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [startAnt] 	at sntry
 [startAnt] [FortressAdmin]     dn[n]:
ou=demousrs1,ou=OS-U,ou=ARBAC,dc=example,dc=com
 [startAnt] [FortressAdmin]     objectClass: top
 [startAnt] [FortressAdmin]     objectClass: ftOrgUnit
 [startAnt] [FortressAdmin]     objectClass: ftMods
 [startAnt] [FortressAdmin]     ou: demousrs1
 [startAnt] [FortressAdmin]     ftId: f7cca315-4325-4f71-a59a-4015d6c2ae8d
 [startAnt] [FortressAdmin]     description: Test User Org 1 for Fortress
Web User
 [startAnt] [FortressAdmin]
un.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62
)
 [startAnt] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke:
ERR_250_ENTRY_ALREADY_EXISTS
ou=demousrs1,ou=OS-U,ou=ARBAC,dc=example,dc=com already exists!
 [startAnt] [FortressAdmin] 2015-04-17 11:29:058 INFO
FortressAntTask:2134 - addAdminRoles name=fortress-web-user-admin
description=Fortress User Admin
 [startAnt] [FortressAdmin] 2015-04-17 11:29:058 INFO  UsoUtil:218 -
loadGraph initializing USO context [HOME]
 [startAnt] (DelegatingMethodAccessorImpl.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:390)
 [startAnt] 	at org.apache.tools.ant.Target.performTasks(Target.java:411)
 [startAnt] 	at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
 [startAnt] 	at 
org.apache.tools.ant.Project.executeTarget(Project.java:1366)
 [startAnt] 	at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.
java:41)
 [startAnt] 	at 
org.apache.tools.ant.Project.executeTargets(Project.java:1249)
 [startAnt] 	at org.apache.tools.ant.Main.runBuild(Main.java:801)
 [startAnt] 	at org.apache.tools.ant.Main.startAnt(Main.java:218)
 [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: 9.038s
[INFO] Finished at: Fri Apr 17 11:29:59 CEST 2015
[INFO] Final Memory: 35M/431M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project
fortress-web: 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/myusername/git/directory-fortress-commander"
timeout="4000000">... @ 5:182 in
/Users/myusername/git/directory-fortress-commander/target/antrun/build-fort
ress-load.xml


Best regards,
Oleksandr

>


Mime
View raw message