Hi,

I encounter the following error when I try building Apache Fortress Web:

[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-fortress-load.xml

Thank you for your help in advance!

Best regards,
Alex


Here is the full listing:
Mycmptr:directory-fortress-commander myusername$ mvn install 
-Dload.file=./src/main/resources/FortressWebDemoUsers.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Fortress Web 1.0-RC40-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: 
http://nexus.mycompanyname.se/content/groups/public/org/apache/directory/fortress-realm-impl/1.0-RC40-SNAPSHOT/maven-metadata.xml
Downloading: 
http://nexus.mycompanyname.se/content/groups/public/org/apache/directory/fortress-realm/1.0-RC40-SNAPSHOT/maven-metadata.xml
Downloading: 
http://nexus.mycompanyname.se/content/groups/public/org/apache/directory/fortress-core/1.0-RC40-SNAPSHOT/maven-metadata.xml
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ fortress-web 
---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
fortress-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 65 resources
[INFO] Copying 5 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ fortress-web 
---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
fortress-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
fortress-web ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ fortress-web ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (default) @ fortress-web ---
[INFO] Executing tasks

fortress-load:
     [echo] ###############  Run Fortress Policy Load  ###############
 [startAnt] Buildfile: 
/Users/myusername/git/directory-fortress-commander/src/main/resources/FortressWebDemoUsers.xml
 [startAnt]
 [startAnt] all:
 [startAnt] [FortressAdmin] 2015-04-16 09:24:009 INFO  Config:73 - static init: 
found from: fortress.properties path: 
/Users/myusername/git/directory-fortress-commander/src/main/resources/fortress.properties
 [startAnt] [FortressAdmin] 2015-04-16 09:24:009 INFO  Config:78 - static init: 
loading from: fortress.properties
 [startAnt] [FortressAdmin] 2015-04-16 09:24:009 INFO  Config:91 - static init: 
load config realm [DEFAULT]
 [startAnt] [FortressAdmin] 2015-04-16 09:24:009 INFO  ApacheDsDataProvider:170 
- LDAP POOL:  host=[localhost], port=[10389], min=[1], max=[10]
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
DefaultLdapCodecService:109 - Registered pre-bundled control factory: 
1.3.6.1.4.1.18060.0.0.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
DefaultLdapCodecService:113 - Registered pre-bundled control factory: 
2.16.840.1.113730.3.4.7
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
DefaultLdapCodecService:117 - Registered pre-bundled control factory: 
2.16.840.1.113730.3.4.2
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
DefaultLdapCodecService:121 - Registered pre-bundled control factory: 
2.16.840.1.113730.3.4.18
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
DefaultLdapCodecService:125 - Registered pre-bundled control factory: 
1.2.840.113556.1.4.319
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
DefaultLdapCodecService:129 - Registered pre-bundled control factory: 
2.16.840.1.113730.3.4.3
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
DefaultLdapCodecService:133 - Registered pre-bundled control factory: 
1.3.6.1.4.1.4203.1.10.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:91 - 
Registered pre-bundled control factory: 1.3.6.1.4.1.18060.0.0.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:95 - 
Registered pre-bundled control factory: 2.16.840.1.113730.3.4.7
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:99 - 
Registered pre-bundled control factory: 2.16.840.1.113730.3.4.2
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:103 - 
Registered pre-bundled control factory: 2.16.840.1.113730.3.4.18
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:107 - 
Registered pre-bundled control factory: 1.2.840.113556.1.4.319
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:111 - 
Registered pre-bundled control factory: 2.16.840.1.113730.3.4.3
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:115 - 
Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.10.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:119 - 
Registered pre-bundled control factory: 1.3.6.1.4.1.42.2.27.8.5.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:124 - 
Registered pre-bundled control factory: 2.16.840.1.113730.3.4.9
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:129 - 
Registered pre-bundled control factory: 2.16.840.1.113730.3.4.10
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:133 - 
Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.3
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:137 - 
Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.4
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:141 - 
Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:145 - 
Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.2
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:149 - 
Registered pre-bundled control factory: 1.2.840.113556.1.4.473
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:153 - 
Registered pre-bundled control factory: 1.2.840.113556.1.4.474
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:157 - 
Registered pre-bundled control factory: 1.2.840.113556.1.4.841
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:166 - 
Registered pre-bundled extended operation factory: 1.3.6.1.1.8
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:170 - 
Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.8
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:174 - 
Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.3
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:178 - 
Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.6
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:182 - 
Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.5
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:186 - 
Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.1.11.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:190 - 
Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.1.11.3
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  CodecFactoryUtil:194 - 
Registered pre-bundled extended operation factory: 1.3.6.1.4.1.1466.20037
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
StandaloneLdapApiService:344 - Registered pre-bundled extended operation 
factory: 1.3.6.1.4.1.4203.555.1
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
StandaloneLdapApiService:344 - Registered pre-bundled extended operation 
factory: 1.3.6.1.4.1.4203.555.2
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
StandaloneLdapApiService:344 - Registered pre-bundled extended operation 
factory: 1.3.6.1.4.1.4203.555.3
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
StandaloneLdapApiService:344 - Registered pre-bundled extended operation 
factory: 1.3.6.1.4.1.4203.555.4
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
StandaloneLdapApiService:344 - Registered pre-bundled extended operation 
factory: 1.3.6.1.4.1.4203.555.5
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  
StandaloneLdapApiService:344 - Registered pre-bundled extended operation 
factory: 1.3.6.1.4.1.4203.555.6
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 INFO  ConfigDAO:264 - 
getConfig dn [cn=DEFAULT,ou=Config,dc=example,dc=com]
 [startAnt]
 [startAnt] BUILD FAILED
 [startAnt] 
/Users/myusername/git/directory-fortress-commander/src/main/resources/FortressWebDemoUsers.xml:26:
 java.lang.IllegalMonitorStateException: attempt to unlock read lock, not 
locked by current thread
 [startAnt] at java.util.concurrent.locks.ReentrantReadWri[FortressAdmin] 
2015-04-16 09:24:010 INFO  FortressAntTask:789 - FORTRESS ANT TASK NAME : 
FortressAdmin
 [startAnt] [FortressAdmin] 
2015-04-teLock$Sync.unmatchedUnlockException(ReentrantReadWriteLock.java:444)
 [startAnt] at 
java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:428)
 [startAnt] at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1341)
 [startAnt] at 
java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.ja16
 09:24:010 INFO  FortressAntTask:1971 - addOrgunits name=demousrs1 
typeName=USER description=Test User Org 1 for Fortress Web va:881)
 [startAnt] at 
org.apache.directory.fortress.core.rbac.UsoUtil.getGraph(UsoUtil.java:284)
 [startAnt] at org.apache.directory.fortress.core.rbUser
 [startAnt] [FortressAdmin] 2015-04-16 09:24:010 WARN  FortressAntTask:1979 - 
addOrgunits name [demousrs1] caught 
SecurityException=orgac.UsoUtil.getChildren(UsoUtil.java:110)
 [startAnt] at 
org.apache.directory.fortress.core.rbac.OrgUnitDAO.getEntityFromLdapEntry(OrgUnitDA.apache.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.LdapEntryAlreadyExistsException:
 ENTRY_ALO.java:711)
 [startAnt] at 
org.apache.directory.fortress.core.rbac.OrgUnitDAO.findByKey(OrgUnitDAO.java:359)
 [startAnt] at org.apache.directory.fortrREADY_EXISTS: failed for MessageType : 
ADD_REQUEST
 [startAnt] [FortressAdmin] Message ID : 5
 [startAnt] [FortressAdmin]     Add Request :
 [startAnt] [FortressAdmess.core.rbac.OrgUnitP.read(OrgUnitP.java:239)
 [startAnt] at 
org.apache.directory.fortress.core.rbac.AdminRoleP.validate(AdminRoleP.java:3in]
 Entry
 [startAnt] [FortressAdmin]     dn[n]: 
ou=demousrs1,ou=OS-U,ou=ARBAC,dc=example,dc=com
 [startAnt] [FortressAdmin]     objectClass: top
 [startAnt] [Fortr99)
 [startAnt] at 
org.apache.directory.fortress.core.rbac.AdminRoleP.add(AdminRoleP.java:138)
 [startAnt] at org.apache.directory.fortress.core.rbac.essAdmin]     
objectClass: ftOrgUnit
 [startAnt] [FortressAdmin]     objectClass: ftMods
 [startAnt] [FortressAdmin]     ou: demousrs1
 [startAnt] [FortressAdmin]  DelAdminMgrImpl.addRole(DelAdminMgrImpl.java:98)
 [startAnt] at 
org.apache.directory.fortress.core.ant.FortressAntTask.addAdminRoles(FortressAntTask.java:2137)
 [startAnt] at 
org.apache.directory.fortress.core.ant.FortressAntTask.execute(FortressAntTask.java:932)
 [startAnt] at org.apache   ftId: 59d33e97-7e7a-4235-a1b7-adfa7b006cf3
 [startAnt] [FortressAdmin]     description: Test User Org 1 for Fortress Web 
User
 [startAnt] 
[FortressAd.tools.ant.UnknownElement.execute(UnknownElement.java:291)
 [startAnt] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [startAnt] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 [startAnt] at sun.reflect.DelegatingMethodAccessorImpl.invokemin] : 
ERR_250_ENTRY_ALREADY_EXISTS ou=demousrs1,ou=OS-U,ou=ARBAC,dc=example,dc=com 
already exists!
 [startAnt] [FortressAdmin] 2015-04-16 0(DelegatingMethodAccessorImpl.java:43)
 [startAnt] at java.lang.reflect.Method.invoke(Method.java:483)
 [startAnt] at org.apache.tools.ant.dispatch.Di9:24:010 INFO  
FortressAntTask:2134 - addAdminRoles name=fortress-web-user-admin 
description=Fortress User Admin
 [startAnt] [FortressAdmin]spatchUtils.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.help 2015-04-16 09:24:010 INFO  UsoUtil:218 
- loadGraph initializing USO context [HOME]
 [startAnt] er.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: 5.930s
[INFO] Finished at: Thu Apr 16 09:24:11 CEST 2015
[INFO] Final Memory: 21M/341M
[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-fortress-load.xml
[ERROR] -> [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
Mycmptr:directory-fortress-commander myusername$

Reply via email to