Re: [Dspace-tech] HandleManager ClassNotFoundException -- updating and xmlui
On Tue, Aug 05, 2008 at 09:05:19AM +0100, James Rutherford wrote: > On Mon, Aug 04, 2008 at 05:53:40PM +0000, Gabriel Farrell wrote: > > I'm updating to 1.5 from 1.4.2 on my dev box. At this point, my xmlui > > says: > > > > java.lang.ClassNotFoundException: org.dspace.uri.handle.HandleManager > > Are you sure you upgraded to 1.5? That class is in org.dspace.handle in > the most recent release. In trunk it has moved to org.dspace.uri.handle. As Tim kindly helped me realize in the other thread, I was running trunk rather than 1.5. I've made it a little further in the install now with branches/dspace-1_5_x. > > This being a dev box, I'd rather not bother setting up the handle server > > for now. Is there a way to make DSpace not bother with it? > > Out of the box, you'll just have a dummy prefix that won't require a > handle server to be running in order for DSpace to work. Good to know, thanks. Gabriel - 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=100&url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Tables not dropped on database upgrade
On Mon, Aug 04, 2008 at 01:46:26PM -0500, Tim Donohue wrote: > Where did you get your copy of 1.5 (download from Sourceforge, SVN, etc)? SVN trunk. I see that the same file in branches/dspace-1_5_x matches your example below. Should I be running off of that branch? If so, http://wiki.dspace.org/index.php/Building_DSpace_From_Source should be changed. > It looks like something's wrong with your copy. In my 1.5, > /dspace/etc/database_schema_14-15.sql looks like this: > > lines 97-101: > > DROP TABLE ItemsByAuthor CASCADE; > DROP TABLE ItemsByTitle CASCADE; > DROP TABLE ItemsByDate CASCADE; > DROP TABLE ItemsByDateAccessioned CASCADE; > DROP TABLE ItemsBySubject CASCADE; > > You are right that the "CONSTRAINTS" shouldn't be there...I'm just > confused as to how they got there in your copy of 1.5. > > - Tim - 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=100&url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Tables not dropped on database upgrade
Upgrading from 1.4.2 to 1.5, I notice errors like the following when I run dspace/etc/database_schema_14-15.sql: psql:dspace/etc/database_schema_14-15.sql:98: ERROR: syntax error at or near "CONSTRAINTS" at character 34 The line the error refers to reads: DROP TABLE ItemsByAuthor CASCADE CONSTRAINTS; It appears that the use of "CONSTRAINTS" on a DROP TABLE is Oracle- specific. Those tables that should be dropped remain in the database unless "CONSTRAINTS" is removed from those queries. Gabriel - 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=100&url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] HandleManager ClassNotFoundException -- updating and xmlui
I'm updating to 1.5 from 1.4.2 on my dev box. At this point, my xmlui says: java.lang.ClassNotFoundException: org.dspace.uri.handle.HandleManager This being a dev box, I'd rather not bother setting up the handle server for now. Is there a way to make DSpace not bother with it? Gabriel - 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=100&url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] RES: filter-media error: bouncycastle
On Mon, 2007-01-29 at 17:07 -0200, Afonso Comba de Araujo Neto wrote: > Hi Gabriel, > > The email you saw was mine. After that I did some research on the > subject and could solve it for my case at least. The fact here is that > DSpace currently doesn't support indexing protected PDF documents. I > think the main issue is about how to manage and retrieve the password, > which sometimes the person submitting the file doesn't even have. > Theoretically you do need the password used to protect the PDF to be > able to extract the text from it. > > The error message you saw is simply from the missing bouncycastle jar > library, which is corrected by downloading the jarfile from > http://www.bouncycastle.org/latest_releases.html (bcprov and bcmail). > Another issue is that the current version of PDFBox (0.7.3) actually has > a bug that doesn't allow any "unprotetion". I warned the author and > version 0.7.4 (which is still in development) has this fixed, so you'll > need to get a nightly build of PDFBox jar library from here > http://www.pdfbox.org/dist/. > > To actually allow the indexing you'll have to dive a little into the > PDFBox API, but it's pretty easy, needing a minor change of > PDFFilter.java class. The only thing I can't help you is how you'll > obtain the password. In my case I can deduce it from the metadata of the > item, so everything runs smoothly. I suppose it could be a fixed > password for all files, which would solve everything, but with "less" > security (which is also debatable, as if protecting a PDF does add any > security at all. We think it _discourages_ copy and paste, so it is > worth the trouble.) but that highly depends on how the files are > generated. > > Any more questions you can mail me directly. > > Regards, > Afonso Araujo Neto > > Afonso, thanks for the reply. We don't have a lot of encrypted PDFs, so I just did what was necessary to get filter-media running again: 1. Downloaded bcprov-jdk15-135.jar and bcmail-jdk15-135.jar from http://bouncycastle.org/latest_releases.html and dropped them into /usr/local/dspace/lib/ 2. Recompiled DSpace Now /dspace/bin/filter-media runs without a hitch. Should these jar files be added to the DSpace 1.4.2 release? Or at least a mention in the documentation? Gabe > > > -Mensagem original- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Em nome de Gabriel > Farrell > Enviada em: segunda-feira, 29 de janeiro de 2007 15:55 > Para: dspace-tech@lists.sourceforge.net > Assunto: [Dspace-tech] filter-media error: bouncycastle > > On running /dspace/bin/filter-media, I get the following error: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/bouncycastle/jce/provider/BouncyCastleProvider > at > org.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:905) > ... > > Since Bouncy Castle [1] is a crypto library I'm assuming pdfbox is > trying to use it to > read protected documents. Searching the lists, I found one post [2] > that suggested > passwords would be needed for Bouncy Castle to work. Is there a system > in place for > this? Also, should Bouncy Castle get a mention in the requirements > section of the > install docs? > > Gabe > > [1] http://bouncycastle.org/ > [2] http://sourceforge.net/mailarchive/message.php?msg_id=37612154 > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] filter-media error: bouncycastle
On running /dspace/bin/filter-media, I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider at org.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:905) ... Since Bouncy Castle [1] is a crypto library I'm assuming pdfbox is trying to use it to read protected documents. Searching the lists, I found one post [2] that suggested passwords would be needed for Bouncy Castle to work. Is there a system in place for this? Also, should Bouncy Castle get a mention in the requirements section of the install docs? Gabe [1] http://bouncycastle.org/ [2] http://sourceforge.net/mailarchive/message.php?msg_id=37612154 -- Gabriel Farrell Library Systems Developer Hagerty Library Drexel University [EMAIL PROTECTED] +1 215 895 1871 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech