[Dspace-tech] Dspace and Open JDK

2008-09-30 Thread mahesh mahesh
Hi,

I am new to this .
Can i compile dspace with open jdk package ?

Thanks

Mahesh
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Dspace and Open JDK

2008-09-30 Thread Graham Triggs
Hi,

I don't believe that anyone has tried this, however I don't see any 
reason why this shouldn't work.

G

mahesh mahesh wrote:
 Hi,

 I am new to this .
 Can i compile dspace with open jdk package ?

 Thanks

 Mahesh


 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/


 

 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech


 
 
This e-mail is confidential and should not be used by anyone who is not the 
original intended recipient. BioMed Central Limited does not accept liability 
for any statements made which are clearly the sender's own and not expressly 
made on behalf of BioMed Central Limited. No contracts may be concluded on 
behalf of BioMed Central Limited by means of e-mail communication. BioMed 
Central Limited Registered in England and Wales with registered number 3680030 
Registered Office Middlesex House, 34-42 Cleveland Street, London W1T 4LB
This email has been scanned by Postini.
For more information please visit http://www.postini.com


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] adding source java to modules

2008-09-30 Thread Jesus Martin
Hi, I've installed DSpace 1.5.1 successfully. Now, I'm trying to change 
and add source .java files.

To do this I've read this link:
http://wiki.dspace.org/index.php/BuildCookbook

and I've read a similar message from the list:
http://sourceforge.net/mailarchive/message.php?msg_id=48066B8C.8060906%40hulmail.harvard.edu

In fact, I have two problems:

- First, I've changed the class ItemImport.java. This class is in 
dspace-api, but not in a module (sword, jspui, xmlui, oai), so I don't 
have a directory in modules to put a new version of this class. So how 
can I do this change in the modules directory of dspace?

- Secondly, I've finally changed the ItemImport.java inside 
dspace-1.5.1-src-release/dspace-api directory. In this change, I need 
another class which I have in another package. Let me to show you:

ItemImport.java:

import new.newpack.NewClass;

NewClass.execute


To do this I've created the hierarchical needed directories:
dspace-1.5.1-src-release/dspace/modules/xmlui/src/main/java/new/newpack/
and I put my NewClass inside.

Maven compile this NewClass well but can't compile ItemImport.
Without changing dspace-1.5.1-src-release/dspace-api/pom.xml I have this 
error:

/dades/src/dspace-1.5.1-src-release/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java:[96,21]
 
package new.newpack does not exist
/dades/src/dspace-1.5.1-src-release/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java:[664,29]
 
cannot find symbol

and adding to the pom.xml this lines:
   dependency
groupIdnew/groupId
artifactIdnewpack/artifactId
/dependency

I have this problems:

Validation Messages:[0]  'dependencies.dependency.version' is 
missing for new:newpack
Reason: Failed to validate POM for project org.dspace:dspace-api at 
/dades/src/dspace-1.5.1-src-release/dspace-api/pom.xml

Could you help to solve this?

Thanks in advance,

Jesús

-- 

..
 __
/ /  Jesús Martín García
  C E / S / C A  Tècnic en Sistemes
  /_/Centre de Supercomputació de Catalunya

  Gran Capità 2-4 (Edifici Nexus)  08034 Barcelona
  T. 93 205 6464  F.  93 205 6979  [EMAIL PROTECTED]
.. 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] FW: Java heap space error when trying to update a Collection

2008-09-30 Thread Elliot Metsger

We've noticed issues with heap size as well, specifically when using the
wildcard policy tool, the media filter manager, and some in-house tools that
iterate over dspace objects using a single Context.

When dspace objects like Item or Bitstream are instantiated, they place a
reference to itself in a hash map attached to the context.  So over time
that map will get large.  We modified the tools to clear the context cache
when they were done operating on the dspace object.

IIRC, methods to manage the cache weren't exposed until DSpace 1.5.  I'm not
sure if you are seeing the same issue or not, but this might be another
thing to look at.

HTH,
Elliot


Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] wrote:
 
  From: François Parmentier [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 29, 2008 3:53 AM
 To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
 Subject: Re: [Dspace-tech] Java heap space error when trying to update a
 Collection
 
  
 
 Unfortunately, I agree with Susan.
 We have a 300K items collection that we cannot upgrade (only changing the
 description is not possible).
 It happens only on THAT collection (and not on the other ones in the same
 DSpace 1.4.2).
 I did not look far inside, but it seems that DSpace loads all the
 documents of the collection to be updated during the update!
 
 I'm not on that problem right now.
 --
 François PARMENTIER / INIST-CNRS
 OpenSIGLE
 
 On Fri, Sep 26, 2008 at 11:13 PM, Thornton, Susan M. (LARC-B702)[NCI
 INFORMATION SYSTEMS] [EMAIL PROTECTED] wrote:
 
 Which memory settings might be too low?  
 
  
 
 I'm thinking it has to be related to the increased number of records in
 our database since this is the first time I've ever seen the error and
 because it doesn't happen in our test instance (where our source code
 mirrors our production system).  I can't imagine though, what could be
 happening in edit-communities where all we are trying to do is update one
 row in the collection table??
 
  
 
 
 
 From: Mark Diggory [mailto:[EMAIL PROTECTED] On Behalf Of Diggory Mark
 Sent: Friday, September 26, 2008 5:09 PM
 To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
 Cc: dspace-tech@lists.sourceforge.net; Smail, James W. (LARC-B702)[NCI
 INFORMATION SYSTEMS]
 Subject: Re: [Dspace-tech] Java heap space error when trying to update a
 Collection
 
  
 
 This can be caused by something else happening on the server. Basically
 your instance has used up its JVM heap space and any new calls into the
 system results in an OutOf Memory error.  Of you can restart and try the
 task again, you may find that the issue is gone, if its still there, then
 you have an issue that being cause by your request more specifically.
 Monitor/Search your dspace logs and see if you have more occuarnces of
 this than this one case. It may either mean:
 
  
 
 1.) your memory settings are too low.
 
  
 
 2.) something is causing a memory leak, i.e. not releasing its resources
 or falling into infinite loops.
 
  
 
 -Mark
 
  
 
 On Sep 26, 2008, at 1:54 PM, Thornton, Susan M. (LARC-B702)[NCI
 INFORMATION SYSTEMS] wrote:
 
  
 
 I am getting an error while trying to update a Collection (collection name
 and description) - see below from dspace.log.  This is the first time I've
 seen this error.  The strange thing is that it doesn't happen in our Test
 instance - but our Test instance only has 101 Items in it.  We've recently
 been adding lots of new items to our repository and our Item count is now
 at 90,490.  This is kind of scary, since we have thousands and thousands
 more items we are planning on adding to DSpace in the next few months.
 
 We are currently running 1.4.2 and are planning to implement 1.5 soon.
 
 Can anyone help with this error?
 
 Thanks,
 
 Sue
 
  
 
  
 
 2008-09-26 16:40:21,210 INFO  org.dspace.eperson.PasswordAuthentication @
 anonymous:session_id=3DF9C128D08B43905296703AB6278699:ip_addr=198.119.152.109:authenticate:attempting
 password auth of [EMAIL PROTECTED]
 
 2008-09-26 16:40:21,240 INFO  org.dspace.eperson.PasswordAuthentication
 @[EMAIL 
 PROTECTED]:session_id=3DF9C128D08B43905296703AB6278699:ip_addr=198.119.152.109:authenticate:type=PasswordAuthentication
 
 2008-09-26 16:40:21,270 INFO  org.dspace.app.webui.servlet.PasswordServlet
 @[EMAIL 
 PROTECTED]:session_id=3DF9C128D08B43905296703AB6278699:ip_addr=198.119.152.109:login:type=explicit
 
 2008-09-26 16:40:21,288 INFO  org.dspace.app.webui.servlet.MyDSpaceServlet
 @[EMAIL 
 PROTECTED]:session_id=3DF9C128D08B43905296703AB6278699:ip_addr=198.119.152.109:view_mydspace:
 
 2008-09-26 16:40:24,141 INFO 
 org.dspace.app.webui.servlet.CommunityListServlet
 @[EMAIL 
 PROTECTED]:session_id=3DF9C128D08B43905296703AB6278699:ip_addr=198.119.152.109:view_community_list:
 
 2008-09-26 16:40:28,218 INFO  org.dspace.app.webui.servlet.DSpaceServlet
 @[EMAIL 
 

Re: [Dspace-tech] Need help: Stackable authentication and XMLUI

2008-09-30 Thread Mark Diggory
Randall, It should work the same way. I'm unsure why you are loosing  
the query detail from your return response.  I think that we should  
ask Scott Philips if he has any opinion on this subject.

Heres one possibility to explore:

The AuthenticationUtil.resumeRequest method may be returning an older  
original request for the authenticator because it is only checking  
the path and not the queryof the URL.

I would pepper this method with some logging or trace it with a  
debugger and see if you are falling into it.

On the note of debugging it a lot easier to trace through the  
executing code using the Eclipse debugger attached to your tomcat  
instance, than it it to alter the code with debugging lines and  
recompiling, I would recommend utilizing that tool ti figure out  
where the failure is happening.

http://andrej.racchvs.com/archives/2003/10/23/using-eclipse-to-debug- 
your-tomcat-web-application/
http://www.eclipsezone.com/eclipse/forums/t53459.html


 /**
  * Check to see if this request should be resumed.
  *
  * @param realHttpRequest The current real request
  * @return Either the current real request or a stored request  
 that was previously interrupted.
  */
 public static HttpServletRequest resumeRequest 
 (HttpServletRequest realHttpRequest)
 {
   // First check to see if there is a resumed request.
   HttpSession session = realHttpRequest.getSession();
   //session.setMaxInactiveInterval(60);
 Object object = session.getAttribute(REQUEST_RESUME);
   
 // Next check to make sure it's the right type of object,
 // there should be no condition where it is not - but always
 // safe to check.
 if (object instanceof RequestInfo)
 {
   RequestInfo interruptedRequest = (RequestInfo) object;

   // Next, check to make sure this real request if for the  
 same url
   // path, if so then resume the previous request.
   String interruptedServletPath =  
 interruptedRequest.getServletPath();
   String realServletPath = realHttpRequest.getServletPath();
   
   if (realServletPath != null 
   realServletPath.equals(interruptedServletPath))
   {
   // Clear the resumed request and send the request back 
 to  
 be resumed.
   session.setAttribute(REQUEST_INTERRUPTED, null);
   session.setAttribute(REQUEST_RESUME, null);

   return interruptedRequest.wrapRequest(realHttpRequest);
   }
 }
   // Otherwise return the real request.
   return realHttpRequest;
 }

-Mark

On Sep 30, 2008, at 10:34 AM, Floyd, Randall Dean wrote:

 Let me try this again, but I'll back up and ask it in a much more
 general way.  Does the XMLUI use the stackable authentication  
 mechanism
 in the same way that the JSPUI does?  I'm going through the code  
 trying
 to follow the flow, and I'm starting to question whether the eperson
 aspect in Manakin is going to call the methods of my authentication
 class in the same way as the JSPUI.  And again, just to be clear, this
 an implicit CAS authentication method that works in my DSpace 1.5.1
 environment using the JSPUI.  It doesn't work in the XMLUI. Details  
 are
 in the original message, but it would really just be helpful if I knew
 whether or not this is going to work at all in the XMLUI, and if not,
 where I can go for clues on how to write a different method.

 Quoting Floyd,  Randall Dean [EMAIL PROTECTED]:

 Hi all,

 I have a custom authentication method that works in DSpace 1.5.1
 JSPUI but does not work in the XMLUI.  Essentially this is a custom
 method that sends a user to a CAS login page and back for further
 validation of the CAS ticket.  The root issue seems to be that I am
 losing essential parameters in the HTTP request, and that is where my
 casticket is supposed to be.  That is, at my institution, the CAS
 server tags the CAS ticket string onto the end of the URL that CAS is
 going to send the browser back to. So, when this works in JSPUI, I go
 to the CAS login server, and when it comes back to DSpace, it will
 always look something like:

 .../dspace/mydspace?casticket=ST-205536...(some long string)

 That 'casticket' parameter is essential for everything that happens
 next in my method in the stack. Without it, I can't check to see
 where I am in the process, and I don't have a ticket ID to validate
 against the CAS server.

 In the XMLUI, I am losing that casticket parameter. The browser goes
 off to the CAS login server, and then comes back to DSpace/XMLUI and
 goes down through the stack methods again.  Problem is, on this
 second time around, I don't have that casticket parameter in the URL,
 even though the CAS server is sticking it onto the end of the return
 URL. It seems as though something at a lower level is replacing the
 URL 

[Dspace-tech] Question regarding handle.jar

2008-09-30 Thread Jason Fowler
Hello all,

I am new to DSpace, and I am trying to get our installation up and running. I 
appreciate your patience in advance.

I am trying to install the new handle.jar, and according to the documentation, 
I need to replace the existing handle.jar in the [dspace-source]/lib directory 
with the new handle.jar. I have downloaded the new one, but I have a problem. I 
have no lib directory in [dspace-source]. I have one in [dspace], but I do not 
have one in [dspace-source]. Is the documentation correct, or is there 
something wrong with my installation? I initially downloaded 
dspace-1.5.1-src-release.tar.gz because I thought that was what I needed. Did I 
download the wrong thing?

Jason Fowler, CA
Archives and Special Collections Librarian
The Southern Baptist Theological Seminary
502-897-4573
[EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] database error dspace 1.5

2008-09-30 Thread Nigel Pegus
Hello,

 

Ive recently installed dspace 1.5 on RHL enterprise v3 update 6. I am
unable to move past the basic install as the system generates an
internal server error.

My dspace log file indicates :

 

2008-09-30 10:21:29,989 WARN  org.dspace.jsp @
anonymous:session_id=444B5F767AF01373ABBDA3109F9FF881:ip_addr=127.0.0.1:
database_error:org.postgresql.util.PSQLException: ERROR: relation
community does not exist

org.postgresql.util.PSQLException: ERROR: relation community does not
exist

   at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu
torImpl.java:1531)

   at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImp
l.java:1313)

   at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:
188)

   at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme
nt.java:452)

   at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb
c2Statement.java:354)

   at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2St
atement.java:258)

   at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegat
ingPreparedStatement.java:93)

   at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegat
ingPreparedStatement.java:93)

   at
org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java
:169)

   at org.dspace.content.Community.findAllTop(Community.java:286)

   at org.apache.jsp.index_jsp._jspService(index_jsp.java:104)

   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:384)

   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)

   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)

   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)

   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:228)

   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.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:2
16)

   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)

   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634)

   at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)

   at java.lang.Thread.run(Thread.java:619)

 

and the postgres log file contains:

 

LOG:  received smart shutdown request

LOG:  shutting down

LOG:  database system is shut down

LOG:  database system was shut down at 2008-09-30 10:19:57 AST

LOG:  checkpoint record is at 0/42D064

LOG:  redo record is at 0/42D064; undo record is at 0/0; shutdown TRUE

LOG:  next transaction ID: 0/606; next OID: 16386

LOG:  next MultiXactId: 1; next MultiXactOffset: 0

LOG:  database system is ready

ERROR:  relation community does not exist

STATEMENT:  SELECT * FROM community WHERE NOT community_id IN (SELECT
child_comm_id FROM community2community) ORDER BY name

 

 

I have tried 

-removing the data folder and recreating it along with the database

-ensure dspace.cfg file includes proper entries

-ensuring postgres.conf listen_address=localhost entry is uncommented 

-pg_hba.conf has dspace entry added

-adding another jdbc driver to lib folder
(/.../dspace-1.5.1-src-release/dspace/target/dspace-1.5.1-build.dir/lib)

 

I am assuming this is some sort of database setup error. Is there
something I have overlooked?

 

Thanks for any input

 

Nigel 

 

 

Nigel Pegus

Systems Unit

The Main Library

The University of the West Indies

6622002x2241

 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Question regarding handle.jar

2008-09-30 Thread Mark Diggory
The current 1.5.1 deployment provides a reference to an existing  
handle.jar which is retrieved from the maven repository and placed  
into the installed dspace/lib and dspace/webapp/*/WEB-INF/lib when  
DSpace is built.

The Maven build process works best when one does not try to alter the  
jars provided in the lib directory.  I recommend reading up on the  
Maven build process via the documentation provided and that found on  
the maven.apache.org website.  There is no lib directory in the  
1.5.1 source tree because it retrieves the dependencies from maven  
directly rather than you downloading them.

If you do truly need to change this jar for a newer version, we had a  
recent conversation on the list about installing jars if you need to  
use something different than what we provide.

http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/ 
msg05386.html

I will ask why are you trying to alter the existing handle.jar? The  
current one we publish into the maven repository (which your build  
has downloaded) should be adequate for DSpace 1.5.1 and the current  
Handle service. Are you encountering problems running the handle  
service?

Cheers,
Mark

On Sep 30, 2008, at 1:31 PM, Jason Fowler wrote:

 Hello all,

 I am new to DSpace, and I am trying to get our installation up and  
 running. I appreciate your patience in advance.

 I am trying to install the new handle.jar, and according to the  
 documentation, I need to replace the existing handle.jar in the  
 [dspace-source]/lib directory with the new handle.jar. I have  
 downloaded the new one, but I have a problem. I have no lib  
 directory in [dspace-source]. I have one in [dspace], but I do not  
 have one in [dspace-source]. Is the documentation correct, or is  
 there something wrong with my installation? I initially downloaded  
 dspace-1.5.1-src-release.tar.gz because I thought that was what I  
 needed. Did I download the wrong thing?

 Jason Fowler, CA
 Archives and Special Collections Librarian
 The Southern Baptist Theological Seminary
 502-897-4573
 [EMAIL PROTECTED]

 -- 
 ---
 This SF.Net email is sponsored by the Moblin Your Move Developer's  
 challenge
 Build the coolest Linux based applications with Moblin SDK  win  
 great prizes
 Grand prize is a trip for two to an Open Source event anywhere in  
 the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

~
Mark R. Diggory
Home Page: http://purl.org/net/mdiggory/homepage
Blog: http://purl.org/net/mdiggory/blog






-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech