Search code examples
dspace

Why is Dspace still using the old version of a .jar I updated?


I made the localization for the classes ReportGenerator and HTMLReport, which can be found in the dspace-api.jar, so my html reports would be generated in my language, but it's still being generated in english, is there anything else I need to do? ps. I did generate a new jar, replaced the older one for the new localized version, restarted the tomcat and translated the dstat.map too.


Solution

  • In a typical DSpace installation, there are multiple copies of the dspace-api jar file. If I run the following from the [dspace-install] directory, you will see the following:

    find webapps lib -name dspace-api*.jar
    webapps/oai/WEB-INF/lib/dspace-api-5.8.jar
    webapps/oai/WEB-INF/lib/dspace-api-lang-5.0.7.jar
    webapps/rdf/WEB-INF/lib/dspace-api-5.8.jar
    webapps/rdf/WEB-INF/lib/dspace-api-lang-5.0.7.jar
    webapps/jspui/WEB-INF/lib/dspace-api-5.8.jar
    webapps/jspui/WEB-INF/lib/dspace-api-lang-5.0.7.jar
    webapps/swordv2/WEB-INF/lib/dspace-api-5.8.jar
    webapps/swordv2/WEB-INF/lib/dspace-api-lang-5.0.7.jar
    webapps/sword/WEB-INF/lib/dspace-api-5.8.jar
    webapps/sword/WEB-INF/lib/dspace-api-lang-5.0.7.jar
    webapps/xmlui/WEB-INF/lib/dspace-api-5.8.jar
    webapps/xmlui/WEB-INF/lib/dspace-api-lang-5.0.7.jar
    webapps/rest/WEB-INF/lib/dspace-api-5.8.jar
    webapps/rest/WEB-INF/lib/dspace-api-lang-5.0.7.jar
    lib/dspace-api-5.8.jar 
    lib/dspace-api-lang-5.0.7.jar
    

    Have you made your changes in the [dspace-src] directory and then run the maven and ant build processes? That would ensure that your changes make it into all of the correct jar files.