[Dspace-tech] Dspace User registration, password reset and feedback not working DSpace3.3 XMLUI

2015-06-23 Thread Md. Ataur Rahman
Hello,

I have installed DSpace 3.3 on a brand new Debian wheeze machine with
XMLUI. All things are working ok except user registration, Feedback and
reset user password etc. I have configured postfix with gmail which is also
working fine. My email configuration on dspace.cfg is as follows-


# SMTP mail server

# mail.server = smtp.example.com

mail.server = smtp.gmail.com

# SMTP mail server authentication username and password (if required)

#mail.server.username =

#mail.server.password =

mail.server.username = x...@gmail.com

mail.server.password = VCC

# SMTP mail server alternate port (defaults to 25)

# mail.server.port = 25

mail.server.port = 587

--

# the key and the value. For example:

mail.extraproperties = mail.smtp.socketFactory.port=587, \


mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory,
\

   mail.smtp.socketFactory.fallback=false



The Error message for user registration is as follows:-

Register an account to subscribe to collections for email updates, and
submit new items to DSpace.

   1. Email Address:

This address will be verified and used as your login name. * Unable to send
email to this address.



 The output of the command -- ./dspace dsrun org.dspace.core.Email

 INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
DSpaceKernel:org.dspace:name=0f2e2427-bac7-4e06-85fa-36ce88d721f9,type=DSpaceKernel:lastLoad=null:loadTim

e=0:running=false:kernel=null

 INFO [main] (ConfigurationManager.java:1224) - Loading from classloader:
file:/soft/dspace/config/dspace.cfg

 INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log
configuration (log.init.config)

 INFO [main] (ConfigurationManager.java:1224) - Loading:
/soft/dspace/config/log4j.properties

About to send test email:

 - To: ataurb...@gmail.com

 - Subject: DSpace test email

 - Server: smtp.gmail.com

Error sending email:

 - Error: javax.mail.MessagingException: Exception reading response;

  nested exception is:

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
connection?

Please see the DSpace documentation for assistance.



The output of ./dspace shows-

- test-email: Test the DSpace email server settings are OK



Is there any way to create and manage user through command line?
Please help me to solve the problem.
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

[Dspace-tech] Altmetrics and DSpace how to add?

2015-06-23 Thread karolosoc...@interia.pl
Hi!

someone known how add Altmetrics to dspace/jspui? Regards,

Karol



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Altmetrics-and-DSpace-how-to-add-tp4678559.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
___
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


[Dspace-tech] maximum open cursors exceeded (db.statementpool = false don´t work)

2015-06-23 Thread cotanio
Hi everyone,

Recently we are having problems with our Oracle database for DSpace. For
example, when we loading lots of ítems by using itemImport. The exception
is:

java.sql.SQLException: ORA-01000: maximum open cursors exceeded

I read that the problem is solved with the following line of dspace.cfg to
false:

db.statementpool = false

however we have already tested and don´t work.

Another way is to change the DatabaseManager class to make use of the Oracle
connection instead of DBCP for connection pool. Has anyone tried this?

Thanks in advance.





--
View this message in context: 
http://dspace.2283337.n4.nabble.com/maximum-open-cursors-exceeded-db-statementpool-false-don-t-work-tp4678560.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
___
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

Re: [Dspace-tech] Repeated containing collection in item record

2015-06-23 Thread Chris Gray
This issue cleared up overnight, so I suppose one of the crontab 
housecleaning tasks needed to run.


On 6/22/2015 4:22 PM, Chris Gray wrote:

Our production server currently uses DSpace 3.1 with XMLUI.

We are having problems where the item record lists a collection 
multiple times. For example:



The owning collection is the last listed.  Removing the mapping does 
not remove either of the first two items in the list. Remapping does 
not change this.


However, in the "edit item" view the "view item" tab does not show 
this duplication.


Any ideas on what's wrong and how to fix it?

Chris Gray
Systems Analyst
519-888-4567, ext. 35764
cpg...@uwaterloo.ca
University of Waterloo





--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o


___
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


--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

Re: [Dspace-tech] Dspace User registration, password reset and feedback not working DSpace3.3 XMLUI

2015-06-23 Thread Mark H. Wood
On Tue, Jun 23, 2015 at 02:30:24PM +0600, Md. Ataur Rahman wrote:
> Hello,
> 
> I have installed DSpace 3.3 on a brand new Debian wheeze machine with
> XMLUI. All things are working ok except user registration, Feedback and
> reset user password etc. I have configured postfix with gmail which is also
> working fine. My email configuration on dspace.cfg is as follows-
> 
> 
> # SMTP mail server
> 
> # mail.server = smtp.example.com
> 
> mail.server = smtp.gmail.com
> 
> # SMTP mail server authentication username and password (if required)
> 
> #mail.server.username =
> 
> #mail.server.password =
> 
> mail.server.username = x...@gmail.com
> 
> mail.server.password = VCC
> 
> # SMTP mail server alternate port (defaults to 25)
> 
> # mail.server.port = 25
> 
> mail.server.port = 587
> 
> --
> 
> # the key and the value. For example:
> 
> mail.extraproperties = mail.smtp.socketFactory.port=587, \
> 
> 
> mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory,
> \
> 
>mail.smtp.socketFactory.fallback=false

These properties combine to force the use of SMTP-in-TLS.  That is:
the mailer will first try to establish a TLS session and then run an
SMTP session inside of it.

But you specified port 587, which expects to establish an SMTP session
first.  It can use the SMTP STARTTLS verb to perform "upward
negotiation" and carry out the actual SMTP transactions in a TLS
session.

In short:  I think your port and class here are incompatible.

> The Error message for user registration is as follows:-
> 
> Register an account to subscribe to collections for email updates, and
> submit new items to DSpace.
> 
>1. Email Address:
> 
> This address will be verified and used as your login name. * Unable to send
> email to this address.
> 
> 
> 
>  The output of the command -- ./dspace dsrun org.dspace.core.Email
> 
>  INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
> DSpaceKernel:org.dspace:name=0f2e2427-bac7-4e06-85fa-36ce88d721f9,type=DSpaceKernel:lastLoad=null:loadTim
> 
> e=0:running=false:kernel=null
> 
>  INFO [main] (ConfigurationManager.java:1224) - Loading from classloader:
> file:/soft/dspace/config/dspace.cfg
> 
>  INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log
> configuration (log.init.config)
> 
>  INFO [main] (ConfigurationManager.java:1224) - Loading:
> /soft/dspace/config/log4j.properties
> 
> About to send test email:
> 
>  - To: ataurb...@gmail.com
> 
>  - Subject: DSpace test email
> 
>  - Server: smtp.gmail.com
> 
> Error sending email:
> 
>  - Error: javax.mail.MessagingException: Exception reading response;
> 
>   nested exception is:
> 
> javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
> connection?

This shows that DSpace tried to start a TLS session, but the other end
responded with plaintext, which result is what the above-described
mismatch should produce.

If you want SMTP-in-TLS, use SSLSocketFactory and submission port 465.
If you want plain SMTP, use the default socket factory and submission
port 587.  If you want plain SMTP with STARTTLS, also set
mail.smtp.starttls.enable=true.

My guess is that you want SMTP-in-TLS and that this would work:

  mail.extraproperties = mail.smtp.sslEnable = true, \
 mail.smtp.socketFactory.port=465

But I have not tried that combination.

> Is there any way to create and manage user through command line?

There is a 'dspace user' command in v5.x, but I don't think it was
available in v3.3.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu


signature.asc
Description: Digital signature
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

[Dspace-tech] Csv import request copy email problem

2015-06-23 Thread Hakan Yanaz
Hi,

I am trying to import multiple items via csv metadata import method.
Import process is successfully completed, after that I add a bitstream with
embargo. If someone request a copy of this bitstream, an error occured that
there is no receipt email domain.

Is it a bug or something wrong with my DSpace 4.1.

Thanks in advance.

-- 

*Hakan Yanaz*

Kütüphane Teknolojileri Uzmanı



[image: Kütüphane]



*T  * *:* 0216 564 91 58

*M :* hakan.ya...@ozyegin.edu.tr

*www.ozyegin.edu.tr *
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

Re: [Dspace-tech] Altmetrics and DSpace how to add?

2015-06-23 Thread helix84
On Tue, Jun 23, 2015 at 12:39 PM, karolosoc...@interia.pl <
karolosoc...@interia.pl> wrote:

> someone known how add Altmetrics to dspace/jspui? Regards,
>

What is your DSpace version and which metadata field do you use to store
DOI or (in case of PlumX) other supported identifiers [3]?

Which altmetrics do you want to use? DSpace 5 supports Altmetric [2] and
PlumX [3] in XMLUI out-of-the-box [1]. Adding it to JSPUI would be quite
simple.

[1] https://jira.duraspace.org/browse/DS-1222
[2] http://api.altmetric.com/embeds.html
[3] https://plu.mx/developers/widgets


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

[Dspace-tech] Case sensitivity in browse indexes

2015-06-23 Thread Chris Gray
We are setting up Dspace 5.x with XMLUI and Mirage 2.

Is there a way to make the browse indexes case insensitive?

Chris

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
___
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


Re: [Dspace-tech] Question about Embargo

2015-06-23 Thread Micah Cooper
Do you know if it’s still possible to embargo items that are deposited via 
SWORD with the new embargo functionality? The documentation at 
https://wiki.duraspace.org/display/DSDOC5x/Embargo only mentions SWORD in the 
Pre-DSpace 3.0 Embargo section.

Thanks
-Micah

From: Terry Brady 
mailto:terry.br...@georgetown.edu>>
Date: Monday, June 22, 2015 at 5:00 PM
To: George Stanley Kozak mailto:g...@cornell.edu>>
Cc: 
"dspace-tech@lists.sourceforge.net" 
mailto:dspace-tech@lists.sourceforge.net>>
Subject: Re: [Dspace-tech] Question about Embargo

Once you have migrated your embargos 
(https://wiki.duraspace.org/display/DSDOC5x/Embargo#Embargo-Pre-3.0EmbargoMigrationRoutine),
 you should not need to run the embargo lifter.

The policy tables are the definitive place for controlling access.

I believe that the old embargo lifter would clear the embargo metadata fields 
once the embargo is lifted.  That action may no longer happen once you are 
using the new embargo process.

Terry

On Mon, Jun 22, 2015 at 1:46 PM, George Stanley Kozak 
mailto:g...@cornell.edu>> wrote:
Hello:

This may be a dumb question, but I want to make sure that I understand the 
difference between the DSpace 1.8.2 Embargo and the DSpace 5.2 Embargo.
In our DSpace 1.8.2 setup we created a metadata field called: 
dc.description.embargo which we used to place the end date of the embargo.  I 
ran the embargo-lifter daily to check and clear out the embargoes (if any).

Do I still need to run the embargo-lifter daily in DSpace 5.2?

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924



--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
___
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



--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

[Dspace-tech] Vagrant Goodies

2015-06-23 Thread Monika C. Mevenkamp
Hi Hardy 

vagrant-cachier is just what the doctor ordered - I was wondering about sharing 
resources 
I tried it out - it took me a bit  to find where the maven dir lives on the 
host. 

After that I went ahead  and linked 
(cd ~/.vagrant.d/cache/dspace-trusty64/maven; ln -s ~/.m2/repositry/* .) 

Is that how you share ? 

Is there a reason why you did not do 

# use the generic cache bucket for Maven
   config.cache.enable :generic, {
 "maven" => { cache_dir: "/home/vagrant/.m2" },
   }

and then link 
(cd ~/.vagrant.d/cache/dspace-trusty64/maven; ln -s ~/.m2/* .) 

I use Bram’s trick of putting profiles in ~/.settings.xml - sharing the whole 
.m2 dir would give me the ability to keep all config bundles together in 
settings.xml 

Anyway - off to read about land rush and the other goodies 


Monika 

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

> On Jun 22, 2015, at 10:47 AM, Pottinger, Hardy J.  
> wrote:
> 
> Hi, Monika, here's the line  [1] in the Puppet template file that gets turned 
> into vagrant.properties, which selects the DB driver.
> 
> Here's what I do when I want to work with Oracle and Vagrant-DSpace (not 
> often, only when I want to test Oracle compatibility): I keep a copy of 
> vagrant.properties in the config/dotfiles folder, and I rename it 
> vagrant-oracle.properties. I then have a little bash alias I run to change 
> the MAVEN_OPTS:
> 
> alias oracle.env-init="export MAVEN_OPTS='-Denv=vagrant-oracle 
> -Dmirage2.on=true -Dmirage2.deps.included=false'"
> 
> NOTE: if you're not using Mirage2, you can forget the mirage2 options.
> 
> I also park the ojdbc.jar file in there, just in case I need it, however I 
> usually don't, because long ago I installed the Vagrant-cachier plugin [1], 
> and that keeps my entire .m2/repository folder, including any 
> manually-installed jar files, cached on my host machine.
> 
> In my local-bootstrap.sh provisioner script, I've added this:
> 
> # BASH aliases customization
> if [ -f "/vagrant/config/dotfiles/bash_aliases" ]; then
>echo "setting up .bash_aliases file"
>sudo -i -u vagrant cp /vagrant/config/dotfiles/bash_aliases 
> /home/vagrant/.bash_aliases
> fi
> 
> 
> Which lets me configure all kinds of little aliases.
> 
> --Hardy
> 
> [1] 
> https://github.com/DSpace/vagrant-dspace/blob/master/modules/dspace/templates/vagrant.properties.erb#L59
> [2] https://github.com/fgrehm/vagrant-cachier
> 
> From: Tim Donohue [tdono...@duraspace.org]
> Sent: Thursday, June 18, 2015 2:05 PM
> To: Monika C. Mevenkamp; Lista técnica do DSpace
> Subject: Re: [Dspace-tech] dspace 5_x + Oracle on Vagrant
> 
> Hi Monika,
> 
> It looks like it's trying to connect with:
> 
> "Driver: org.postgresql.Driver"
> 
> (according to the output of your "dspace database test")
> 
> This implies that your dspace.cfg probably has the wrong value for
> "db.driver". It should be:
> 
> db.driver=oracle.jdbc.OracleDriver
> 
> So you may want to update this in your dspace.cfg and try again. Also
> may want to update it in your "build.properties" (as that's what
> populates the dspace.cfg). In the case of vagrant-dspace, it uses a
> custom "vagrant.properties" by default.
> 
> - Tim
> 
> On 6/18/2015 1:33 PM, Monika C. Mevenkamp wrote:
>> I got myself dspace vagrant
>> switched to dspace_5_x branch
>> setup to run with Oracle via settings in dspace.cfg
>> copied ~/.m2/repository/com/oracle/ojdbc6 from my host to vagrants ~/.m2
>> did mvn package with -Ddb.name=oracle
>> 
>> I can successfully run
>> 
>>~/dspace/bin/dspace database test
>> 
>>Attempting to connect to database using these configurations:
>>  - URL: jdbc:oracle:thin:@xyz.princeton.edu
>>:1521:dspdevl
>>  - Driver: org.postgresql.Driver
>>  - Username: dspace
>>  - Password: [hidden]
>>  - Schema:
>> 
>>Testing connection...
>>Connected successfully!
>> 
>> 
>> 
>> localist:8081/probe tells me that jspui, xmlii, oia, rdf  did not come up
>> there are exceptions in catalina.out
>> java.sql.SQLException: No suitable driver found for
>> jdbc:oracle:thin:@xyz.princeton.edu :1521:dspdevl
>> 
>> but the jar is available to all webs -  according to ls
>> 
>> ls -ld ~/dspace/webapps/*/WEB-INF/lib/ojdbc6-11.2.0.4.jar
>> ~/dspace/lib/ojdbc6-11.2.0.4.jar
>> -rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28
>> */home/vagrant/dspace/lib/ojdbc6-11.2.0.4.jar*
>> -rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28
>> */home/vagrant/dspace/webapps/jspui/WEB-INF/lib/ojdbc6-11.2.0.4.jar*
>> -rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28
>> */home/vagrant/dspace/webapps/oai/WEB-INF/lib/ojdbc6-11.2.0.4.jar*
>> -rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28
>> */home/vagrant/dspace/webapps/rdf/WEB-INF/lib/ojdbc6-11.2.0.4.jar*
>> -rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 1

Re: [Dspace-tech] Vagrant Goodies

2015-06-23 Thread Pottinger, Hardy J.
> Is there a reason why you did not do

:-) I would never assume that anyone running Vagrant-DSpace would also have 
Maven installed on their host computer. It's part of the point of 
Vagrant-DSpace, to not have to install Maven. Though, it's cool that you 
figured that out, and that you find it helpful.

RE: Landrush, it's kind of fiddly, I don't use it any more. Instead I use 
Vagrant::Hostsupdater [1]

[1] https://github.com/cogitatio/vagrant-hostsupdater

It's a much more solid solution to mapping host names to localhost. 

From: Monika C. Mevenkamp [moni...@princeton.edu]
Sent: Tuesday, June 23, 2015 10:47 AM
To: Pottinger, Hardy J.
Cc: Tim Donohue; Lista técnica do DSpace
Subject: Vagrant Goodies

Hi Hardy

vagrant-cachier is just what the doctor ordered - I was wondering about sharing 
resources
I tried it out - it took me a bit  to find where the maven dir lives on the 
host.

After that I went ahead  and linked
(cd ~/.vagrant.d/cache/dspace-trusty64/maven; ln -s ~/.m2/repositry/* .)

Is that how you share ?

Is there a reason why you did not do

# use the generic cache bucket for Maven
   config.cache.enable :generic, {
 "maven" => { cache_dir: "/home/vagrant/.m2" },
   }

and then link
(cd ~/.vagrant.d/cache/dspace-trusty64/maven; ln -s ~/.m2/* .)

I use Bram’s trick of putting profiles in ~/.settings.xml - sharing the whole 
.m2 dir would give me the ability to keep all config bundles together in 
settings.xml

Anyway - off to read about land rush and the other goodies


Monika


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

> On Jun 22, 2015, at 10:47 AM, Pottinger, Hardy J.  
> wrote:
>
> Hi, Monika, here's the line  [1] in the Puppet template file that gets turned 
> into vagrant.properties, which selects the DB driver.
>
> Here's what I do when I want to work with Oracle and Vagrant-DSpace (not 
> often, only when I want to test Oracle compatibility): I keep a copy of 
> vagrant.properties in the config/dotfiles folder, and I rename it 
> vagrant-oracle.properties. I then have a little bash alias I run to change 
> the MAVEN_OPTS:
>
> alias oracle.env-init="export MAVEN_OPTS='-Denv=vagrant-oracle 
> -Dmirage2.on=true -Dmirage2.deps.included=false'"
>
> NOTE: if you're not using Mirage2, you can forget the mirage2 options.
>
> I also park the ojdbc.jar file in there, just in case I need it, however I 
> usually don't, because long ago I installed the Vagrant-cachier plugin [1], 
> and that keeps my entire .m2/repository folder, including any 
> manually-installed jar files, cached on my host machine.
>
> In my local-bootstrap.sh provisioner script, I've added this:
>
> # BASH aliases customization
> if [ -f "/vagrant/config/dotfiles/bash_aliases" ]; then
>echo "setting up .bash_aliases file"
>sudo -i -u vagrant cp /vagrant/config/dotfiles/bash_aliases 
> /home/vagrant/.bash_aliases
> fi
>
>
> Which lets me configure all kinds of little aliases.
>
> --Hardy
>
> [1] 
> https://github.com/DSpace/vagrant-dspace/blob/master/modules/dspace/templates/vagrant.properties.erb#L59
> [2] https://github.com/fgrehm/vagrant-cachier
> 
> From: Tim Donohue [tdono...@duraspace.org]
> Sent: Thursday, June 18, 2015 2:05 PM
> To: Monika C. Mevenkamp; Lista técnica do DSpace
> Subject: Re: [Dspace-tech] dspace 5_x + Oracle on Vagrant
>
> Hi Monika,
>
> It looks like it's trying to connect with:
>
> "Driver: org.postgresql.Driver"
>
> (according to the output of your "dspace database test")
>
> This implies that your dspace.cfg probably has the wrong value for
> "db.driver". It should be:
>
> db.driver=oracle.jdbc.OracleDriver
>
> So you may want to update this in your dspace.cfg and try again. Also
> may want to update it in your "build.properties" (as that's what
> populates the dspace.cfg). In the case of vagrant-dspace, it uses a
> custom "vagrant.properties" by default.
>
> - Tim
>
> On 6/18/2015 1:33 PM, Monika C. Mevenkamp wrote:
>> I got myself dspace vagrant
>> switched to dspace_5_x branch
>> setup to run with Oracle via settings in dspace.cfg
>> copied ~/.m2/repository/com/oracle/ojdbc6 from my host to vagrants ~/.m2
>> did mvn package with -Ddb.name=oracle
>>
>> I can successfully run
>>
>>~/dspace/bin/dspace database test
>>
>>Attempting to connect to database using these configurations:
>>  - URL: jdbc:oracle:thin:@xyz.princeton.edu
>>:1521:dspdevl
>>  - Driver: org.postgresql.Driver
>>  - Username: dspace
>>  - Password: [hidden]
>>  - Schema:
>>
>>Testing connection...
>>Connected successfully!
>>
>>
>>
>> localist:8081/probe tells me that jspui, xmlii, oia, rdf  did not come up
>> there are exceptions in catalina.out
>> java.sql.SQLException: No suitable driver found for
>> jdbc:oracle:thin:@xyz.princeton.edu 

Re: [Dspace-tech] New submissions are not searchable

2015-06-23 Thread Murray, Gregory
Andrea,

Thank you for the clarification about the default behavior, and for the chown 
advice.

Thanks,
Greg


On Jun 23, 2015, at 12:02 AM, Andrea Schweer wrote:

> Hi,
> 
> On 23/06/15 03:58, Murray, Gregory wrote:
>> Thank you very much for this information. It's extremely helpful. I must say 
>> I'm very surprised that DSpace doesn't provide full-text searching by 
>> default -- only by setting up a cron job or by running the indexing 
>> manually. Searching the full text of text-based file formats should be the 
>> default behavior out of the box, not a specialized or atypical use case.
> 
> The short answer is, I'm sure there were good reasons for this behaviour back 
> when it was first implemented, and it has never been enough of a problem for 
> someone to submit a pull request or file a bug report. For the record, I do 
> agree with you that it would be great not to have to set up additional things 
> to support fulltext search. On the other hand, the cron job gives you the 
> flexibility to schedule the fulltext extraction whenever it suits you, since 
> this may be a resource intense task (probably more of a problem 10 years ago 
> than it is now -- hence our drive to look at the use cases for the modern 
> repository).
> 
>> As regards running the dspace script with sudo, now that I've done it once, 
>> is there a way for me to determine whether I've messed up the file system 
>> permissions?
> 
> You could run a recursive chown (chown -R tomcat:tomcat or whatever your 
> user/group are) on the dspace directory to fix its permissions. If you also 
> throw in a -c, chown will tell you about all changes it makes. Note though 
> that chown won't follow symbolic links. So if your dspace directory contains 
> symbolic links, you'll have to run chown on the targets of these links 
> too.
> 
> cheers,
> Andrea
> 
> -- 
> Dr Andrea Schweer
> IRR Technical Specialist, ITS Information Systems
> The University of Waikato, Hamilton, New Zealand


--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
___
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


[Dspace-tech] Vagrant or Docker

2015-06-23 Thread Monika C. Mevenkamp
Hi

my boss discovered a dspace docker

so which one should I do - docker or vagrant ?

They  sound awfully alike
  the host can connect to things : tomcat / ssh / ...
  files can be shared between host and   vagrant/docker guest
  it appears to be easy to hand a ‘vagrant’ or a ‘docker’ to another developer

so what’s the deal ?
why one over the other ?

Monika

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

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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