You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Felix Knecht <fe...@apache.org> on 2007/10/16 20:37:05 UTC

Building trunk apacheds

Hi all

I just tried to build apacheds the first time and followed the description [1] and ran into following problems:

<snip>
[INFO] ----------------------------------------------------------------------------
[INFO] Building ApacheDS Core
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /svn/apache/directory/apacheds/core/target
[INFO] Deleting directory /svn/apache/directory/apacheds/core/target/classes
[INFO] Deleting directory /svn/apache/directory/apacheds/core/target/test-classes
[INFO] Deleting directory /svn/apache/directory/apacheds/core/target/site
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 222 source files to /svn/apache/directory/apacheds/core/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[48,46]
cannot find symbol
symbol  : class AndNode
location: package org.apache.directory.shared.ldap.filter

/svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[50,46]
cannot find symbol
symbol  : class EqualityNode
location: package org.apache.directory.shared.ldap.filter

/svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[52,46]
cannot find symbol
symbol  : class OrNode
location: package org.apache.directory.shared.ldap.filter

/svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogSearchEngine.java:[28,44]
cannot find symbol
symbol  : class ChangeType
location: package org.apache.directory.shared.ldap.ldif
</snip>

/many more failures to follow.

What I'm doing wrong or where can I find the missing classes?
I think mainly classes from package org.apache.directory.shared.ldap are missing.

Thanks in advance
Felix


[1] http://directory.apache.org/apacheds/1.5/building-trunks.html#Buildingtrunks-Gettingthecode

Re: Building trunk apacheds

Posted by Felix Knecht <fe...@otego.com>.
Alex Karasulu schrieb:
> 
> On 10/16/07, *Felix Knecht* <felixk@apache.org
> <ma...@apache.org>> wrote:
> 
>     Hi all
> 
>     I just tried to build apacheds the first time and followed the
>     description [1] and ran into following problems:
> 
> 
> SNIP ... 
> 
>     [INFO]
>     ------------------------------------------------------------------------
>     [ERROR] BUILD FAILURE
>     [INFO]
>     ------------------------------------------------------------------------
>     [INFO] Compilation failure
> 
>     /svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[48,46]
>     cannot find symbol
>     symbol  : class AndNode
>     location: package org.apache.directory.shared.ldap.filter
> 
>     symbol  : class EqualityNode
>     symbol  : class OrNode
>     symbol  : class ChangeType
> 
> 
> ...
> 
> These classes seem to be present in the expected location here:
> 
>    
> http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/
> 

I don't have the ldap module within my checkout.

> When did you check out the code? Perhaps you need to svn update if it
> has been a while.

No, it's 5 minutes old.

I followed the docs ->
- svn co http://svn.apache.org/repos/asf/directory/apacheds/trunk-with-dependencies/ apacheds-trunk
- cd <root of apache directory server sources> (which is in this case apacheds-trunk/apacheds)
- mvn clean (this works)
- cd <root of apache directory server sources> (which is in this case apacheds-trunk/apacheds)
- mvn install

If I understand right I should have also a module 'ldap' in apacheds-trunk/apacheds?

Mabe it's best to checkout http://svn.apache.org/repos/asf/directory/apacheds/trunk instead of trunk-with-dependencies?

Felix

> 
> If you checked out the code just now where did you issue the "mvn
> install" command? If you
> did it inside apacheds-trunk/apacheds then you'll get old jars from the
> SNAPSHOT repo which
> will not have these classes most likely since we fail repeatedly at this
> project to update the
> SNAPSHOT repository :(.  Sorry about that.  So just build from the top
> in the apacheds-trunks
> directory which will also build the shared-ldap classes.
> 
> Let us know how it works out.
> 
> HTH,
> Alex
> 


Re: [SOLVED] Re: Building trunk apacheds

Posted by Felix Knecht <fe...@apache.org>.
Alex Karasulu schrieb:
> I updated the documentation on building the server as well as the
> installers which were incorrect due to
> shifts in the structure of the project that resulted in the course of
> the 1.5.0->1.5.1 releases.  Here's that
> link again:
> 
> http://directory.apache.org/apacheds/1.5/building-trunks.html#Buildingtrunks-Gettingthecode
> 
> You'll see a warning about issuing maven commands from the top.

This would have helped me for sure. Maybe it's helpfull for less used maven-users to say that the modules in addition
(share, installers? and daemon?) must be build before trying to build apacheds. I'm not sure about the dependencies, but
for me it seems logical to build in order
- share
- apacheds
- daemon/installers

Maybe you could indicate the build order in the "Issue Commands From Top" (or somewhere above) as well.

Felix



Re: [SOLVED] Re: Building trunk apacheds

Posted by Alex Karasulu <ak...@apache.org>.
I updated the documentation on building the server as well as the installers
which were incorrect due to
shifts in the structure of the project that resulted in the course of the
1.5.0->1.5.1 releases.  Here's that
link again:

http://directory.apache.org/apacheds/1.5/building-trunks.html#Buildingtrunks-Gettingthecode

You'll see a warning about issuing maven commands from the top.

WARNING: <Shift> refresh may be a good idea on your browser.

Alex

On 10/16/07, Alex Karasulu <ak...@apache.org> wrote:
>
> I don't think it may have stressed building from the top.  Which it
> probably should do with a warning
> sign.  I'll take a look and add it.
>
> Alex
>
> On 10/16/07, Felix Knecht <fe...@apache.org> wrote:
> >
> > I got it.
> >
> > I need to build the 'shared' project first, then it works like a charm.
> > Sorry for the noise.
> >
> > Felix
> >
> > PS:
> > I haven't seen this in the documentation mentioned, did I overread it?
> >
> >
> > Alex Karasulu schrieb:
> > >
> > > On 10/16/07, *Felix Knecht* <felixk@apache.org
> > > <ma...@apache.org>> wrote:
> > >
> > >     Hi all
> > >
> > >     I just tried to build apacheds the first time and followed the
> > >     description [1] and ran into following problems:
> > >
> > >
> > > SNIP ...
> > >
> > >     [INFO]
> > >
> > ------------------------------------------------------------------------
> > >     [ERROR] BUILD FAILURE
> > >     [INFO]
> > >
> > ------------------------------------------------------------------------
> > >     [INFO] Compilation failure
> > >
> > >
> > /svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[48,46]
> > >     cannot find symbol
> > >     symbol  : class AndNode
> > >     location: package org.apache.directory.shared.ldap.filter
> > >
> > >     symbol  : class EqualityNode
> > >     symbol  : class OrNode
> > >     symbol  : class ChangeType
> > >
> > >
> > > ...
> > >
> > > These classes seem to be present in the expected location here:
> > >
> > >
> > >
> > http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/
> > >
> > > When did you check out the code? Perhaps you need to svn update if it
> > > has been a while.
> > >
> > > If you checked out the code just now where did you issue the "mvn
> > > install" command? If you
> > > did it inside apacheds-trunk/apacheds then you'll get old jars from
> > the
> > > SNAPSHOT repo which
> > > will not have these classes most likely since we fail repeatedly at
> > this
> > > project to update the
> > > SNAPSHOT repository :(.  Sorry about that.  So just build from the top
> > > in the apacheds-trunks
> > > directory which will also build the shared-ldap classes.
> > >
> > > Let us know how it works out.
> > >
> > > HTH,
> > > Alex
> > >
> >
> >
>

Re: [SOLVED] Re: Building trunk apacheds

Posted by Alex Karasulu <ak...@apache.org>.
I don't think it may have stressed building from the top.  Which it probably
should do with a warning
sign.  I'll take a look and add it.

Alex

On 10/16/07, Felix Knecht <fe...@apache.org> wrote:
>
> I got it.
>
> I need to build the 'shared' project first, then it works like a charm.
> Sorry for the noise.
>
> Felix
>
> PS:
> I haven't seen this in the documentation mentioned, did I overread it?
>
>
> Alex Karasulu schrieb:
> >
> > On 10/16/07, *Felix Knecht* <felixk@apache.org
> > <ma...@apache.org>> wrote:
> >
> >     Hi all
> >
> >     I just tried to build apacheds the first time and followed the
> >     description [1] and ran into following problems:
> >
> >
> > SNIP ...
> >
> >     [INFO]
> >
> ------------------------------------------------------------------------
> >     [ERROR] BUILD FAILURE
> >     [INFO]
> >
> ------------------------------------------------------------------------
> >     [INFO] Compilation failure
> >
> >
> /svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[48,46]
> >     cannot find symbol
> >     symbol  : class AndNode
> >     location: package org.apache.directory.shared.ldap.filter
> >
> >     symbol  : class EqualityNode
> >     symbol  : class OrNode
> >     symbol  : class ChangeType
> >
> >
> > ...
> >
> > These classes seem to be present in the expected location here:
> >
> >
> >
> http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/
> >
> > When did you check out the code? Perhaps you need to svn update if it
> > has been a while.
> >
> > If you checked out the code just now where did you issue the "mvn
> > install" command? If you
> > did it inside apacheds-trunk/apacheds then you'll get old jars from the
> > SNAPSHOT repo which
> > will not have these classes most likely since we fail repeatedly at this
> > project to update the
> > SNAPSHOT repository :(.  Sorry about that.  So just build from the top
> > in the apacheds-trunks
> > directory which will also build the shared-ldap classes.
> >
> > Let us know how it works out.
> >
> > HTH,
> > Alex
> >
>
>

[SOLVED] Re: Building trunk apacheds

Posted by Felix Knecht <fe...@apache.org>.
I got it.

I need to build the 'shared' project first, then it works like a charm. Sorry for the noise.

Felix

PS:
I haven't seen this in the documentation mentioned, did I overread it?


Alex Karasulu schrieb:
> 
> On 10/16/07, *Felix Knecht* <felixk@apache.org
> <ma...@apache.org>> wrote:
> 
>     Hi all
> 
>     I just tried to build apacheds the first time and followed the
>     description [1] and ran into following problems:
> 
> 
> SNIP ... 
> 
>     [INFO]
>     ------------------------------------------------------------------------
>     [ERROR] BUILD FAILURE
>     [INFO]
>     ------------------------------------------------------------------------
>     [INFO] Compilation failure
> 
>     /svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[48,46]
>     cannot find symbol
>     symbol  : class AndNode
>     location: package org.apache.directory.shared.ldap.filter
> 
>     symbol  : class EqualityNode
>     symbol  : class OrNode
>     symbol  : class ChangeType
> 
> 
> ...
> 
> These classes seem to be present in the expected location here:
> 
>    
> http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/
> 
> When did you check out the code? Perhaps you need to svn update if it
> has been a while.
> 
> If you checked out the code just now where did you issue the "mvn
> install" command? If you
> did it inside apacheds-trunk/apacheds then you'll get old jars from the
> SNAPSHOT repo which
> will not have these classes most likely since we fail repeatedly at this
> project to update the
> SNAPSHOT repository :(.  Sorry about that.  So just build from the top
> in the apacheds-trunks
> directory which will also build the shared-ldap classes.
> 
> Let us know how it works out.
> 
> HTH,
> Alex
> 


Re: Building trunk apacheds

Posted by Alex Karasulu <ak...@apache.org>.
On 10/16/07, Felix Knecht <fe...@apache.org> wrote:
>
> Hi all
>
> I just tried to build apacheds the first time and followed the description
> [1] and ran into following problems:


SNIP ...

[INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
>
> /svn/apache/directory/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDao.java:[48,46]
> cannot find symbol
> symbol  : class AndNode
> location: package org.apache.directory.shared.ldap.filter
>
> symbol  : class EqualityNode
> symbol  : class OrNode
> symbol  : class ChangeType


...

These classes seem to be present in the expected location here:


http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/

When did you check out the code? Perhaps you need to svn update if it has
been a while.

If you checked out the code just now where did you issue the "mvn install"
command? If you
did it inside apacheds-trunk/apacheds then you'll get old jars from the
SNAPSHOT repo which
will not have these classes most likely since we fail repeatedly at this
project to update the
SNAPSHOT repository :(.  Sorry about that.  So just build from the top in
the apacheds-trunks
directory which will also build the shared-ldap classes.

Let us know how it works out.

HTH,
Alex