Re: [Dspace-tech] unable to create accounts

2010-06-24 Thread helix84
On Thu, Jun 24, 2010 at 06:34,  heli...@centrum.sk wrote:
 com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not 
 authenticated

That's quite self-explanatory. To send mail, you have to provide your
username and password for mail.
Also set these variables:

mail.server.username = myusername
mail.server.password = mypassword
mail.from.address = someth...@dspace.yourinstitution.edu

Just read all comments in that section and set everything for your environment.

Regards,
~~helix84

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] solr logger error socket timeout exception on dns lookup

2010-06-24 Thread Claudia Jürgen
Hi all,

we updated our instance to 1.6.0 and got some (250-800/day) solr errors 
(see below) related to the dns lookup in 
org.dspace.statistics.SolrLogger at line 182:
 try
 {
String dns = DnsLookup.reverseDns(ip);
 doc1.addField(dns, dns.toLowerCase());
 }
 catch (Exception e)
 {
log.error(e.getMessage());
}

Is anyone facing the same issue and maybe got solved it. Note in the 
logs only the line ERROR org.dspace.statistics.SolrLogger @ appears.

thanks

Claudia Jürgen



2010-06-23 11:52:03,890 ERROR org.dspace.statistics.SolrLogger @
java.net.SocketTimeoutException
at org.xbill.DNS.Client.blockUntil(Client.java:43)
at org.xbill.DNS.UDPClient.recv(UDPClient.java:43)
at org.xbill.DNS.UDPClient.sendrecv(UDPClient.java:70)
at org.xbill.DNS.SimpleResolver.send(SimpleResolver.java:256)
at 
org.xbill.DNS.ExtendedResolver$Resolution.start(ExtendedResolver.java:93)
at org.xbill.DNS.ExtendedResolver.send(ExtendedResolver.java:359)
at org.dspace.statistics.util.DnsLookup.reverseDns(DnsLookup.java:36)
at org.dspace.statistics.SolrLogger.post(SolrLogger.java:184)
at 
org.dspace.statistics.SolrLoggerUsageEventListener.receiveEvent(SolrLoggerUsageEventListener.java:41)
at 
org.dspace.services.events.SystemEventService.fireLocalEvent(SystemEventService.java:154)
at 
org.dspace.services.events.SystemEventService.fireEvent(SystemEventService.java:97)
at 
org.dspace.app.webui.servlet.HandleServlet.doDSGet(HandleServlet.java:173)
at 
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:151)
at 
org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:112)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)



-- 
Mit freundlichen Gruessen

Claudia Juergen
Universitaetsbibliothek Dortmund
Eldorado
0231/755-4043
https://eldorado.tu-dortmund.de/

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] unable to create accounts

2010-06-24 Thread javed . hirani
Thanks for all your support.

I have now receiving following error:

java.net.SocketException: Software caused connection abort: recv failed


Regards,

 Save a tree. Don't print this e-mail unless it's necessary.






-Original Message-
From: helix84 [mailto:heli...@centrum.sk]
Sent: 24 June 2010 12:03
To: DSpace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] unable to create accounts

On Thu, Jun 24, 2010 at 06:34,  heli...@centrum.sk wrote:
 com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not
 authenticated

That's quite self-explanatory. To send mail, you have to provide your username 
and password for mail.
Also set these variables:

mail.server.username = myusername
mail.server.password = mypassword
mail.from.address = someth...@dspace.yourinstitution.edu

Just read all comments in that section and set everything for your environment.

Regards,
~~helix84

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day 
Giveaway. ONE MASSIVE PRIZE to the lucky parental unit.  See the prize list and 
enter to win:
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


This e-mail may contain information that is privileged or confidential. If you 
are not the intended recipient, please delete the e-mail and any attachments 
and notify us immediately.
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] unable to create accounts

2010-06-24 Thread helix84
On Thu, Jun 24, 2010 at 13:28,  heli...@centrum.sk wrote:
 java.net.SocketException: Software caused connection abort: recv failed

I probably won't be able to help with that.

Please, send the full stack trace so that someone can identify the
line of code which caused it.

Regards,
~~helix84

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Error in Creating Accounts

2010-06-24 Thread Hardik Mishra
Hello Mr. Javed,

It seems that your exchange server does not allow to send e-mail without
authentication.

You can try following step

1. Reconfigure the Exchange server to allow sending without authentication.

2. Authenticate to the Exchange server using credentials specific to the web
application itself.
Configure the Exchange server to allow the user with those credentials to
send mail that appears
to be from any other user.

I don't know how to do any of that with Exchange Server; Ask some help from
your Network Administrator who manages Exchange Server

Hope this helps

Thanks   Regards
Hardik Mishra
Software Engineer

Give a man a fish, and you feed him for a day. Teach a man to catch fish and
you feed him for a lifetime.

Message: 4
Date: Thu, 24 Jun 2010 09:34:35 +0500
From: javed.hirani javed.hir...@aku.edu
Subject: Re: [Dspace-tech] unable to create accounts
To: 'heli...@centrum.sk' heli...@centrum.sk,
   DSpace-tech@lists.sourceforge.net
   DSpace-tech@lists.sourceforge.net
Message-ID:
   aecc45fb0016d74baa5022601cab948c0146d9b6c...@iedexch.ied.aku.edu
Content-Type: text/plain; charset=utf-8

Thanks for support.

After adding SMTP host it gives the following error

com.sun.mail.smtp.
SMTPSendFailedException: 530 5.7.1 Client was not authenticated

Regards,
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Problems with the database when upgrading DSpace

2010-06-24 Thread Bruno Oliveira
Good morning,

My name is Bruno and I work for the Universidade Federal de Minas Gerais -
UFMG. We have been using DSpace for nearly five years and now we are
planning to
upgrade from version 1.5.2 to version 1.6.2.

Here are the steps I followed in order to do the upgrade:

1 - I ran the script named database_schema_15-16.sql on an 1.5.2 database.
The script executed without any error messages;
2 - I dumped the modified 1.5.2 database which now should be compatible with
a 1.6.2. database;
3 - I tried to import the dumped database on a 1.6.2 database. At this time
I got error messages like this:

06:53:05 [INSERT - 0 row(s), 0.000 secs] [Error Code: 0, SQL State: 22P02]
ERROR: invalid input syntax for integer: Alfredo Luis Mateus
Posição: 35
... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000
sec [0 successful, 0 warnings, 1 errors]

As one can see the INSERT command was expecting an INTEGER value but
received a TEXT one. The expected INTEGER value would be for the distinct_id
column but this column does not exist in the bi_2_dis table nor in the
bi_4_dis table. I took a look at the script code and noticed that it does
not include the columns distinct_id and authority in the bi_2_dis and
bi_4_dis tables.

Here is how I am planning the fix the problem:


1 - Alter the script so that it creates the missing columns distinct_id and
authority in the bi_2_dmap and bi_4_dmap tables;
2 - Alter the bi_2_dmap table so that the foreign key constraint (I am not
sure about the constraint's name now but I will check it later) which is
based on the distinct_id column refers to the distinct_id column instead of
the id column from the bi_2_dis table;
3 - Repeat the above step for the bi_4_dmap and bi_4_dis tables;
4 - Create a script to fill the distinct_id column with the value from the
id column so that I have the same value on both columns.

Can I fix the problem by the following these steps?

I thank you very much in advance,

Bruno Carvalho
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problems with the database when upgrading DSpace

2010-06-24 Thread Simon Brown

On 24 Jun 2010, at 13:14, Bruno Oliveira wrote:


 As one can see the INSERT command was expecting an INTEGER value but  
 received a TEXT one. The expected INTEGER value would be for the  
 distinct_id column but this column does not exist in the bi_2_dis  
 table nor in the bi_4_dis table. I took a look at the script code  
 and noticed that it does not include the columns distinct_id and  
 authority in the bi_2_dis and bi_4_dis tables.



These tables are created by the browse indexing system. You're  
probably better off dropping them from your upgraded 1.5.2 database  
before you import it, and then running index-init on your 1.6.2 system  
to rebuild them after the import.

--
Simon Brown st...@cam.ac.uk - Cambridge University Computing Service
+44 1223 3 34714 - New Museums Site, Pembroke Street, Cambridge CB2 3QH



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] help on updating dspace configuration

