directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: Getting There! (Was: Newbie qn de jour: how do I make the jar?)
Date Wed, 20 Apr 2005 07:14:12 GMT
Hi !

I think that the pb is not apspectj, but there is an implicit order that
you must follow when compiling the project.

Starting with Apacheds is definitely not the good solution, as it relies
on many other classes. I think that you must start with shared, asn1 and
network before compiling apacheds.

I perfectly agree that it is not very friendly, and must be improved... 

let us know if you finally succeeded in having the server up and
running.

I'm sorry, I can't help you anymore this morning (9AM here in France),
but I will follow your efforts from my office.

On Wed, 2005-04-20 at 13:24 +1000, Chris Betts wrote:
> O.k., so the missing step was that maven has to be run from the 
> directory with the project.xml file in it.  (I thought it was like 
> make, and would recursively make everything :-) ).  So I'm now working 
> from the /apacheds/trunk directory (which is where I'm supposed to 
> be?).
> 
> However it still isn't working - as far as I can make out it's missing 
> a jar called "aspectjrt.jar" when attempting to
>  compile the apacheDS 
> core.
> 
> Can anyone offer any pointers?  I've done a fresh check out and 
> everything seems up to date. I'm including the build output below.
> 
>    - Chris
> 
> -----8<---------------
> 
> D:\java\apacheDS\svn_head\apacheds\trunk>maven multiproject:install
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> build:start:
> multiproject:install:
> multiproject:projects-init:
>    [echo] Gathering project list
> Starting the reactor...
> Our processing order:
> ApacheDS Shared
> ApacheDS Plugin
> ApacheDS Core
> ApacheDS Main
> +----------------------------------------
> | Gathering project list ApacheDS Shared
> | Memory: 4M/4M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list ApacheDS Plugin
> | Memory: 4M/4M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list ApacheDS Core
> | Memory: 4M/4M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list ApacheDS Main
> | Memory: 4M/4M
> +----------------------------------------
> Starting the reactor...
> Our processing order:
> ApacheDS Shared
> ApacheDS Plugin
> ApacheDS Core
> ApacheDS Main
> +----------------------------------------
> | Executing multiproject:install-callback ApacheDS Shared
> | Memory: 4M/4M
> +----------------------------------------
> Attempting to download ldap-common-0.9-SNAPSHOT.jar.
> multiproject:goal:
> build:start:
> multiproject:install-callback:
>    [echo] Running jar:install for ApacheDS Shared
> java:prepare-filesystem:
> java:compile:
>    [echo] Compiling to 
> D:\java\apacheDS\svn_head\apacheds\trunk\shared/target/c
> lasses
>    [echo]
> ==========================================================
> NOTE: Targetting JVM 1.4, classes
> will not run on earlier JVMs
> ==========================================================
> 
> java:jar-resources:
> test:prepare-filesystem:
> test:test-resources:
> test:compile:
>    [echo] No test source files to compile.
> test:test:
>    [echo] No tests to run.
> Copying: from 
> 'D:\java\apacheDS\svn_head\apacheds\trunk\shared\target\apacheds-s
> hared-0.9-SNAPSHOT.jar' to: 'C:\Documents and 
> Settings\Chris\.maven\repository\d
> irectory\jars\apacheds-shared-0.9-SNAPSHOT.jar'
> Copying: from 
> 'D:\java\apacheDS\svn_head\apacheds\trunk\shared\project.xml' to:
> 'C:\Documents and 
> Settings\Chris\.maven\repository\directory\poms\apacheds-share
> d-0.9-SNAPSHOT.pom'
> +----------------------------------------
> | Executing multiproject:install-callback ApacheDS Plugin
> | Memory: 5M/6M
> +----------------------------------------
> Attempting to download ldap-common-0.9-SNAPSHOT.jar.
> Attempting to download apacheds-shared-0.9-SNAPSHOT.jar.
> jar:jar:
> jar:install:
> 
> build:end:
> build:start:
> multiproject:install-callback:
> plugin:plugin:
> java:prepare-filesystem:
> java:compile:
> antlr:prepare-filesystem:
> antlr:generate:
>    [echo] Compiling to 
> D:\java\apacheDS\svn_head\apacheds\trunk\plugin/target/c
> lasses
>    [echo]
> ==========================================================
> NOTE: Targetting JVM 1.4, classes
> will not run on earlier JVMs
> ==========================================================
> 
> java:jar-resources:
> test:prepare-filesystem:
> test:test-resources:
> test:compile:
> test:test:
>    [junit] Running 
> org.apache.ldap.server.tools.schema.AttributeTypesTemplateTe
> st
>    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 1.046 sec
>    [junit] Running 
> org.apache.ldap.server.tools.schema.DirectorySchemaToolTest
>    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.672 sec
>    [junit] Running 
> org.apache.ldap.server.tools.schema.ObjectClassesTemplateTes
> t
>    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 1.016 sec
>    [junit] Running 
> org.apache.ldap.server.tools.schema.OpenLdapSchemaParserTest
>    [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 1.453 sec
> Copying: from 
> 'D:\java\apacheDS\svn_head\apacheds\trunk\plugin\target\maven-dire
> ctory-plugin-0.9-SNAPSHOT.jar' to: 'C:\Documents and 
> Settings\Chris\.maven\repos
> itory\directory\plugins\maven-directory-plugin-0.9-SNAPSHOT.jar'
> Copying: from 
> 'D:\java\apacheDS\svn_head\apacheds\trunk\plugin\project.xml' to:
> 'C:\Documents and 
> Settings\Chris\.maven\repository\directory\poms\maven-director
> y-plugin-0.9-SNAPSHOT.pom'
> +----------------------------------------
> | Executing multiproject:install-callback ApacheDS Core
> | Memory: 13M/20M
> +----------------------------------------
> Attempting to download ldap-common-0.9-SNAPSHOT.jar.
> Attempting to download apacheds-shared-0.9-SNAPSHOT.jar.
> Attempting to download ldap-protocol-0.9-SNAPSHOT.jar.
> Attempting to download asn1-codec-0.3-SNAPSHOT.jar.
> Attempting to download apache-ldapber-provider-0.9-SNAPSHOT.jar.
> Attempting to download asn1-ber-0.3-SNAPSHOT.jar.
> Attempting to download mina-0.7-SNAPSHOT.jar.
> Attempting to download maven-directory-plugin-0.9-SNAPSHOT.jar.
> jar:jar:
> 
> plugin:repository-install:
> 
> build:end:
> build:start:
> multiproject:install-callback:
>    [echo] Running jar:install for ApacheDS Core
> Attempting to download ldap-common-0.9-SNAPSHOT.jar.
> Attempting to download apacheds-shared-0.9-SNAPSHOT.jar.
> java:prepare-filesystem:
> java:compile:
> directory:schema:
> directory:init:
> directory:prepare-filesystem:
> directory:generate:
> 
>    [echo] Compiling to 
> D:\java\apacheDS\svn_head\apacheds\trunk\core/target/cla
> sses
> warning couldn't find aspectjrt.jar on classpath, checked:
> aspectj:init:
> aspectj:compile:
> 
> java:jar-resources:
> test:prepare-filesystem:
> test:test-resources:
> test:compile:
> test:test:
>    [junit] Running org.apache.ldap.server.authn.SimpleAuthenticationTest
>    [junit] Tests run: 9, Failures: 0, Errors: 4, Time elapsed: 2.766 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.authn.SimpleAuthenticationTest F
> AILED
>    [junit] Running org.apache.ldap.server.authz.AuthorizationServiceTest
>    [junit] Tests run: 8, Failures: 0, Errors: 8, Time elapsed: 0.062 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.authz.AuthorizationServiceTest F
> AILED
>    [junit] Running org.apache.ldap.server.exception.ExceptionServiceTest
>    [junit] Tests run: 21, Failures: 0, Errors: 21, Time elapsed: 0.094 
> sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.exception.ExceptionServiceTest F
> AILED
>    [junit] Running org.apache.ldap.server.interceptor.ConfigurationTest
>    [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 0.234 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.interceptor.ConfigurationTest FA
> ILED
>    [junit] Running org.apache.ldap.server.jndi.ComparatorNPEBugTest
>    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2.391 sec
>    [junit] Running org.apache.ldap.server.jndi.CreateContextTest
>    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.032 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.CreateContextTest 
> FAILED
>    [junit] Running org.apache.ldap.server.jndi.DestroyContextTest
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.016 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.DestroyContextTest 
> FAILED
>    [junit] Running org.apache.ldap.server.jndi.ImportConfirmationTest
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.016 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.jndi.ImportConfirmationTest FAIL
> ED
>    [junit] Running org.apache.ldap.server.jndi.ListTest
>    [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 0.031 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.ListTest FAILED
>    [junit] Running org.apache.ldap.server.jndi.ModifyContextTest
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.016 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.ModifyContextTest 
> FAILED
>    [junit] Running org.apache.ldap.server.jndi.ObjStateFactoryTest
>    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.032 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.ObjStateFactoryTest 
> FAILED
>    [junit] Running 
> org.apache.ldap.server.jndi.PartitionContextBuilderTest
>    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.187 sec
>    [junit] Running org.apache.ldap.server.jndi.RFC2713Tests
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.016 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.RFC2713Tests FAILED
>    [junit] Running org.apache.ldap.server.jndi.RootDSETest
>    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 4.547 sec
>    [junit] Running org.apache.ldap.server.jndi.SearchContextTest
>    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.016 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.SearchContextTest 
> FAILED
>    [junit] Running org.apache.ldap.server.jndi.ServerContextFactoryTest
>    [junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 0.031 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.jndi.ServerContextFactoryTest FA
> ILED
>    [junit] Running 
> org.apache.ldap.server.jndi.ServiceRegistryPassthruTest
>    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.172 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.jndi.ServiceRegistryPassthruTest
> FAILED
>    [junit] Running org.apache.ldap.server.jndi.ShutdownTest
>    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.031 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.ShutdownTest FAILED
>    [junit] Running org.apache.ldap.server.jndi.SyncTest
>    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.032 sec
>    [junit] [ERROR] TEST org.apache.ldap.server.jndi.SyncTest FAILED
>    [junit] Running 
> org.apache.ldap.server.operational.BinaryAttributeFilterTest
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.015 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.operational.BinaryAttributeFilte
> rTest FAILED
>    [junit] Running 
> org.apache.ldap.server.operational.OperationalAttributeServi
> ceTest
>    [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 0.016 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.operational.OperationalAttribute
> ServiceTest FAILED
>    [junit] Running org.apache.ldap.server.prefs.PreferencesUtilsTest
>    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.109 sec
>    [junit] Running 
> org.apache.ldap.server.prefs.ServerPreferencesFactoryTest
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.015 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.prefs.ServerPreferencesFactoryTe
> st FAILED
>    [junit] Running 
> org.apache.ldap.server.prefs.ServerSystemPreferencesTest
>    [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 0.032 sec
>    [junit] [ERROR] TEST 
> org.apache.ldap.server.prefs.ServerSystemPreferencesTes
> t FAILED
>    [junit] Running 
> org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoade
> rTest
>    [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.703 sec
> BUILD FAILED
> File...... C:\Documents and 
> Settings\Chris\.maven\cache\maven-multiproject-plugi
> n-1.3.1\plugin.jelly
> Element... maven:reactor
> Line...... 217
> Column.... 9
> Unable to obtain goal [multiproject:install-callback] -- C:\Documents 
> and Settin
> gs\Chris\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly:181:54: 
> <fail> There
> were test failures.
> Total time: 1 minutes 36 seconds
> Finished at: Wed Apr 20 13:13:13 EST 2005
> D:\java\apacheDS\svn_head\apacheds\trunk>
> 
> ---------------------------------------------------------------------------------------
> Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus mail. 
> Aucun virus connu a ce jour par nos services n'a ete detecte.
> 
> 



Mime
View raw message