Dear community,
I've implemented an external PID service for DSpace 3.0 and managed to
autowire it in place of the
org.dspace.identifier.HandleIdentifierProvider using the Spring framework.
Now I want to modify this class a bit and make it read certain
configurations from the dspace.cfg, using the
org.dspace.core.ConfigurationManager and its getProperty() method. Yet
this does not work. Compiling works fine but Tomcat can't open the
XMLUI. This is one snippet from the localhost log file (the rest being
Spring errors telling me that the bean cannot be loaded, but I presume
this all falls back to the following lines):
Caused by: java.lang.IllegalStateException: Cannot find dspace.cfg
at
org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:918)
at
org.dspace.core.ConfigurationManager.getMutableProperties(ConfigurationManager.java:130)
at
org.dspace.core.ConfigurationManager.getProperty(ConfigurationManager.java:175)
at
de.mannheim.ids.pid.dspace.IDSIdentifierProvider.<clinit>(IDSIdentifierProvider.java:65)
... 46 more
Any ideas? Note that everything works fine if I do not use the
ConfigurationManager but hard-code all I need.
--
Joachim Bingel
Institut für Deutsche Sprache, Zentrale Forschung
R5, 6-13, 68161 Mannheim
+49 - (0)621-1581-456 | http://www.ids-mannheim.de
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette