You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fortress@directory.apache.org by "Oleksandr Bodriagov (Polystar)" <ol...@polystar.com> on 2015/04/17 11:36:09 UTC

error when building Apache Fortress Web 1.0-RC40-SNAPSHOT

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

>


Re: [Bulk] Re: [Bulk] Re: [Bulk] error when building Apache Fortress Web 1.0-RC40-SNAPSHOT

Posted by Shawn McKinney <sm...@apache.org>.
> On Apr 17, 2015, at 10:18 AM, Oleksandr Bodriagov (Polystar) <ol...@polystar.com> wrote:
> 
>  have just successfully built the Fortress Web and Rest (even with
> -Dload.file).
> Thank you both very much for your help!

Oleksandr you are welcome.  

Shawn
smckinney@apache.org

Re: [Bulk] Re: [Bulk] error when building Apache Fortress Web 1.0-RC40-SNAPSHOT

Posted by "Oleksandr Bodriagov (Polystar)" <ol...@polystar.com>.
Hi Shawn,

I have just successfully built the Fortress Web and Rest (even with
-Dload.file).
Thank you both very much for your help!

Best regards,
Oleksandr Bodriagov



On 17/4/2015 17:01 , "Shawn McKinney" <sm...@apache.org> wrote:

>
>> On Apr 17, 2015, at 8:31 AM, Shawn McKinney <sm...@apache.org>
>>wrote:
>> 
>>> 
>>> On Apr 17, 2015, at 4:36 AM, Oleksandr Bodriagov (Polystar)
>>><ol...@polystar.com> wrote:
>>> 
>>> 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] 
>> 
>> Yes, I noticed same problem yesterday.  This project is in a state of
>>flux as we take it through the first release.  The core was released a
>>couple of days ago, which will be followed by realm, rest and web.
>> 
>> This includes adding a parent pom for managing dependencies.  This has
>>been accomplished for core, realm and rest but not yet for the web
>>component so it is causing the build to fail.  I will be working on this
>>problem and will post back here when fixed.
>
>Should all be fixed.  You may do another pull and build and let us know
>if still a problem.
>
>Thanks
>
>Shawn
>smckinney@apache.org


Re: [Bulk] Re: [Bulk] error when building Apache Fortress Web 1.0-RC40-SNAPSHOT

Posted by Shawn McKinney <sm...@apache.org>.
> On Apr 17, 2015, at 8:31 AM, Shawn McKinney <sm...@apache.org> wrote:
> 
>> 
>> On Apr 17, 2015, at 4:36 AM, Oleksandr Bodriagov (Polystar) <ol...@polystar.com> wrote:
>> 
>> 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] 
> 
> Yes, I noticed same problem yesterday.  This project is in a state of flux as we take it through the first release.  The core was released a couple of days ago, which will be followed by realm, rest and web.  
> 
> This includes adding a parent pom for managing dependencies.  This has been accomplished for core, realm and rest but not yet for the web component so it is causing the build to fail.  I will be working on this problem and will post back here when fixed.

Should all be fixed.  You may do another pull and build and let us know if still a problem.

Thanks

Shawn
smckinney@apache.org

Re: [Bulk] error when building Apache Fortress Web 1.0-RC40-SNAPSHOT

Posted by Shawn McKinney <sm...@apache.org>.
> On Apr 17, 2015, at 4:36 AM, Oleksandr Bodriagov (Polystar) <ol...@polystar.com> wrote:
> 
> 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] 

Yes, I noticed same problem yesterday.  This project is in a state of flux as we take it through the first release.  The core was released a couple of days ago, which will be followed by realm, rest and web.  

This includes adding a parent pom for managing dependencies.  This has been accomplished for core, realm and rest but not yet for the web component so it is causing the build to fail.  I will be working on this problem and will post back here when fixed.

Thanks

Shawn
smckinney@apache.org