[Dspace-tech] installing DSPACE in windows and host it on linux

2011-04-18 Thread lulwa alyahyan
Dears,
I installed DSPACE in windows , completed all the configuration steps and it 
was running fine with all functionalities . Now I need to host it in  remote 
hosting server with Linux platform,
Is there any problem to host my dspace on linux server ?? or I should host it 
on windows server

Any support is highly appreciated

Regards,
Lulwah AL-Yahyan
Researcher


Warning: This message and its attachment, if any, are confidential and may 
contain information protected by law. If you are not the intended recipient, 
please contact the sender immediately and delete the message and its 
attachment, if any. You should not copy the message and its attachment, if any, 
or disclose its contents to any other person or use it for any purpose. 
Statements and opinions expressed in this e-mail and its attachment, if any, 
are those of the sender, and do not necessarily reflect those of King Abdulaziz 
city for Science and Technology (KACST) in the Kingdom of Saudi Arabia. KACST 
accepts no liability for any damage caused by this email.

?: ??? ??? ??? ? ?? ?? (?? )  ?  ?? ? ??? 
??? ? ? ???. ??? ?? ??? ? ??  ???   
? ???  ?? ?  ??? ? (?? )? ???  ?? 
??? ?? ? ??? ??? ??  (?? ) ?? ?? ??? ? ?? ? 
?? ? ?? ? ??? ???. ? ???  ??? ??? ? (?? 
)  ?? ??? ???   ??? ? ? ? ?? 
  ??? ? ??? ? ??? ?? ??? ?? ??? 
??? ?? ?? ?? ?? ??? ??.

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Creative Commons iframe language changed

2011-04-18 Thread Rafa Carreres

Hi,

I'm trying to make the CC iframe multilingual as described in 
https://jira.duraspace.org/browse/DS-807


This works fine and I've added some code to

[dspace-1.7.1-src-release]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/tools/creative-commons-edit.jsp 



so that the language is selected automatically depending on the 
preferred eperson language.


But, the problem is that once you've chosen your license in the CC 
selection license screen, then you get a second screen to confirm the 
license and it turns out that this new screen is always shown in English.


You can see this behavior by clicking on this link:

http://creativecommons.org/choose/?partner=dspacelang=esstylesheet=exit_url=

Once, a license is selected, you get a second screen with the associated 
link:


http://creativecommons.org/choose/results-one?lang=enreferrer=partner=dspaceexit_url=stylesheet=partner_icon_url=field_commercial=yfield_derivatives=yfield_jurisdiction=

Now, the lang= parameter has changed from es to en.

How can I keep the language parameter unchanged?

Please, any help would be appreciated.

Best regards
--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Missing Log Files

2011-04-18 Thread PIGPIGZ
Hi,

I am using dspace 1.6.2. I didn't change anything about the log file in
configuration file but dspace is not generating log file now... It even
doesn't create the dspace.logx...
Anyone knows why?

Thanks in advance.

Cheers,
Fan 

--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Missing-Log-Files-tp3457312p3457312.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Missing Log Files

2011-04-18 Thread helix84
On Mon, Apr 18, 2011 at 13:54, PIGPIGZ f@ed.ac.uk wrote:
 I am using dspace 1.6.2. I didn't change anything about the log file in
 configuration file but dspace is not generating log file now... It even
 doesn't create the dspace.logx...
 Anyone knows why?

Check permissions on the log directory. Is the user your servlet
container (Tomcat) runs under able to write there? This might have
happened if you e.g. ran ant update as a different user. In case this
turns out to be so, also keep an eye out for other permission-related
problems - check permissions of all directories under your dspace
installation directory.

Regards,
~~helix84

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] question about item indexing.

2011-04-18 Thread Peter Dietz
Hi Jose,

The flow for when a search is performed is that a bunch of default
parameters, along with whatever the user submits, get sent to the search
result processor. The part you have customized in
[jspui-api]/SimpleSearchServlet to weed out restricted items once the
results comeback is what gives you the less than 20 results. You could try
another attempt at fudging things to atleast get 20 hits for the first
page of search results, and perhaps change one of the default parameters to
make the search request search for 100 items, and then have your filter weed
out the ones that can't be shown, however this gets messy, as Page2 will
need to know the offset, which isn't 0 or 20, but
20+number-user-was-able-to-view, which is messy.

So, to accomplish your task, you'll likely have to get one-level deeper into
the matrix, of DSpace code, and mess with the dspace-api, namely,
DSQueryhttps://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/search/DSQuery.java#L126,
and have your UI (SimpleSearchServlet) pass another parameter to the query
such as a boolean onlyAuthorizedItems=true. In DSQuery, you'll need to
intercept the request when it has a true for onlyAuthorizedItems, and add a
Lucene Filter
http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Filter.html
that
restricts to items with proper dspace permissions. Then have all the places
where it performs the Lucene Search
http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Searcher.html#search(org.apache.lucene.search.Query,
org.apache.lucene.search.Filter, org.apache.lucene.search.Sort) add the
filter. If your filter is null, then it ignores the filter, otherwise it
will add the filter, and weed out the unviewable hits.

Its heavier lifting than the jspui-api changes, but still within reach.


Peter Dietz



On Fri, Apr 15, 2011 at 5:13 PM, Blanco, Jose blan...@umich.edu wrote:

 Peter, thank you for responding to my question.  I put in the filtering you
 described, and voila, the restricted items are not showing up, but the
 paging is all wrong as you predicted would happen.  I have been trying to
 add some code that can iterate through the list of returned items but I
 don’t think that the entire list is available.  If I’m understanding the
 code correctly, when someone performs a search ( and say dspace is
 configured to only return 20 items ), then lucene only returns the 20 items
 at a time.  Is that correct?  Below is the code that I would like to put in
 SimpleSearchServlet.java to compute the actual total and then set the total
 in qResults.  I think if I can do that, it will all work:



  int TotalcollCount = 0;

  int TotalcommCount = 0;

  int TotalitemCount = 0;



 for (int i = 0; i  qResults.getHitCount(); i++)

 {

 Integer myType = qResults.getHitTypes().get(i);*// This is where I
 run into problems.  It looks like qResults only has 20 at a time until the
 last page*

 * 
//
 So this errors out after it tries to grab more than 20*



 // add the handle to the appropriate lists

 switch (myType.intValue())

 {

 case Constants.ITEM:

 Item item = Item.find(context, qResults.getHitIds().get(i));
 *// Of course this will not work either because there are only 20 in
 qResults*

 if (AuthorizeManager.authorizeActionBoolean(context, item,
 Constants.READ))

 {

 TotalitemCount++;

}

 break;



 case Constants.COLLECTION:

 TotalcollCount++;

 break;



 case Constants.COMMUNITY:

 TotalcommCount++;

 break;

 }

 }



 int TotalCount = TotalitemCount + TotalcollCount + TotalcommCount;

 qResults.setHitCount( TotalCount );



 Thank you! Jose



 *From:* Peter Dietz [mailto:pdiet...@gmail.com]
 *Sent:* Tuesday, March 29, 2011 2:37 PM
 *To:* Blanco, Jose
 *Cc:* dspace-tech
 *Subject:* Re: [Dspace-tech] question about item indexing.



 Hi Jose,


 This actually sounds like a fun project to solve with Discovery, they look
 like a good match.

 Regarding the traditional lucene search index, my understanding is that the
 lucene index is there to provide fast query on the data. In your case you
 want to restrict what gets returned to the user based on authentication. So
 lucene will gives you all the fish in the ocean (all hits for query), you
 just want a few fish that are safe enough for this user to eat (just hits
 that user has authorization to read). Its doable, and without a monumental
 restructuring, it might however be slightly messy, then just giving the user
 results that can't view. On second thought, giving user hits they can't view
 is also kinda messy. But it will most likely involve some refactoring.

 You use JSPUI, so I'll look at that code.
 In:
 

Re: [Dspace-tech] [Dspace-devel] DS-192

2011-04-18 Thread Peter Dietz
There is some related work in https://jira.duraspace.org/browse/DS-749


Peter Dietz



On Mon, Apr 18, 2011 at 11:58 AM, Pottinger, Hardy J. 
pottinge...@umsystem.edu wrote:

 Hi, thanks, Peter, this helps. I think it's highly likely my users will ask
 me to implement the functionality you describe, but I'd like to do so in
 such  a way that it won't conflict with ongoing work in this regard. Do you
 know of anyone working to revise the bitstream table, or implement the
 interface you describe a need for?

 --Hardy

 From: Peter Dietz pdiet...@gmail.commailto:pdiet...@gmail.com
 Date: Sun, 17 Apr 2011 08:39:35 -0500
 To: Hardy Pottinger pottinge...@umsystem.edumailto:
 pottinge...@umsystem.edu
 Subject: Re: [Dspace-devel] DS-192


 Hi Hardy,

 Prior to the patch, bitstreams would be listed in an arbitrary order,
 usually database specific and relating to the last time the record for the
 bitstream was modified. Locally we wanted some controll over this, and so
 did members of the community, so it got committed. You can sort according to
 seqID, title, or whatever is in the bitstream table.

 I agree that this is not ideal, a seperate weight (heavy things sink) or
 display_position column in db would be needed. Additionally the UI's would
 need some editing abilities, such as drag and drop reorder.

 On Apr 15, 2011 6:49 PM, Pottinger, Hardy J. pottinge...@umsystem.edu
 mailto:pottinge...@umsystem.edu wrote:
  Hi, I'm writing because some of our folks are interested in taking
  advantage of the bitstream ordering capability that was made possible
 with
  DS-192. The discussion attached to DS-192 sounds a bit worrisome, and
  we're concerned about the implications of using sequence_id to control
  bitstream order. Can someone go over the pros/cons of using sequence_id
  for this purpose?
 
  Here's a link to DS-192 in case you need it:
  https://jira.duraspace.org/browse/DS-192
 
  Thanks in advance for whatever guidance you can provide, it is much
  appreciated.
 
  --Hardy
 
 
 
 
 --
  Benefiting from Server Virtualization: Beyond Initial Workload
  Consolidation -- Increasing the use of server virtualization is a top
  priority.Virtualization can reduce costs, simplify management, and
 improve
  application availability and disaster protection. Learn more about
 boosting
  the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
  ___
  Dspace-devel mailing list
  dspace-de...@lists.sourceforge.netmailto:
 dspace-de...@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-devel

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] How to include bitstream in RSS

2011-04-18 Thread Alvaro Sandoval
Hi all:

I would like to include bitstream URLs along with item metadata in the 
RSS XML. Is it possible?
Thanks in advance.

-- 
Álvaro Sandoval Pizarro

BCN, Biblioteca del Congreso Nacional de Chile
Ingeniería y Desarrollo
Fono (5632) 226 3981

http://www.bcn.cl/


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] File count

2011-04-18 Thread Paul Go
We are trying to get a count of all of the files in our Dspace instance.
 Not just the number of submissions since each can hold multiple files.  Is
there a simple way to do this?

Thank you in advance.

Paul Go

Systems Librarian /
Library Technology Manager
Paul V. Galvin Library
35 West 33rd Street
Chicago, IL  60616
312.567.7997
p...@iit.edu
--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-general] File count

2011-04-18 Thread Peter Dietz
Hi Paul,

I'm somewhat working on usage visualization as well, and have used some
Google Charts to display our repository growth:
[image: dspace-statistics.png]
https://picasaweb.google.com/pdietz84/OSULibrariesDSpaceDesigns#5572201645324819106

The two queries that I'm using to do this is an aggregate cumulate number of
bitstreams (in the Original bundle, as we don't care about licenses or
thumbnails), and then a super-query that wraps around that to give me a
monthly breakdown.

For starters, here are the SQL queries I consider to be very useful. I don't
claim full credit for the monthly breakdown, someone else in the community
created it.
SELECT
  *
FROM
  public.bitstream,
  public.bundle2bitstream,
  public.bundle,
  public.item,
  public.item2bundle,
  public.metadatavalue
WHERE
  bundle2bitstream.bitstream_id = bitstream.bitstream_id AND
  bundle.bundle_id = bundle2bitstream.bundle_id AND
  item.item_id = item2bundle.item_id AND
  item2bundle.bundle_id = bundle.bundle_id AND
  metadatavalue.item_id = item.item_id AND
  bundle.name = 'ORIGINAL' AND
  item.in_archive = TRUE AND
  metadatavalue.metadata_field_id = 12;



And then to get a monthly breakdown of this data:

SELECT to_char(date_trunc('month', t1.ts), '-MM') AS month, count(*)
FROM
(
SELECT
  to_timestamp(metadatavalue.text_value, '-MM-DD') AS ts
 FROM
  public.bitstream,
  public.bundle2bitstream,
   public.bundle,
  public.item,
  public.item2bundle,
   public.metadatavalue
WHERE
  bundle2bitstream.bitstream_id = bitstream.bitstream_id AND
   bundle.bundle_id = bundle2bitstream.bundle_id AND
  item.item_id = item2bundle.item_id AND
  item2bundle.bundle_id = bundle.bundle_id AND
   metadatavalue.item_id = item.item_id AND
  bundle.name = 'ORIGINAL' AND
  item.in_archive = TRUE AND
   metadatavalue.metadata_field_id = 12
) t1
GROUP BY date_trunc('month', t1.ts)
order by month desc;

https://picasaweb.google.com/pdietz84/OSULibrariesDSpaceDesigns#5572201645324819106
Peter Dietz



On Mon, Apr 18, 2011 at 1:29 PM, Paul Go pgo...@gmail.com wrote:


 We are trying to get a count of all of the files in our Dspace instance.
  Not just the number of submissions since each can hold multiple files.  Is
 there a simple way to do this?

 Thank you in advance.

 Paul Go

 Systems Librarian /
 Library Technology Manager
 Paul V. Galvin Library
 35 West 33rd Street
 Chicago, IL  60616
 312.567.7997
 p...@iit.edu



 --
 Benefiting from Server Virtualization: Beyond Initial Workload
 Consolidation -- Increasing the use of server virtualization is a top
 priority.Virtualization can reduce costs, simplify management, and improve
 application availability and disaster protection. Learn more about boosting
 the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
 ___
 Dspace-general mailing list
 dspace-gene...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-general


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] HTTP Status 500 error

2011-04-18 Thread Jen Cwiok
Hello,

I am receiving the following error when I got to our DSpace home page.  I've 
restarted DSpace and all DSpace related processes, which fixes the issue 
temporarily.  Does anyone know how to fix?

Best, Jen
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException: GC overhead limit exceeded

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.index_jsp._jspService(index_jsp.java:110)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.lang.OutOfMemoryError: GC overhead limit exceeded

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.25 logs.


Jen Cwiok
Digital Projects Manager
Department of Library Services
American Museum of Natural History
79th Street and Central Park West
New York, NY 10024-5192
212.769.5644
library.amnh.org



--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] question about item indexing.

2011-04-18 Thread Blanco, Jose
Thank you again Peter for guiding me through this.  This approach is a bit more 
complicated but makes good sense.  Now, my difficulty is in creating this 
filter.  I gave it a try and did not get very far.  This is how I’m approaching 
it:  I need to create a filter that overrides the behavior of the two methods 
in Filter:

public BitSet bits(IndexReader reader) throws IOException
AND
public DocIdSet getDocIdSet(IndexReader reader) throws IOException

Now, I don’t know what to do with IndexReader.  Somehow I need to find out if 
the item being indexed is an authorize item, kind of like I did in the jspui 
interface:

if (AuthorizeManager.authorizeActionBoolean(context, item, 
Constants.READ))

I don’t see how to put these two ideas together.   How can I extract item_id 
from IndexReader to create the object Item to pass on to the AuthorizeManager 
object?

Thank you!
Jose

From: Peter Dietz [mailto:pdiet...@gmail.com]
Sent: Monday, April 18, 2011 11:22 AM
To: Blanco, Jose
Cc: dspace-tech
Subject: Re: [Dspace-tech] question about item indexing.

Hi Jose,

The flow for when a search is performed is that a bunch of default parameters, 
along with whatever the user submits, get sent to the search result processor. 
The part you have customized in [jspui-api]/SimpleSearchServlet to weed out 
restricted items once the results comeback is what gives you the less than 20 
results. You could try another attempt at fudging things to atleast get 20 
hits for the first page of search results, and perhaps change one of the 
default parameters to make the search request search for 100 items, and then 
have your filter weed out the ones that can't be shown, however this gets 
messy, as Page2 will need to know the offset, which isn't 0 or 20, but 
20+number-user-was-able-to-view, which is messy.

So, to accomplish your task, you'll likely have to get one-level deeper into 
the matrix, of DSpace code, and mess with the dspace-api, namely, 
DSQueryhttps://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/search/DSQuery.java#L126,
 and have your UI (SimpleSearchServlet) pass another parameter to the query 
such as a boolean onlyAuthorizedItems=true. In DSQuery, you'll need to 
intercept the request when it has a true for onlyAuthorizedItems, and add a 
Lucene Filter 
http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Filter.html 
that restricts to items with proper dspace permissions. Then have all the 
places where it performs the Lucene Search 
http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Searcher.html#search(org.apache.lucene.search.Query,
 org.apache.lucene.search.Filter, 
org.apache.lucene.search.Sort)http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Searcher.html#search(org.apache.lucene.search.Query,%20org.apache.lucene.search.Filter,%20org.apache.lucene.search.Sort)
 add the filter. If your filter is null, then it ignores the filter, otherwise 
it will add the filter, and weed out the unviewable hits.

Its heavier lifting than the jspui-api changes, but still within reach.


Peter Dietz


On Fri, Apr 15, 2011 at 5:13 PM, Blanco, Jose 
blan...@umich.edumailto:blan...@umich.edu wrote:
Peter, thank you for responding to my question.  I put in the filtering you 
described, and voila, the restricted items are not showing up, but the paging 
is all wrong as you predicted would happen.  I have been trying to add some 
code that can iterate through the list of returned items but I don’t think that 
the entire list is available.  If I’m understanding the code correctly, when 
someone performs a search ( and say dspace is configured to only return 20 
items ), then lucene only returns the 20 items at a time.  Is that correct?  
Below is the code that I would like to put in SimpleSearchServlet.java to 
compute the actual total and then set the total in qResults.  I think if I can 
do that, it will all work:

 int TotalcollCount = 0;
 int TotalcommCount = 0;
 int TotalitemCount = 0;

for (int i = 0; i  qResults.getHitCount(); i++)
{
Integer myType = qResults.getHitTypes().get(i);// This is where I run 
into problems.  It looks like qResults only has 20 at a time until the last page

// So this errors out after it tries to grab more than 
20

// add the handle to the appropriate lists
switch (myType.intValue())
{
case Constants.ITEM:
Item item = Item.find(context, qResults.getHitIds().get(i));  // Of 
course this will not work either because there are only 20 in qResults
if (AuthorizeManager.authorizeActionBoolean(context, item, 
Constants.READ))
{
TotalitemCount++;
   }
break;

case Constants.COLLECTION:
TotalcollCount++;
break;

case Constants.COMMUNITY:
TotalcommCount++;
break;
}
}

int TotalCount = TotalitemCount 

[Dspace-tech] itemimport

2011-04-18 Thread Blanco, Jose
I was using item import and noticed that accession and available date are 
duplicated.   In looking at the code, this seems to have to do with the embargo 
logic.  None of the items I was itemimporting were embargoed.  I'm using 
version 1.7, is this a bug that was corrected for 1.7.1?  I did not see it in 
the list of bug fixes for 1.7.1.

-Jose

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] HTTP Status 500 error

2011-04-18 Thread Peter Dietz
Since it looks like your system is low on memory, it could be due to an
increase in traffic, a memory leak (which something like LambdaProbe could
help you detect), a misconfiguration, or just overall memory usage and
exhaustion. If there are spare resources on the server, you could try to
increase the amount of memory dedicated to tomcat/java through java_opts or
tomcat configuration. You could also try to bump up the amount of memory
allocated to the server, either physically adding memory chips, or upping
the allocation to the virtual machine. Also, another option would be to
disabled unused features that may be consuming memory. If you only use jspui
and solr, then you could configure tomcat to not deploy xmlui, lni, sword,
oai, etc.

Also, another note is that JSPUI consumes less memory than xmlui. I'm not
sure which ui you're running.

The advice I've given is more-or-less tips on what to do when you're low on
memory, but aren't specific to the problem/exception of errors during
garbage collection. If you're using 1.6.0 or 1.6.1, you could be running
into solr problems, which are usually manifested in a different error, but
you can always take a look at some of the solr performance fixes:
http://atmire.com/statistics_performance.php

Peter Dietz



On Mon, Apr 18, 2011 at 3:00 PM, Mark H. Wood mw...@iupui.edu wrote:

 It looks to me like it's running very low on memory.  The message
 seems to mean that the JRE is spending too much time
 garbage-collecting.  You might want to install a resource monitor in
 your servlet container and watch how memory management is behaving --
 I use LambdaProbe but there are others.

 --
 Mark H. Wood, Lead System Programmer   mw...@iupui.edu
 Asking whether markets are efficient is like asking whether people are
 smart.


 --
 Benefiting from Server Virtualization: Beyond Initial Workload
 Consolidation -- Increasing the use of server virtualization is a top
 priority.Virtualization can reduce costs, simplify management, and improve
 application availability and disaster protection. Learn more about boosting
 the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
 ___
 Dspace-devel mailing list
 dspace-de...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-devel


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech