directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Pablo Sotelo <juan0...@gmail.com>
Subject Re: [ApacheDS] Trigger in ApacheDS
Date Fri, 04 May 2012 18:58:40 GMT
Thanks for the replies.. I waited until I got this (maybe is usefull for
you)

################## LOG ########################################
...
[INFO] Surefire report directory:
C:\work\ApacheDs\apacheds\ldap-client-test\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.directory.shared.client.api.LdapApiISuite
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
 NO cache entry for write 600000
Tests run: 41, Failures: 3, Errors: 17, Skipped: 1, Time elapsed: 8,502.859
sec <<< FAILURE!

Results :

Failed tests:
testCancelSearch(org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest):
expected:<100> but was:<-1>

testAddAsync(org.apache.directory.shared.client.api.operations.ClientAddRequestTest)

testAddAsyncLdif(org.apache.directory.shared.client.api.operations.ClientAddRequestTest)

Tests in error:
  org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest

testAbandonSearch(org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest):
ENTRY_ALREADY_EXISTS: failed for MessageType : ADD_REQUEST(..)

org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest:
java.io.IOException

testAdd(org.apache.directory.shared.client.api.operations.ClientAddRequestTest):
The response queue has been emptied, no response was found.

testAddLdif(org.apache.directory.shared.client.api.operations.ClientAddRequestTest):
The response queue has been emptied, no response was found.

testAddWithControl(org.apache.directory.shared.client.api.operations.ClientAddRequestTest):
The response queue has been emptied, no response was found.
  org.apache.directory.shared.client.api.operations.ClientAddRequestTest:
java.io.IOException

testAddEntryWithRdnContainingEscapedChars(org.apache.directory.shared.client.api.operations.ClientAddRequestTest):
The response queue has been emptied, no response was found.

testAddEntryWithRdnContainingEscapedCharsExistingnEntry(org.apache.directory.shared.client.api.operations.ClientAddRequestTest):
The response queue has been emptied, no response was found.

testAddEntryWithRdnContainingEscapedCharsMultiValued(org.apache.directory.shared.client.api.operations.ClientAddRequestTest):
The response queue has been emptied, no response was found.

testPreserveRdnUpName(org.apache.directory.shared.client.api.operations.ClientAddRequestTest):
The response queue has been emptied, no response was found.

org.apache.directory.shared.client.api.operations.ClientDeleteRequestTest:
java.io.IOException

org.apache.directory.shared.client.api.operations.ClientModifyDnRequestTest:
java.io.IOException

org.apache.directory.shared.client.api.operations.ClientModifyRequestTest:
java.io.IOException

org.apache.directory.shared.client.api.operations.bind.SimpleBindRequestTest:
java.io.IOException

org.apache.directory.shared.client.api.operations.search.ClientSearchRequestTest:
java.io.IOException

org.apache.directory.shared.client.api.operations.search.SearchRequestReturningAttributesTest:
java.io.IOException

Tests run: 41, Failures: 3, Errors: 17, Skipped: 1

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Directory Project .......................... SUCCESS [1.344s]
[INFO] Apache Directory Checkstyle Configuration ......... SUCCESS [1.250s]
[INFO] Apache Directory JUnit Add-ons .................... SUCCESS [2.312s]
[INFO] Apache Directory Shared ........................... SUCCESS [0.313s]
[INFO] Apache Directory Shared I18n ...................... SUCCESS [2.015s]
[INFO] Apache Directory Shared Utilities ................. SUCCESS [6.985s]
[INFO] Apache Directory Shared ASN.1 Parent .............. SUCCESS [0.656s]
[INFO] Apache Directory Shared ASN.1 API ................. SUCCESS [3.390s]
[INFO] Apache Directory Shared ASN.1 BER ................. SUCCESS [4.563s]
[INFO] Apache Directory Shared LDAP Parent ............... SUCCESS [0.109s]
[INFO] Apache Directory Shared LDAP Model ................ SUCCESS [40.297s]
[INFO] Apache Directory Shared LDAP Codec Parent ......... SUCCESS [0.156s]
[INFO] Apache Directory Shared LDAP Codec ................ SUCCESS [15.016s]
[INFO] Apache Directory Shared LDAP Net Parent ........... SUCCESS [0.188s]
[INFO] Apache Directory Shared LDAP Network MINA ......... SUCCESS [2.843s]
[INFO] Apache Directory Shared LDAP Codec Standalone ..... SUCCESS [2.282s]
[INFO] Apache Directory Shared DSML Parent ............... SUCCESS [0.421s]
[INFO] Apache Directory Shared DSML Parser ............... SUCCESS [17.032s]
[INFO] Apache Directory Shared LDAP Extras ............... SUCCESS [0.140s]
[INFO] Apache Directory Shared LDAP Extras ACI ........... SUCCESS [6.219s]
[INFO] Apache Directory Shared LDAP Schema Parent ........ SUCCESS [0.141s]
[INFO] Apache Directory Shared LDAP Schema ............... SUCCESS
[1:15.890s]
[INFO] Apache Directory Shared LDAP Client Parent ........ SUCCESS [0.203s]
[INFO] Apache Directory Shared LDAP Client API ........... SUCCESS [3.422s]
[INFO] Apache Directory Shared DSML Engine ............... SUCCESS [2.719s]
[INFO] Apache Directory Shared LDAP Extras Codec API ..... SUCCESS [2.422s]
[INFO] Apache Directory Shared LDAP Extras Codec ......... SUCCESS [6.266s]
[INFO] Apache Directory Shared LDAP Extras Util .......... SUCCESS [3.812s]
[INFO] Apache Directory Shared LDAP Extras Stored Procedures  SUCCESS
[1.844s]
[INFO] Apache Directory Shared LDAP Extras Trigger ....... SUCCESS [4.547s]
[INFO] Apache Directory Shared LDAP Schema Converter ..... SUCCESS [4.953s]
[INFO] Apache Directory Shared All ....................... SUCCESS [6.765s]
[INFO] Apache Directory Shared LDAP Client All ........... SUCCESS [7.422s]
[INFO] Apache Directory Shared Integration Tests ......... SUCCESS [16.032s]
[INFO] Apache Directory LDAP API Distribution ............ SUCCESS [0.171s]
[INFO] ApacheDS .......................................... SUCCESS [0.219s]
[INFO] ApacheDS I18n ..................................... SUCCESS [3.094s]
[INFO] ApacheDS Core Constants ........................... SUCCESS [1.375s]
[INFO] ApacheDS Core API ................................. SUCCESS [21.094s]
[INFO] ApacheDS Core Shared .............................. SUCCESS [3.093s]
[INFO] ApacheDS Interceptors ............................. SUCCESS [0.344s]
[INFO] ApacheDS AdministrativePoint Interceptor .......... SUCCESS [3.688s]
[INFO] ApacheDS Authentication Interceptor ............... SUCCESS [13.156s]
[INFO] ApacheDS Authorization Interceptor ................ SUCCESS [34.641s]
[INFO] ApacheDS ChangeLog Interceptor .................... SUCCESS [11.078s]
[INFO] ApacheDS Collective Attribute Interceptor ......... SUCCESS [3.453s]
[INFO] ApacheDS Event Interceptor ........................ SUCCESS [2.500s]
[INFO] ApacheDS Exception Interceptor .................... SUCCESS [3.484s]
[INFO] ApacheDS Journal Interceptor ...................... SUCCESS [2.485s]
[INFO] ApacheDS Normalization Interceptor ................ SUCCESS [12.406s]
[INFO] ApacheDS Operational Attribute Interceptor ........ SUCCESS [2.484s]
[INFO] ApacheDS Referral Interceptor ..................... SUCCESS [3.844s]
[INFO] ApacheDS Schema Interceptor ....................... SUCCESS [37.141s]
[INFO] ApacheDS Subtree Interceptor ...................... SUCCESS [37.468s]
[INFO] ApacheDS Triggers Interceptor ..................... SUCCESS [3.407s]
[INFO] ApacheDS Core ..................................... SUCCESS [8.718s]
[INFO] ApacheDS Core AVL ................................. SUCCESS [18.922s]
[INFO] ApacheDS Generalized (X) DBM Partition ............ SUCCESS [25.110s]
[INFO] ApacheDS LDIF Partition ........................... SUCCESS [10.296s]
[INFO] ApacheDS JDBM Partition ........................... SUCCESS [36.282s]
[INFO] ApacheDS Core Annotations ......................... SUCCESS [27.156s]
[INFO] ApacheDS Core JNDI ................................ SUCCESS [6.891s]
[INFO] ApacheDS Protocol Shared .......................... SUCCESS [4.359s]
[INFO] ApacheDS Protocol Kerberos Codec .................. SUCCESS [40.922s]
[INFO] ApacheDS Interceptors for Kerberos ................ SUCCESS [4.047s]
[INFO] ApacheDS Protocol Dhcp ............................ SUCCESS [6.875s]
[INFO] ApacheDS Protocol Dns ............................. SUCCESS [8.265s]
[INFO] ApacheDS Protocol Kerberos ........................ SUCCESS [8.578s]
[INFO] ApacheDS Protocol Ldap ............................ SUCCESS [29.344s]
[INFO] ApacheDS Protocol Ntp ............................. SUCCESS [5.547s]
[INFO] Apacheds Server Annotations ....................... SUCCESS [25.438s]
[INFO] ApacheDS Server Config ............................ SUCCESS [27.859s]
[INFO] ApacheDS Server JNDI .............................. SUCCESS [5.672s]
[INFO] ApacheDS Server Replication Service ............... SUCCESS [1.187s]
[INFO] ApacheDS Test Framework ........................... SUCCESS
[1:22.094s]
[INFO] ApacheDS Generalized (X) DBM Tools ................ SUCCESS [7.031s]
[INFO] ApacheDS All ...................................... SUCCESS [12.547s]
[INFO] ApacheDS Logger Interceptor ....................... SUCCESS [3.813s]
[INFO] ApacheDS Password Hashing Interceptor ............. SUCCESS [2.531s]
[INFO] ApacheDS Core Integration ......................... SUCCESS
[8:40.625s]
[INFO] ApacheDS Server Integration ....................... SUCCESS
[4:13.234s]
[INFO] ApacheDS DirectoryService-WebApp bridge ........... SUCCESS [1.985s]
[INFO] ApacheDS Jetty HTTP Server Integration ............ SUCCESS [19.609s]
[INFO] ApacheDS Service Builder .......................... SUCCESS [3.688s]
[INFO] ApacheDS Protocol Kerberos Test ................... SUCCESS [18.281s]
[INFO] Apache Directory LDAP Client API test ............. FAILURE
[2:21:48.531s]
[INFO] ApacheDS Service .................................. SKIPPED
[INFO] ApacheDS Wrapper .................................. SKIPPED
[INFO] ApacheDS Installers Maven Plugin .................. SKIPPED
[INFO] ApacheDS Installers ............................... SKIPPED
[INFO] ApacheDS Manuals .................................. SKIPPED
[INFO] ApacheDS Build With Dependencies .................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2:49:42.391s
[INFO] Finished at: Fri May 04 14:45:55 GFT 2012
[INFO] Final Memory: 88M/494M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
project ldap-client-test: There are test failures.
[ERROR]
[ERROR] Please refer to
C:\work\ApacheDs\apacheds\ldap-client-test\target\surefire-reports for the
individual test results.
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :ldap-client-test
C:\work\ApacheDs>mvn clean install -DskipTests
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for
org.apache.directory.buildtools:checkstyle-configuration:jar:0.2-SNAPSHOT
[WARNING] 'parent.relativePath' points at
org.apache.directory.server:apacheds-with-dependencies instead of
org.apache.directory.project:project, please verify your project structure
@ line 24, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]
------------------------------------------------------------------------
###############################################################

After this I run the command again with "mvn clean install -DskipTests" and
everything is good now. (I also tried mvn clean install -rf
apacheds/ldap-client-test)

In the manual I see this steps in order to build the installers:
1- cd apacheds-trunk
2- mvn install
3- cd installers/apacheds
4- mvn -Pserver-installer install

What I did:
1- Since I already executed "mvn clean install -rf
apacheds/ldap-client-test", I will not execute mvn install, right?
2- then cd apacheds\installers
3- mvn -Pserver-installer install

And:

################## LOG ########################################
C:\work\ApacheDs\apacheds\installers>mvn -Pserver-installer install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for org.apache.directory.server:apacheds-installers:pom:2.0.0-M7-SNAPSHOT
[WARNING] 'parent.relativePath' of POM
org.apache.directory.server:apacheds-parent:2.0.0-M7-SNAPSHOT
(C:\work\ApacheDs\apacheds\pom.xml) points at
org.apache.directory.server:apacheds-with-dependencies instead of
org.apache.directory.project:project, please verify your project structure
@ org.apache.directory.server:apacheds-parent:2.0.0-M7-SNAPSHOT,
C:\work\ApacheDs\apacheds\pom.xml, line 24, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building ApacheDS Installers 2.0.0-M7-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @
apacheds-installers ---
[INFO]
[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @
apacheds-installers ---
[INFO]
[INFO] --- tools-maven-plugin:1.4:verify-legal-files (verify-legal-files) @
apacheds-installers ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
apacheds-installers ---
[INFO] Installing C:\work\ApacheDs\apacheds\installers\pom.xml to
C:\Documents and
Settings\Juano\.m2\repository\org\apache\directory\server\apacheds-installers\2.0.0-M7-SNAPSHOT\apacheds-installers-2.0.0-M7-SNAPSHOT.pom
[INFO] Installing
C:\work\ApacheDs\apacheds\installers\target\apacheds-installers-2.0.0-M7-SNAPSHOT-site.xml
to C:\Documents and
Settings\Juano\.m2\repository\org\apache\directory\server\apacheds-installers\2.0.0-M7-SNAPSHOT\apacheds-installers-2.0.0-M7-SNAPSHOT-site.xml
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.609s
[INFO] Finished at: Fri May 04 15:44:14 GFT 2012
[INFO] Final Memory: 11M/494M
[INFO]
------------------------------------------------------------------------
[WARNING] The requested profile "server-installer" could not be activated
because it does not exist.
###############################################################

Not sure what is wrong? I have checked the pom.xml (I didnt modifications
in any file.) but I am not sure if this is the problem? does anybody had
the same problem?

I will write a document about all the step that I made, detailed.. In case
another person had the same problem.

Thanks for your help and patience.

Mime
View raw message