this looks like a permission problem - the user running the ant update command 
should be the same as the user owning  C:\Program Files\dspace\config
If you did the standard install - run ant update as the dspace user

Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Phone: 609-258-4161
333C 701 Carnegie, Princeton University, Princeton, NJ 08544

On Jun 2, 2015, at 9:52 AM, Saidy Binta <bisa...@mrc.gm<mailto:bisa...@mrc.gm>> 
wrote:

Hi,

I am trying to update ant but I keep having the error, please help

C:\dspace\DSpace-master>cd C:\dspace\DSpace-master\dspace\target\dspace-installe
r

C:\dspace\DSpace-master\dspace\target\dspace-installer>ant update
Buildfile: C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml

prepare_configs:
    [mkdir] Created dir: C:\dspace\DSpace-master\dspace\target\dspace-installer\
config-temp
     [copy] Copying 1 file to C:\dspace\DSpace-master\dspace\target\dspace-insta
ller\config-temp
     [copy] Copying 142 files to C:\dspace\DSpace-master\dspace\target\dspace-in
staller\config-temp

copy_configs_keep:

overwrite_configs:
     [copy] Copying 3 files to C:\Program Files\dspace\config
Attempt to copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Fil
es\dspace\config\input-forms.dtd-20150602-133352.old using NIO Channels failed d
ue to 'C:\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Acces
s is denied)'.  Falling back to streams.

BUILD FAILED
C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml:215: Failed to
copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Files\dspace\c
onfig\input-forms.dtd-20150602-133352.old due to java.io.FileNotFoundException C
:\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Access is den
ied)

Total time: 1 second

Regards
Binta

From: Kleiner Eike (klie) [mailto:k...@zhaw.ch]
Sent: 02 June 2015 13:32
To: Graham Faulkner
Cc: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: Re: [Dspace-tech] two form fields with same schema element and 
qualifier

Hi Graham,

We ran into the same problem with JSPUI on DSpace 5.1. We tried to fill dc.type 
from two different value-pair-lists and ended up with the duplicate entries you 
described. We came to two possible solutions:

1)      Merge the lists into one and make the field repeatable / multi 
selection.
2)      Distribute the fields over multiple pages of the ingest form. At least 
with JSPUI this avoids the duplicates.

Both approaches are not fully satisfactory but I wasn’t able to find a better 
solution on the fly.

Hope this helps

Eike
--
ZHAW Zürcher Hochschule für Angewandte Wissenschaften
Information & Communication Technology

Eike Kleiner
Gertrudstrasse 15
Postfach
CH-8401 Winterthur

Tel: +41 58 934 4959
Fax: +41 58 935 4959
E-Mail:eike.klei...@zhaw.ch<mailto:eike.klei...@zhaw.ch>

Von: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca]
Gesendet: Montag, 1. Juni 2015 19:19
An: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Betreff: Re: [Dspace-tech] two form fields with same schema element and 
qualifier

Hello again. I failed to mention that this was for XMLUI (Mirage 2 to be 
specific) on DS 5.1.

Cheers,

Graham


From: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca]
Sent: Friday, May 29, 2015 2:13 PM
To: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: [Dspace-tech] two form fields with same schema element and qualifier

Hi there,

This question relates to DS5.1 on Ubuntu using PostgreSQL.

In our /dspace/config/input-forms.xml we have two drop-down fields for Faculty 
and Department, respectively.  We want both fields to have the same element 
(“contributor”) and qualifier (“affiliation”), which are part of a custom 
schema (“uws”).

However, when we submit the item in the submission workflow, the fields are 
each inserted twice in the database.  i.e. rather than having one entry for the 
Faculty and one for Department, there are two entries each.

Here are the respective <fields> in input-forms.xml:

        <!-- New field: "Faculty" -->
        <field>
          <dc-schema>uws</dc-schema>
          <dc-element>contributor</dc-element>
          <dc-qualifier>affiliation</dc-qualifier>
          <repeatable>false</repeatable>
          <label>Faculty or affiliated and federated institution</label>
          <input-type 
value-pairs-name="FacultySubmissionForm_faculty">dropdown</input-type>
          <hint>Select your faculty or affiliated and federated institution 
from the drop down
            list.</hint>
          <required>You must choose from the list of Faculties and affiliated 
and federated
            institutions.</required>
        </field>

        <!-- New field: "Department" -->
        <field>
          <dc-schema>uws</dc-schema>
          <dc-element>contributor</dc-element>
          <dc-qualifier>affiliation</dc-qualifier>
          <repeatable>false</repeatable>
          <label>Department</label>
          <input-type 
value-pairs-name="FacultySubmissionForm_department">dropdown</input-type>
          <hint>Select your department from the drop down list.</hint>
          <required>You must choose from the list of departments.</required>
        </field>

Any suggestions on solutions, or pointers to where the duplicate entry is 
occurring in the source code?

Cheers,

Graham

-----------------------------------------
Graham Faulkner
Web Developer / Programmer
Digital Initiatives, Library
University of Waterloo
Waterloo, Ontario N2L 3G1 CANADA
519-888-4567 x32461
graham.faulk...@uwaterloo.ca<mailto:graham.faulk...@uwaterloo.ca>


________________________________

DISCLAIMER: This message is private and confidential. If you have received this 
message in error please notify us and remove it from your system. Any views and 
opinions expressed in this message are those of the individual sender and do 
not necessarily represent the views and opinions of Medical Research Council 
Unit, The Gambia

___________________________________________________________
This communication is confidential and may contain privileged information 
intended solely for the named recipient(s). It may not be used or disclosed 
except for the purpose for which it has been sent. If you are not the intended 
recipient, you must not copy, distribute, take any action or reliance on it. If 
you have received this communication in error, do not open any attachments but 
please notify the Help Desk by e-mailing h...@mrc.gm<mailto:h...@mrc.gm> 
quoting the sender details, and then delete this message along with any 
attached files. E-mail messages are not secure and attachments could contain 
software viruses which may damage your computer system. Whilst every reasonable 
precaution has been taken to minimise this risk, The MRC Unit The Gambia cannot 
accept any liability for any damage sustained as a result of these factors. You 
are advised to carry out your own virus checks before opening any attachments. 
Unless expressly stated, opinions in this message are those of the e-mail 
author and not of the Medical Research Council Unit The Gambia.
________________________________________________________________________
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to