2010-06-24 Thread Tim Donohue
Hi Carlos,

It's 'ant update_configs' to update a DSpace configuration.  But, be 
forewarned that if this finds existing files it will *not* overwrite the 
existing configuration -- rather it will place a new version 
side-by-side so that you can compare them and decide what needs updating.

So, when you run 'ant update_configs', for any configs that need 
updating you'll see a '[config-file-name].new' file appear (e.g. you'll 
see a 'dspace.cfg.new' appear next to your existing 'dspace.cfg'). 
You'll need to check these *.new files to see if you want the updates 
made.  By default we do not overwrite your existing configs as we don't 
want to accidentally lose any customizations you may have made.

You can type 'ant help' to get an explanation of the various 'ant' 
commands available.

- Tim




On 6/23/2010 11:21 PM, Carlos S wrote:
 Could someone please help on this?
 http://www.dspace.org/1_6_0Documentation/ch05.html#N119D4

 Is it update_configs or init_configs to update dspace configuration?

 --
 CS.



 On Wed, Jun 23, 2010 at 1:26 AM, Carlos Sneu...@gmail.com  wrote:
 Hi,

 I need some help regarding DSpace configuration update after changing
 '[dspace-source]/dspace/config/dspace.cfg' file. Do I need to run ant
 update_config or 'ant init_config'. The manual for DSpace 1.6 ,
 section 5.1.2 seemed to be confusing as it says:

 {{{
 . To keep the two files in synchronization, you can edit your files in
 [dspace-source]/dspace/config/ and then you
 would run the following commands:
 cd /[dspace-source]/dspace/target/dspace-version-build.dir
 ant update_configs


 • To run ant -Dconfig=/[dspace]/config/dspace.cfg update if you are
 updating your dspace.cfg file and
   wish to see the changes appear. Follow the usual sequence with
 copying your webapps.
 • If you edit dspace.cfg in [dspace-source]/dspace/config/, you should
 then run 'ant init_configs'
   in the directory
 [dspace-source]/dspace/target/dspace-1.5.2-build.dir so that any
 changes you may
   have made are reflected in the configuration files of other
 applications, for example Apache. You may then need to restart
   those applications, depending on what you changed.
 }}}

 Any help on how to update configuration? Also, do I need to run any
 maven commands?

 --
 Thanks,
 CS.


 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] Problem with Manakin and IE

2010-06-24 Thread Tim Donohue
Hi Ricardo,

I'm copying in the 'dspace-tech' list again -- in case others have ideas.

Another question:
* Does this only happen with Internet Explorer, or does it happen on all 
browsers?

As for the demo.dspace.org -- if you are having difficulty registering, 
you can test an upload using one of the pre-configured demonstration 
accounts which are listed on the homepage (especially the 'Demo 
Submitter' account: dspacedemo+sub...@gmail.com)
http://demo.dspace.org/xmlui

I just tried an upload of a 14MB file using IE8 to the demo.dspace.org 
site, and it worked fine for me (though it did take about 10 or so 
seconds to finish uploading). So, I'm still not sure what could be 
causing your issues. But, it would be good to determine if it is 
specific to Internet Explorer, or if it happens on all web-browsers.

- Tim

On 6/24/2010 2:29 AM, Ricardo Borillo wrote:
 Hi Tim,

 Thanks for your support.

 The ingest process only fails for input files over 10Mb aprox.

 I'm trying to connect to demo.dspace.org but i get an error when i try
 to register:

 
 Unable to send email to this address.
 

 I'm working with the source distribution of DSpace 1.6.1. When i
 download a new version of DSpace, i import this version to my local
 subversion repository. Then, i register all the customizations that i
 make to the base source distribution to keep tracking of this changes.

 I attach an svn log -v of the changes that i have made (sorry, but
 the comments are in spanish).

 Thanks in advance for your help.

 ---
 Salut,
 
 Ricardo Borillo Domenech
 http://xml-utils.com / http://twitter.com/borillo



 On Wed, Jun 23, 2010 at 16:28, Tim Donohuetdono...@duraspace.org  wrote:
 Ricardo,

 It looks like your upload process is timing out or getting canceled in the
 middle of the upload.  Does this only occur for large files, or does it also
 happen if you upload a small file?

 You might also try the same upload on our Demo Repository to see if you get
 this same error on all DSpace installs, or if there's something specific
 with your local installation of DSpace:

 http://demo.dspace.org/xmlui/

 - Tim

 On 6/23/2010 6:23 AM, Ricardo Borillo wrote:

 Hi all,

 I'm trying to upload a new documento to DSpace 1.6.1 through Manakin.
 The size of this document is about 15Mb and i'm working with IE 8.

 The problem is that, when i try to submit this document to a
 collection, i get the following error:

 
 Problem in creating the Request
 Message: null

 Description: No details available.

 Sender: org.apache.cocoon.servlet.multipart.MultipartFilter

 Source: Cocoon Servlet

 cause

 Malformed stream

 request-uri


 /xmlui/handle/10234/2509/submit/465e6f6a697f7f1b5e5574636757323d55114e72.continue
 

 Please, anybody knows something about this error?

 Thanks in advance

 ---
 Salut,
 
 Ricardo Borillo Domenech
 http://xml-utils.com / http://twitter.com/borillo


 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Dspace-devel mailing list
 dspace-de...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-devel



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] LDAP Authentication generating Exception

2010-06-24 Thread Jason Nugent
Hi everyone,

I am configuring a DSpace 1.6.0 instance to authenticate users to my
LDAP server.  I believe I have the necessary configuration options in
dspace.cfg specified correctly, but if I add
org.dspace.authenticate.LDAPHierarchicalAuthentication to my
Authentication stack, I receive a NullPointerException.  If I use the
regular org.dspace.authenticate.LDAPAuthentication method, my logins do
not work.

My relevant bits of dspace.cfg:

ldap.enable = true
ldap.provider_url = ldaps://ldap.unb.ca/
ldap.id_field = uid
ldap.object_context = dc=unb,dc=ca
ldap.search_context = dc=unb,dc=ca
ldap.email_field = mail
webui.ldap.autoregister = true
ldap.search_scope = 2
ldap.search.user = uid=authentication,dc=unb,dc=ca
ldap.search.password = #


For Hierarchical authentication, I receive the following stack trace:

java.lang.NullPointerException
at
org.dspace.authenticate.LDAPHierarchicalAuthentication$SpeakerToLDAP.getDNOfUser(LDAPHierarchicalAuthentication.java:381)
at
org.dspace.authenticate.LDAPHierarchicalAuthentication.authenticate(LDAPHierarchicalAuthentication.java:212)
at
org.dspace.authenticate.AuthenticationManager.authenticateInternal(AuthenticationManager.java:197)
at
org.dspace.authenticate.AuthenticationManager.authenticate(AuthenticationManager.java:134)
at
org.dspace.app.xmlui.utils.AuthenticationUtil.Authenticate(AuthenticationUtil.java:139)
at
org.dspace.app.xmlui.aspect.eperson.LDAPAuthenticateAction.act(LDAPAuthenticateAction.java:100)


When I switch back to the other method, I see this in dspace.log:

2010-06-24 12:09:36,234 INFO  org.dspace.authenticate.LDAPAuthentication
@
anonymous:session_id=C9E51723EA5FACD476F97B1300ABC5E8:ip_addr=131.202.32.219:auth:attempting
trivial auth of user=jnugent

2010-06-24 12:09:36,234 DEBUG org.dspace.storage.rdbms.DatabaseManager @
Running query select * from eperson where netid = ?   with parameters:
jnugent

2010-06-24 12:09:37,233 WARN  org.dspace.authenticate.LDAPAuthentication
@
anonymous:session_id=C9E51723EA5FACD476F97B1300ABC5E8:ip_addr=131.202.32.219:ldap_authentication:type=failed_auth
javax.naming.AuthenticationException\colon; [LDAP\colon; error code 32 -
No Such Object]

That's better, but now I am wondering why my LDAP server is returning No
Such Object.  OpenLDAP's ldapsearch tool seems to correctly find my
record, using the same command line arguments.  I am prompted for my
authentication password for the authenticated search DN and find my
jnugent record.

ldapsearch -W -D uid=authentication,dc=unb,dc=ca -v -x -H
ldaps://ldap.unb.ca  (uid=jnugent)

Suggestions are appreciated.

Regards,

Jason


-- 
Jason Nugent
Systems Programmer/Database Developer
Electronic Text Centre
University of New Brunswick
jnug...@unb.ca
(506) 447 3177

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] help on updating dspace configuration

2010-06-24 Thread Peter Dietz
Hi Carlos,

The wording of the documentation is _a_good_way_ to keep your config
directories in sync with each other. However, its a bit more work
than necessary. Since it is true that you can directly alter
[dspace]/config/dspace.cfg, and then restart tomcat, and your change takes
effect.


Here's my trick...

Since I usually find it overkill to do a full maven package / ant update
-Doverwrite=true for the simplest config updates, I use a local source-code
version control system to keep everything in sync.

I import the dspace.org dspace-source-1.6.1 code into my local repository.
I'll call it dspace-production
svn export http://scm.dspace.org/svn/repo/dspace/tags/dspace-1.6.2/
 dspace-production
svn import dspace-production http://svnrepo/dspace-production

Then on the server I check out the source from my svn repo to
[dspace-source].
svn checkout 
http://svnrepo/dspace-production/path/to/dspace-source/dspace-production

I also checkout the config directory to [dspace]/config
svn checkout http://svnrepo/dspace-production/dspace/config /dspace/config


Thus, I can make config changes to the checkout on my local PC and commit
it. Then on the server, I can either go to [dspace]/config, svn update,
tomcat restart. Or, you could go to [dspace-source], svn update, then do the
full mvn package / ant update -Doverwrite=true / tomcat restart.

Thus my configs stay in sync. The only annoyance is things like
${dspace.dir} are always getting expanded.





Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries



On Thu, Jun 24, 2010 at 10:15 AM, Tim Donohue tdono...@duraspace.orgwrote:

 Hi Carlos,

 It's 'ant update_configs' to update a DSpace configuration.  But, be
 forewarned that if this finds existing files it will *not* overwrite the
 existing configuration -- rather it will place a new version
 side-by-side so that you can compare them and decide what needs updating.

 So, when you run 'ant update_configs', for any configs that need
 updating you'll see a '[config-file-name].new' file appear (e.g. you'll
 see a 'dspace.cfg.new' appear next to your existing 'dspace.cfg').
 You'll need to check these *.new files to see if you want the updates
 made.  By default we do not overwrite your existing configs as we don't
 want to accidentally lose any customizations you may have made.

 You can type 'ant help' to get an explanation of the various 'ant'
 commands available.

 - Tim




 On 6/23/2010 11:21 PM, Carlos S wrote:
  Could someone please help on this?
  http://www.dspace.org/1_6_0Documentation/ch05.html#N119D4
 
  Is it update_configs or init_configs to update dspace configuration?
 
  --
  CS.
 
 
 
  On Wed, Jun 23, 2010 at 1:26 AM, Carlos Sneu...@gmail.com  wrote:
  Hi,
 
  I need some help regarding DSpace configuration update after changing
  '[dspace-source]/dspace/config/dspace.cfg' file. Do I need to run ant
  update_config or 'ant init_config'. The manual for DSpace 1.6 ,
  section 5.1.2 seemed to be confusing as it says:
 
  {{{
  . To keep the two files in synchronization, you can edit your files in
  [dspace-source]/dspace/config/ and then you
  would run the following commands:
  cd /[dspace-source]/dspace/target/dspace-version-build.dir
  ant update_configs
 
 
  • To run ant -Dconfig=/[dspace]/config/dspace.cfg update if you are
  updating your dspace.cfg file and
wish to see the changes appear. Follow the usual sequence with
  copying your webapps.
  • If you edit dspace.cfg in [dspace-source]/dspace/config/, you should
  then run 'ant init_configs'
in the directory
  [dspace-source]/dspace/target/dspace-1.5.2-build.dir so that any
  changes you may
have made are reflected in the configuration files of other
  applications, for example Apache. You may then need to restart
those applications, depending on what you changed.
  }}}
 
  Any help on how to update configuration? Also, do I need to run any
  maven commands?
 
  --
  Thanks,
  CS.
 
 
 
 --
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
  ___
  DSpace-tech mailing list
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech


 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
ThinkGeek and WIRED's 

Re: [Dspace-tech] LDAP Authentication generating Exception

2010-06-24 Thread Flavio Botelho
I dont have the code here with me, but a wild guess would be that uid
isnt the field that stores the complete DN.

 ldap.id_field = uid

Probably should be set to something else (the usual name for the field
is 'dn' i guess)?

Kudos,
Flavio Botelho

On Thu, Jun 24, 2010 at 12:13 PM, Jason Nugent jnug...@unb.ca wrote:
 Hi everyone,

 I am configuring a DSpace 1.6.0 instance to authenticate users to my
 LDAP server.  I believe I have the necessary configuration options in
 dspace.cfg specified correctly, but if I add
 org.dspace.authenticate.LDAPHierarchicalAuthentication to my
 Authentication stack, I receive a NullPointerException.  If I use the
 regular org.dspace.authenticate.LDAPAuthentication method, my logins do
 not work.

 My relevant bits of dspace.cfg:

 ldap.enable = true
 ldap.provider_url = ldaps://ldap.unb.ca/
 ldap.id_field = uid
 ldap.object_context = dc=unb,dc=ca
 ldap.search_context = dc=unb,dc=ca
 ldap.email_field = mail
 webui.ldap.autoregister = true
 ldap.search_scope = 2
 ldap.search.user = uid=authentication,dc=unb,dc=ca
 ldap.search.password = #


 For Hierarchical authentication, I receive the following stack trace:

 java.lang.NullPointerException
        at
 org.dspace.authenticate.LDAPHierarchicalAuthentication$SpeakerToLDAP.getDNOfUser(LDAPHierarchicalAuthentication.java:381)
        at
 org.dspace.authenticate.LDAPHierarchicalAuthentication.authenticate(LDAPHierarchicalAuthentication.java:212)
        at
 org.dspace.authenticate.AuthenticationManager.authenticateInternal(AuthenticationManager.java:197)
        at
 org.dspace.authenticate.AuthenticationManager.authenticate(AuthenticationManager.java:134)
        at
 org.dspace.app.xmlui.utils.AuthenticationUtil.Authenticate(AuthenticationUtil.java:139)
        at
 org.dspace.app.xmlui.aspect.eperson.LDAPAuthenticateAction.act(LDAPAuthenticateAction.java:100)


 When I switch back to the other method, I see this in dspace.log:

 2010-06-24 12:09:36,234 INFO  org.dspace.authenticate.LDAPAuthentication
 @
 anonymous:session_id=C9E51723EA5FACD476F97B1300ABC5E8:ip_addr=131.202.32.219:auth:attempting
 trivial auth of user=jnugent

 2010-06-24 12:09:36,234 DEBUG org.dspace.storage.rdbms.DatabaseManager @
 Running query select * from eperson where netid = ?   with parameters:
 jnugent

 2010-06-24 12:09:37,233 WARN  org.dspace.authenticate.LDAPAuthentication
 @
 anonymous:session_id=C9E51723EA5FACD476F97B1300ABC5E8:ip_addr=131.202.32.219:ldap_authentication:type=failed_auth
 javax.naming.AuthenticationException\colon; [LDAP\colon; error code 32 -
 No Such Object]

 That's better, but now I am wondering why my LDAP server is returning No
 Such Object.  OpenLDAP's ldapsearch tool seems to correctly find my
 record, using the same command line arguments.  I am prompted for my
 authentication password for the authenticated search DN and find my
 jnugent record.

 ldapsearch -W -D uid=authentication,dc=unb,dc=ca -v -x -H
 ldaps://ldap.unb.ca  (uid=jnugent)

 Suggestions are appreciated.

 Regards,

 Jason


 --
 Jason Nugent
 Systems Programmer/Database Developer
 Electronic Text Centre
 University of New Brunswick
 jnug...@unb.ca
 (506) 447 3177

 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech