directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Council (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-1598) Code referenced in "Embedding ApacheDS as a Web Application" doesn't compile with apacheds-all 1.5.8-SNAPSHOT
Date Thu, 13 Jan 2011 17:01:54 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981367#action_12981367
] 

Chris Council commented on DIRSERVER-1598:
------------------------------------------

Running 'mvn jetty:run' with apacheds-all 1.5.7, I get the exception

Caused by: java.io.FileNotFoundException: ERR_10004 Expecting to find a schema.ldif file in
provided baseDirectory path '/y/apacheds-embedded/ApacheDS/target/work/server-work/schema/ou=schema.ldif'
but no such file found.
	at org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader.<init>(LdifSchemaLoader.java:113)
	at org.example.StartStopListener.initSchema(StartStopListener.java:150)
	at org.example.StartStopListener.contextInitialized(StartStopListener.java:89)
	... 41 more
2011-01-13 09:57:23.681::INFO:  Started SelectChannelConnector@0.0.0.0:8090
[INFO] Started Jetty Server

...which I believe is a known issue. When I extract the schema files from apacheds-all and
stick them in /y/apacheds-embedded/ApacheDS/target/work/server-work/schema/ (as a workaround),
I get this error:

2011-01-13 09:59:36.533::INFO:  jetty-6.1.21
2011-01-13 09:59:36.798::INFO:  No Transaction manager found - if your webapp requires one,
please configure one.
schema partition directory exists, skipping schema extraction
[09:59:51] ERROR [org.apache.directory.shared.ldap.entry.DefaultServerAttribute] - ERR_04450
The value {0} is incorrect, it hasnt been added

> Code referenced in "Embedding ApacheDS as a Web Application" doesn't compile with apacheds-all
1.5.8-SNAPSHOT
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1598
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1598
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Chris Council
>
> The code referenced from http://directory.apache.org/apacheds/1.5/43-embedding-apacheds-as-a-web-application.html
doesn't compile with apacheds-all 1.5.8-SNAPSHOT and it doesn't seem to work with apacheds-all
1.5.7.
> This also applies to a project created using the instructions provided in the "Creating
the WebApp using the ApacheDS Maven Archetype" section on that same page. 
> Specifically, there is no longer a "setWorkingDirectory" method in org.apache.directory.server.core.DefaultDirectoryService.
I'm not sure exactly how to solve this issue, it's not immediately obvious what the replacement
method is.
> Also, it was rather difficult to get apacheds-all 1.5.8-SNAPSHOT in the first place -
after some time, I finally determined that it was available from http://repository.apache.org/
(I think). It would be nice to have this information on that page as well. Still, I had to
grab the artifact manually and install it in a local maven repo, since it didn't seem to download
from the http://repository.apache.org/ repo correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message