Debashree:
I ran into a similar problem. I had to place the checker into a script that
explicitly invoked the Class Paths and library paths. For some reason, cron
was not picking these up even though I was invoking it under the DSpace userid.
This cropped up after we moved from Solaris to Linux.
George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CULIT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
From: Debashree Pati [dp...@ohiolink.edu]
Sent: Tuesday, November 08, 2011 2:57 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] checker error when run as a cron job
Hi,
When I run checker from the command line, it works fine.
However, when I set it up as a cron job, it logs the following error:
Problem listing checksum results codes: java.lang.ClassNotFoundException:
java.sql.SQLException: java.lang.ClassNotFoundException:
at
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1711)
at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:618)
at
org.dspace.checker.ChecksumResultDAO.listAllCodes(ChecksumResultDAO.java:131)
at org.dspace.checker.ResultsPruner.prune(ResultsPruner.java:258)
at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212)
Anybody has had similar problem? Can someone help explain the cause.
Thanks,
Debashree
OhioLINK
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech