You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by "Benjamin, Roy" <rb...@ebay.com> on 2010/07/29 20:51:55 UTC

Embedded ApacheDS examples not working

Hi,

I have ApacheDS 1.5.7 installed.  I also have sources.

I've found two similar examples on the ApacheDS site for running the server embedded
in a servlet.  I can't get either one to work...

---
One example is at: http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html

I've been unable to build the example.  The first problem was that it uses org.apache.directory.server.core.DefaultDirectoryService
which is not a public class.  So I changed the StartStopListener package to org.apache.directory.server.core,
one compile problem solved.

The example also uses:
    org.apache.directory.server.ldap.LdapServer
    org.apache.directory.server.protocol.shared.transport.TcpTransport
I cannot find these classes anywhere, in 1.5.7  they seem to be a part of 1.5.6 only.  BUT
I cannot build 1.5.6 (which would load the jars to my local repository) because the project
parent pom no longer exists, seems not to be in svn, or in some maven repo somewhere..


btw.  The parent pom for the apacheds-archetype-webapp also does not seem to exist...  ahg...


---
Another example is at: https://cwiki.apache.org/DIRxSRVx10/embedding-apacheds-as-a-web-application.html

I've been able to build this example, however it cannot be started in Tomcat.   The example uses javax.naming.directory.InitialDirContext
and Tomcat 5.5.29 explodes with exceptions trying to use this class.


+++
I can send stack traces etc... but first am I using the correct list?

Should these examples work?  What release of ApacheDS ?   How to build ?

Thanks
Roy



Re: Embedded ApacheDS examples not working

Posted by Kiran Ayyagari <ka...@apache.org>.
On Fri, Jul 30, 2010 at 4:32 AM, Emmanuel Lecharny <el...@gmail.com> wrote:
>  On 7/30/10 12:15 AM, Benjamin, Roy wrote:
>>
>> I've tried adding numerous popular maven repositories to the settings
>> without any luck at all.   I'm astonished at how really difficult it
>> is to work with ApacheDS.... I don't know if it's me or the documention
>> or what...
>
> doco does not help, that for sure.
>
> We are working hard to get a 2.0 version out, and it's not that simple. So,
> yes, it's hard to work with ADS, but you have to realize that it's not a
> small project (the current code base is more than 800 000 lines of code).
>
> Now, why not using the default apache maven repository, ie
> http://repo1.maven.org/maven2/ ?
yeap, looks like he missed this one or his maven settings are totally different

Kiran Ayyagari

RE: Embedded ApacheDS examples not working

Posted by "Benjamin, Roy" <rb...@ebay.com>.
:-)

Yes, this is pretty much what I am doing.  I'm building a proper settings.xml and am
directing to it (mvn -s <path>\settings.xml) on the command line.  Along the way
towards an effective configuration there are various pitfalls; making more progress
now.

Thanks to Everyone for their assistance,

Roy

-----Original Message-----
From: mail@stefan-seelmann.de [mailto:mail@stefan-seelmann.de] On Behalf Of Stefan Seelmann
Sent: Friday, July 30, 2010 12:36 AM
To: users@directory.apache.org
Subject: Re: Embedded ApacheDS examples not working

On Fri, Jul 30, 2010 at 2:58 AM, Benjamin, Roy <rb...@ebay.com> wrote:

>  org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1
>
> from the specified remote repositories:
>  ebox.common.plugins (http://repository.corp.ebay.com/ebox/common),
>  central (http://repository.corp.ebay.com/central),
>  ebox.releases.plugins (http://repository.corp.ebay.com/ebox/releases),
>  central.plugins (http://repository.corp.ebay.com/central),
>  ebox.3rdparty.plugins (http://repository.corp.ebay.com/ebox/3rdparty)

I had similar problems in corporate environments with their own bad
configured maven proxy (e.g. Nexus). In such a case I used a 2nd maven
installation with standard settings.

Kind Regards,
Stefan

Re: Embedded ApacheDS examples not working

Posted by Stefan Seelmann <se...@apache.org>.
On Fri, Jul 30, 2010 at 2:58 AM, Benjamin, Roy <rb...@ebay.com> wrote:

>  org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1
>
> from the specified remote repositories:
>  ebox.common.plugins (http://repository.corp.ebay.com/ebox/common),
>  central (http://repository.corp.ebay.com/central),
>  ebox.releases.plugins (http://repository.corp.ebay.com/ebox/releases),
>  central.plugins (http://repository.corp.ebay.com/central),
>  ebox.3rdparty.plugins (http://repository.corp.ebay.com/ebox/3rdparty)

I had similar problems in corporate environments with their own bad
configured maven proxy (e.g. Nexus). In such a case I used a 2nd maven
installation with standard settings.

Kind Regards,
Stefan

RE: Embedded ApacheDS examples not working

Posted by "Benjamin, Roy" <rb...@ebay.com>.
Thanks
I've got something weird going on, because I do have that repo in
settings.xml && it's not being searched...  I'll work on it.

Thanks for the reply
Roy

-----Original Message-----
From: Andrew Wiley [mailto:debio264@gmail.com] 
Sent: Thursday, July 29, 2010 6:38 PM
To: users
Subject: Re: Embedded ApacheDS examples not working

On Thu, Jul 29, 2010 at 8:11 PM, Benjamin, Roy <rb...@ebay.com> wrote:

> :-)    hard to believe, but version 2.1 of the missing plugin is also
> missing from
>       the repository?
>
>
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.pom

Looks like it's there to me. You might need to add this repo under
pluginRepositories as well.

Andrew Wiley

Re: Embedded ApacheDS examples not working

Posted by Andrew Wiley <de...@gmail.com>.
On Thu, Jul 29, 2010 at 8:11 PM, Benjamin, Roy <rb...@ebay.com> wrote:

> :-)    hard to believe, but version 2.1 of the missing plugin is also
> missing from
>       the repository?
>
>
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.pom

Looks like it's there to me. You might need to add this repo under
pluginRepositories as well.

Andrew Wiley

RE: Embedded ApacheDS examples not working

Posted by "Benjamin, Roy" <rb...@ebay.com>.
:-)    hard to believe, but version 2.1 of the missing plugin is also missing from
       the repository?



-----Original Message-----
From: Benjamin, Roy [mailto:rbenjamin@ebay.com] 
Sent: Thursday, July 29, 2010 5:58 PM
To: users@directory.apache.org; elecharny@apache.org
Subject: RE: Embedded ApacheDS examples not working

Hi,

Thanks for the help.
There are a zillion maven repos out there, I've been trying the one's whose
names I could remember.

Adding http://repo1.maven.org/maven2/ has helped

I now get (below), so I'll work on this issue next.  
Cheers
Roy

Downloading: http://repository.corp.ebay.com/central/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.jar
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-site-plugin -Dversion=2.1 -Dpackaging=maven-plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-site-plugin -Dversion=2.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1

from the specified remote repositories:
  ebox.common.plugins (http://repository.corp.ebay.com/ebox/common),
  central (http://repository.corp.ebay.com/central),
  ebox.releases.plugins (http://repository.corp.ebay.com/ebox/releases),
  central.plugins (http://repository.corp.ebay.com/central),
  ebox.3rdparty.plugins (http://repository.corp.ebay.com/ebox/3rdparty)


  org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1






-----Original Message-----
From: Emmanuel Lecharny [mailto:elecharny@gmail.com] 
Sent: Thursday, July 29, 2010 4:03 PM
To: users@directory.apache.org
Subject: Re: Embedded ApacheDS examples not working

  On 7/30/10 12:15 AM, Benjamin, Roy wrote:
> I've tried adding numerous popular maven repositories to the settings
> without any luck at all.   I'm astonished at how really difficult it
> is to work with ApacheDS.... I don't know if it's me or the documention
> or what...
doco does not help, that for sure.

We are working hard to get a 2.0 version out, and it's not that simple. 
So, yes, it's hard to work with ADS, but you have to realize that it's 
not a small project (the current code base is more than 800 000 lines of 
code).

Now, why not using the default apache maven repository, ie 
http://repo1.maven.org/maven2/ ?


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


RE: Embedded ApacheDS examples not working

Posted by "Benjamin, Roy" <rb...@ebay.com>.
Hi,

Thanks for the help.
There are a zillion maven repos out there, I've been trying the one's whose
names I could remember.

Adding http://repo1.maven.org/maven2/ has helped

I now get (below), so I'll work on this issue next.  
Cheers
Roy

Downloading: http://repository.corp.ebay.com/central/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.jar
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-site-plugin -Dversion=2.1 -Dpackaging=maven-plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-site-plugin -Dversion=2.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1

from the specified remote repositories:
  ebox.common.plugins (http://repository.corp.ebay.com/ebox/common),
  central (http://repository.corp.ebay.com/central),
  ebox.releases.plugins (http://repository.corp.ebay.com/ebox/releases),
  central.plugins (http://repository.corp.ebay.com/central),
  ebox.3rdparty.plugins (http://repository.corp.ebay.com/ebox/3rdparty)


  org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1






-----Original Message-----
From: Emmanuel Lecharny [mailto:elecharny@gmail.com] 
Sent: Thursday, July 29, 2010 4:03 PM
To: users@directory.apache.org
Subject: Re: Embedded ApacheDS examples not working

  On 7/30/10 12:15 AM, Benjamin, Roy wrote:
> I've tried adding numerous popular maven repositories to the settings
> without any luck at all.   I'm astonished at how really difficult it
> is to work with ApacheDS.... I don't know if it's me or the documention
> or what...
doco does not help, that for sure.

We are working hard to get a 2.0 version out, and it's not that simple. 
So, yes, it's hard to work with ADS, but you have to realize that it's 
not a small project (the current code base is more than 800 000 lines of 
code).

Now, why not using the default apache maven repository, ie 
http://repo1.maven.org/maven2/ ?


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Embedded ApacheDS examples not working

Posted by Emmanuel Lecharny <el...@gmail.com>.
  On 7/30/10 12:15 AM, Benjamin, Roy wrote:
> I've tried adding numerous popular maven repositories to the settings
> without any luck at all.   I'm astonished at how really difficult it
> is to work with ApacheDS.... I don't know if it's me or the documention
> or what...
doco does not help, that for sure.

We are working hard to get a 2.0 version out, and it's not that simple. 
So, yes, it's hard to work with ADS, but you have to realize that it's 
not a small project (the current code base is more than 800 000 lines of 
code).

Now, why not using the default apache maven repository, ie 
http://repo1.maven.org/maven2/ ?


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


RE: Embedded ApacheDS examples not working

Posted by "Benjamin, Roy" <rb...@ebay.com>.
I've tried adding numerous popular maven repositories to the settings
without any luck at all.   I'm astonished at how really difficult it
is to work with ApacheDS.... I don't know if it's me or the documention
or what...

Thanks

-----Original Message-----
From: Benjamin, Roy [mailto:rbenjamin@ebay.com] 
Sent: Thursday, July 29, 2010 2:44 PM
To: users@directory.apache.org
Subject: RE: Embedded ApacheDS examples not working

Thanks Kiran,

I still don't find a pom, is there a repository I need to use ?


D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>svn up
U    main\resources\archetype-resources\src\main\java\StartStopListener.java
U    main\resources\archetype-resources\src\main\resources\log4j.properties
U    main\resources\archetype-resources\pom.xml
Updated to revision 980589.

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>svn status

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>cd ..

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>svn up
U    pom.xml
U    archetype-catalog.xml
Updated to revision 980589.

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>mvn install
[INFO] Scanning for projects...
Downloading: http://repository.corp.ebay.com/central//org/apache/directory/project/project/15/project-15.pom
[INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository ebox.central (http://repository.corp.ebay.com/central/)
Downloading: http://repository.corp.ebay.com/ebox/releases//org/apache/directory/project/project/15/project-15.pom
[INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository ebox.releases (http://repository.corp.ebay.com/ebox/releases/)
Downloading: http://repository.corp.ebay.com/central//org/apache/directory/project/project/15/project-15.pom
[INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.directory.project
ArtifactId: project
Version: 15

Reason: Unable to download the artifact from any repository

  org.apache.directory.project:project:pom:15

from the specified remote repositories:
  ebox.common (http://repository.corp.ebay.com/ebox/common/),
  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
  central (http://repository.corp.ebay.com/central/),
  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
  ebox.central (http://repository.corp.ebay.com/central/)



[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.directory.project:project for project: org.apache.directory.samples:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT for project
archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.directory.project:project for project: org.apache.directory.samples:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
es:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1398)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
        ... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.directory.project:project' not found in repository: Unable to download the artifact from any repository

  org.apache.directory.project:project:pom:15

from the specified remote repositories:
  ebox.common (http://repository.corp.ebay.com/ebox/common/),
  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
  central (http://repository.corp.ebay.com/central/),
  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
  ebox.central (http://repository.corp.ebay.com/central/)

 for project org.apache.directory.project:project
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1394)
        ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

  org.apache.directory.project:project:pom:15

from the specified remote repositories:
  ebox.common (http://repository.corp.ebay.com/ebox/common/),
  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
  central (http://repository.corp.ebay.com/central/),
  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
  ebox.central (http://repository.corp.ebay.com/central/)


        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
        ... 18 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:349)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jul 29 14:42:12 PDT 2010
[INFO] Final Memory: 2M/6M
[INFO] ------------------------------------------------------------------------
D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>













































-----Original Message-----
From: ayyagarikiran@gmail.com [mailto:ayyagarikiran@gmail.com] On Behalf Of Kiran Ayyagari
Sent: Thursday, July 29, 2010 1:56 PM
To: users@directory.apache.org
Subject: Re: Embedded ApacheDS examples not working

hi Roy,

     I have updated the webapp archetype to the latest version (1.5.8-SNAPSHOT).
     There was a bug which affects the way schema loader extracts the
schema in a container
     environment (this was fixed after releasing 1.5.7 hence I used
the latest version)

    Please follow the below instructions to build the sample web app
    (note: many steps are identical to those present on the webpage[1] )

    1. either do a complete checkout and build or just run 'svn up' if
you have already checked it out

     svn co http://svn.apache.org/repos/asf/directory/samples/trunk/apacheds-archetype-webapp
     cd apacheds-archetype-webapp
     mvn install

    2. mvn archetype:generate -DarchetypeGroupId=org.apache.directory.samples \
                       -DarchetypeArtifactId=apacheds-archetype-webapp \
                       -DarchetypeVersion=1.5.8-SNAPSHOT \
                       -DgroupId=org.apache.directory.samples.embed.webapp \
                       -DartifactId=ApacheDS -Dversion=1.0-SNAPSHOT

       (note: only the archetype's version was changed, remaining all are same)

    3. running

       jetty:

        mvn  jetty:run
-Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar

      tomcat:

         a. copy the app folder from ApacheDS/target to the webapps folder

         b. set/export
JAVA_OPTS="-Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar"

         c. start the tomcat

HTH

Kiran Ayyagari



[1] http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html

On Fri, Jul 30, 2010 at 12:21 AM, Benjamin, Roy <rb...@ebay.com> wrote:
> Hi,
>
> I have ApacheDS 1.5.7 installed.  I also have sources.
>
> I've found two similar examples on the ApacheDS site for running the server embedded
> in a servlet.  I can't get either one to work...
>
> ---
> One example is at: http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html
>
> I've been unable to build the example.  The first problem was that it uses org.apache.directory.server.core.DefaultDirectoryService
> which is not a public class.  So I changed the StartStopListener package to org.apache.directory.server.core,
> one compile problem solved.
>
> The example also uses:
>    org.apache.directory.server.ldap.LdapServer
>    org.apache.directory.server.protocol.shared.transport.TcpTransport
> I cannot find these classes anywhere, in 1.5.7  they seem to be a part of 1.5.6 only.  BUT
> I cannot build 1.5.6 (which would load the jars to my local repository) because the project
> parent pom no longer exists, seems not to be in svn, or in some maven repo somewhere..
>
>
> btw.  The parent pom for the apacheds-archetype-webapp also does not seem to exist...  ahg...
>
>
> ---
> Another example is at: https://cwiki.apache.org/DIRxSRVx10/embedding-apacheds-as-a-web-application.html
>
> I've been able to build this example, however it cannot be started in Tomcat.   The example uses javax.naming.directory.InitialDirContext
> and Tomcat 5.5.29 explodes with exceptions trying to use this class.
>
>
> +++
> I can send stack traces etc... but first am I using the correct list?
>
> Should these examples work?  What release of ApacheDS ?   How to build ?
>
> Thanks
> Roy
>
>
>

Re: Embedded ApacheDS examples not working

Posted by Kiran Ayyagari <ka...@apache.org>.
On Fri, Jul 30, 2010 at 3:14 AM, Benjamin, Roy <rb...@ebay.com> wrote:
> Thanks Kiran,
>
> I still don't find a pom, is there a repository I need to use ?
I have no repositories configured in my settings.xml, so maven is
using the default repositories.
try with http://repo2.maven.org/maven2 enable snapshots too
btw, this pom exists in that repo.

Kiran Ayyagari
>
>
> D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>svn up
> U    main\resources\archetype-resources\src\main\java\StartStopListener.java
> U    main\resources\archetype-resources\src\main\resources\log4j.properties
> U    main\resources\archetype-resources\pom.xml
> Updated to revision 980589.
>
> D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>svn status
>
> D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>cd ..
>
> D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>svn up
> U    pom.xml
> U    archetype-catalog.xml
> Updated to revision 980589.
>
> D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>mvn install
> [INFO] Scanning for projects...
> Downloading: http://repository.corp.ebay.com/central//org/apache/directory/project/project/15/project-15.pom
> [INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository ebox.central (http://repository.corp.ebay.com/central/)
> Downloading: http://repository.corp.ebay.com/ebox/releases//org/apache/directory/project/project/15/project-15.pom
> [INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository ebox.releases (http://repository.corp.ebay.com/ebox/releases/)
> Downloading: http://repository.corp.ebay.com/central//org/apache/directory/project/project/15/project-15.pom
> [INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.directory.project
> ArtifactId: project
> Version: 15
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.directory.project:project:pom:15
>
> from the specified remote repositories:
>  ebox.common (http://repository.corp.ebay.com/ebox/common/),
>  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
>  central (http://repository.corp.ebay.com/central/),
>  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
>  ebox.central (http://repository.corp.ebay.com/central/)
>
>
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.directory.project:project for project: org.apache.directory.samples:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT for project
> archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
>        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:599)
>        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.directory.project:project for project: org.apache.directory.samples:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
> es:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
>        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1398)
>        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
>        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
>        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
>        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
>        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
>        ... 11 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.directory.project:project' not found in repository: Unable to download the artifact from any repository
>
>  org.apache.directory.project:project:pom:15
>
> from the specified remote repositories:
>  ebox.common (http://repository.corp.ebay.com/ebox/common/),
>  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
>  central (http://repository.corp.ebay.com/central/),
>  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
>  ebox.central (http://repository.corp.ebay.com/central/)
>
>  for project org.apache.directory.project:project
>        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
>        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1394)
>        ... 17 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
>
>  org.apache.directory.project:project:pom:15
>
> from the specified remote repositories:
>  ebox.common (http://repository.corp.ebay.com/ebox/common/),
>  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
>  central (http://repository.corp.ebay.com/central/),
>  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
>  ebox.central (http://repository.corp.ebay.com/central/)
>
>
>        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
>        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
>        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
>        ... 18 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
>        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:349)
>        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
>        ... 20 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Thu Jul 29 14:42:12 PDT 2010
> [INFO] Final Memory: 2M/6M
> [INFO] ------------------------------------------------------------------------
> D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: ayyagarikiran@gmail.com [mailto:ayyagarikiran@gmail.com] On Behalf Of Kiran Ayyagari
> Sent: Thursday, July 29, 2010 1:56 PM
> To: users@directory.apache.org
> Subject: Re: Embedded ApacheDS examples not working
>
> hi Roy,
>
>     I have updated the webapp archetype to the latest version (1.5.8-SNAPSHOT).
>     There was a bug which affects the way schema loader extracts the
> schema in a container
>     environment (this was fixed after releasing 1.5.7 hence I used
> the latest version)
>
>    Please follow the below instructions to build the sample web app
>    (note: many steps are identical to those present on the webpage[1] )
>
>    1. either do a complete checkout and build or just run 'svn up' if
> you have already checked it out
>
>     svn co http://svn.apache.org/repos/asf/directory/samples/trunk/apacheds-archetype-webapp
>     cd apacheds-archetype-webapp
>     mvn install
>
>    2. mvn archetype:generate -DarchetypeGroupId=org.apache.directory.samples \
>                       -DarchetypeArtifactId=apacheds-archetype-webapp \
>                       -DarchetypeVersion=1.5.8-SNAPSHOT \
>                       -DgroupId=org.apache.directory.samples.embed.webapp \
>                       -DartifactId=ApacheDS -Dversion=1.0-SNAPSHOT
>
>       (note: only the archetype's version was changed, remaining all are same)
>
>    3. running
>
>       jetty:
>
>        mvn  jetty:run
> -Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar
>
>      tomcat:
>
>         a. copy the app folder from ApacheDS/target to the webapps folder
>
>         b. set/export
> JAVA_OPTS="-Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar"
>
>         c. start the tomcat
>
> HTH
>
> Kiran Ayyagari
>
>
>
> [1] http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html
>
> On Fri, Jul 30, 2010 at 12:21 AM, Benjamin, Roy <rb...@ebay.com> wrote:
>> Hi,
>>
>> I have ApacheDS 1.5.7 installed.  I also have sources.
>>
>> I've found two similar examples on the ApacheDS site for running the server embedded
>> in a servlet.  I can't get either one to work...
>>
>> ---
>> One example is at: http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html
>>
>> I've been unable to build the example.  The first problem was that it uses org.apache.directory.server.core.DefaultDirectoryService
>> which is not a public class.  So I changed the StartStopListener package to org.apache.directory.server.core,
>> one compile problem solved.
>>
>> The example also uses:
>>    org.apache.directory.server.ldap.LdapServer
>>    org.apache.directory.server.protocol.shared.transport.TcpTransport
>> I cannot find these classes anywhere, in 1.5.7  they seem to be a part of 1.5.6 only.  BUT
>> I cannot build 1.5.6 (which would load the jars to my local repository) because the project
>> parent pom no longer exists, seems not to be in svn, or in some maven repo somewhere..
>>
>>
>> btw.  The parent pom for the apacheds-archetype-webapp also does not seem to exist...  ahg...
>>
>>
>> ---
>> Another example is at: https://cwiki.apache.org/DIRxSRVx10/embedding-apacheds-as-a-web-application.html
>>
>> I've been able to build this example, however it cannot be started in Tomcat.   The example uses javax.naming.directory.InitialDirContext
>> and Tomcat 5.5.29 explodes with exceptions trying to use this class.
>>
>>
>> +++
>> I can send stack traces etc... but first am I using the correct list?
>>
>> Should these examples work?  What release of ApacheDS ?   How to build ?
>>
>> Thanks
>> Roy
>>
>>
>>
>

RE: Embedded ApacheDS examples not working

Posted by "Benjamin, Roy" <rb...@ebay.com>.
Thanks Kiran,

I still don't find a pom, is there a repository I need to use ?


D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>svn up
U    main\resources\archetype-resources\src\main\java\StartStopListener.java
U    main\resources\archetype-resources\src\main\resources\log4j.properties
U    main\resources\archetype-resources\pom.xml
Updated to revision 980589.

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>svn status

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp\src>cd ..

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>svn up
U    pom.xml
U    archetype-catalog.xml
Updated to revision 980589.

D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>mvn install
[INFO] Scanning for projects...
Downloading: http://repository.corp.ebay.com/central//org/apache/directory/project/project/15/project-15.pom
[INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository ebox.central (http://repository.corp.ebay.com/central/)
Downloading: http://repository.corp.ebay.com/ebox/releases//org/apache/directory/project/project/15/project-15.pom
[INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository ebox.releases (http://repository.corp.ebay.com/ebox/releases/)
Downloading: http://repository.corp.ebay.com/central//org/apache/directory/project/project/15/project-15.pom
[INFO] Unable to find resource 'org.apache.directory.project:project:pom:15' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.directory.project
ArtifactId: project
Version: 15

Reason: Unable to download the artifact from any repository

  org.apache.directory.project:project:pom:15

from the specified remote repositories:
  ebox.common (http://repository.corp.ebay.com/ebox/common/),
  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
  central (http://repository.corp.ebay.com/central/),
  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
  ebox.central (http://repository.corp.ebay.com/central/)



[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.directory.project:project for project: org.apache.directory.samples:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT for project
archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.directory.project:project for project: org.apache.directory.samples:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
es:apacheds-archetype-webapp:maven-archetype:1.5.8-SNAPSHOT
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1398)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
        ... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.directory.project:project' not found in repository: Unable to download the artifact from any repository

  org.apache.directory.project:project:pom:15

from the specified remote repositories:
  ebox.common (http://repository.corp.ebay.com/ebox/common/),
  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
  central (http://repository.corp.ebay.com/central/),
  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
  ebox.central (http://repository.corp.ebay.com/central/)

 for project org.apache.directory.project:project
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1394)
        ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

  org.apache.directory.project:project:pom:15

from the specified remote repositories:
  ebox.common (http://repository.corp.ebay.com/ebox/common/),
  ebox.releases (http://repository.corp.ebay.com/ebox/releases/),
  central (http://repository.corp.ebay.com/central/),
  ebox.3rdparty (http://repository.corp.ebay.com/ebox/3rdparty/),
  ebox.central (http://repository.corp.ebay.com/central/)


        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
        ... 18 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:349)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jul 29 14:42:12 PDT 2010
[INFO] Final Memory: 2M/6M
[INFO] ------------------------------------------------------------------------
D:\DS\apacheds-10-trunks\apacheds-archetype-webapp>













































-----Original Message-----
From: ayyagarikiran@gmail.com [mailto:ayyagarikiran@gmail.com] On Behalf Of Kiran Ayyagari
Sent: Thursday, July 29, 2010 1:56 PM
To: users@directory.apache.org
Subject: Re: Embedded ApacheDS examples not working

hi Roy,

     I have updated the webapp archetype to the latest version (1.5.8-SNAPSHOT).
     There was a bug which affects the way schema loader extracts the
schema in a container
     environment (this was fixed after releasing 1.5.7 hence I used
the latest version)

    Please follow the below instructions to build the sample web app
    (note: many steps are identical to those present on the webpage[1] )

    1. either do a complete checkout and build or just run 'svn up' if
you have already checked it out

     svn co http://svn.apache.org/repos/asf/directory/samples/trunk/apacheds-archetype-webapp
     cd apacheds-archetype-webapp
     mvn install

    2. mvn archetype:generate -DarchetypeGroupId=org.apache.directory.samples \
                       -DarchetypeArtifactId=apacheds-archetype-webapp \
                       -DarchetypeVersion=1.5.8-SNAPSHOT \
                       -DgroupId=org.apache.directory.samples.embed.webapp \
                       -DartifactId=ApacheDS -Dversion=1.0-SNAPSHOT

       (note: only the archetype's version was changed, remaining all are same)

    3. running

       jetty:

        mvn  jetty:run
-Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar

      tomcat:

         a. copy the app folder from ApacheDS/target to the webapps folder

         b. set/export
JAVA_OPTS="-Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar"

         c. start the tomcat

HTH

Kiran Ayyagari



[1] http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html

On Fri, Jul 30, 2010 at 12:21 AM, Benjamin, Roy <rb...@ebay.com> wrote:
> Hi,
>
> I have ApacheDS 1.5.7 installed.  I also have sources.
>
> I've found two similar examples on the ApacheDS site for running the server embedded
> in a servlet.  I can't get either one to work...
>
> ---
> One example is at: http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html
>
> I've been unable to build the example.  The first problem was that it uses org.apache.directory.server.core.DefaultDirectoryService
> which is not a public class.  So I changed the StartStopListener package to org.apache.directory.server.core,
> one compile problem solved.
>
> The example also uses:
>    org.apache.directory.server.ldap.LdapServer
>    org.apache.directory.server.protocol.shared.transport.TcpTransport
> I cannot find these classes anywhere, in 1.5.7  they seem to be a part of 1.5.6 only.  BUT
> I cannot build 1.5.6 (which would load the jars to my local repository) because the project
> parent pom no longer exists, seems not to be in svn, or in some maven repo somewhere..
>
>
> btw.  The parent pom for the apacheds-archetype-webapp also does not seem to exist...  ahg...
>
>
> ---
> Another example is at: https://cwiki.apache.org/DIRxSRVx10/embedding-apacheds-as-a-web-application.html
>
> I've been able to build this example, however it cannot be started in Tomcat.   The example uses javax.naming.directory.InitialDirContext
> and Tomcat 5.5.29 explodes with exceptions trying to use this class.
>
>
> +++
> I can send stack traces etc... but first am I using the correct list?
>
> Should these examples work?  What release of ApacheDS ?   How to build ?
>
> Thanks
> Roy
>
>
>

Re: Embedded ApacheDS examples not working

Posted by Kiran Ayyagari <ka...@apache.org>.
hi Roy,

     I have updated the webapp archetype to the latest version (1.5.8-SNAPSHOT).
     There was a bug which affects the way schema loader extracts the
schema in a container
     environment (this was fixed after releasing 1.5.7 hence I used
the latest version)

    Please follow the below instructions to build the sample web app
    (note: many steps are identical to those present on the webpage[1] )

    1. either do a complete checkout and build or just run 'svn up' if
you have already checked it out

     svn co http://svn.apache.org/repos/asf/directory/samples/trunk/apacheds-archetype-webapp
     cd apacheds-archetype-webapp
     mvn install

    2. mvn archetype:generate -DarchetypeGroupId=org.apache.directory.samples \
                       -DarchetypeArtifactId=apacheds-archetype-webapp \
                       -DarchetypeVersion=1.5.8-SNAPSHOT \
                       -DgroupId=org.apache.directory.samples.embed.webapp \
                       -DartifactId=ApacheDS -Dversion=1.0-SNAPSHOT

       (note: only the archetype's version was changed, remaining all are same)

    3. running

       jetty:

        mvn  jetty:run
-Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar

      tomcat:

         a. copy the app folder from ApacheDS/target to the webapps folder

         b. set/export
JAVA_OPTS="-Dschema.resource.location=<complete-path-to>/pacheds-all-1.5.8-SNAPSHOT.jar"

         c. start the tomcat

HTH

Kiran Ayyagari



[1] http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html

On Fri, Jul 30, 2010 at 12:21 AM, Benjamin, Roy <rb...@ebay.com> wrote:
> Hi,
>
> I have ApacheDS 1.5.7 installed.  I also have sources.
>
> I've found two similar examples on the ApacheDS site for running the server embedded
> in a servlet.  I can't get either one to work...
>
> ---
> One example is at: http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html
>
> I've been unable to build the example.  The first problem was that it uses org.apache.directory.server.core.DefaultDirectoryService
> which is not a public class.  So I changed the StartStopListener package to org.apache.directory.server.core,
> one compile problem solved.
>
> The example also uses:
>    org.apache.directory.server.ldap.LdapServer
>    org.apache.directory.server.protocol.shared.transport.TcpTransport
> I cannot find these classes anywhere, in 1.5.7  they seem to be a part of 1.5.6 only.  BUT
> I cannot build 1.5.6 (which would load the jars to my local repository) because the project
> parent pom no longer exists, seems not to be in svn, or in some maven repo somewhere..
>
>
> btw.  The parent pom for the apacheds-archetype-webapp also does not seem to exist...  ahg...
>
>
> ---
> Another example is at: https://cwiki.apache.org/DIRxSRVx10/embedding-apacheds-as-a-web-application.html
>
> I've been able to build this example, however it cannot be started in Tomcat.   The example uses javax.naming.directory.InitialDirContext
> and Tomcat 5.5.29 explodes with exceptions trying to use this class.
>
>
> +++
> I can send stack traces etc... but first am I using the correct list?
>
> Should these examples work?  What release of ApacheDS ?   How to build ?
>
> Thanks
> Roy
>
>
>