The error message you are seeing is 100% consistent with dspace not being able
to find the correct jars.
There are two main options.
1 They haven't been compiled and copied over to the new build (look for them in
the directories of the new build)
2 The change to add them to the CLASSPATH is not present ('ps auxwww' should
tell you the full classpath that tomcat is using, look for the path you found
in (1))
cheers
stuart
--
I have a new phone number: 04 463 5692
From: Avino, Thomas W. (LARC-B702)[LITES]
Sent: Thursday, 6 November 2014 9:22 a.m.
To: DSpace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Error running custom java scripts in 1.8.2
Ever since we upgraded Dspace 1.7.1 to 1.8.2, none of our custom java scripts
run (these are not overlays). I get the error below.
On our old Dspace, we put custom java code in the
/usr/local/dspace-1.8.2-src-release/dspace-api/src/main/java/org/dspace/local
directory (local was created by us). We never had any issues until the upgrade
to 1.8.2. Is it possible this directory is being ignored during the build?
Any help would be appreciated.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/dspace/app/local/TPSAS2LDR
Caused by: java.lang.ClassNotFoundException: org.dspace.app.local.TPSAS2LDR
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.dspace.app.local.TPSAS2LDR. Program will
exit.
Error 1 in script tpsas2ldr in TPSAS2LDR.java - aborting at Wed 05 Nov 2014 03:1
Thomas W. Avino
[http://t3.gstatic.com/images?q=tbn:ANd9GcRnrGOajbLG51OH18dELWjFdU65XUjF7Rb1nhkW034bbGRqm9BoQU4IlnV-]
NASA Langley Research Center
Bldg 1194 Room 302B
Mail Stop 185
Hampton, VA 23681-2199
Phone: (757) 864-8495
Fax: (757) 864-6649
--
___
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