Hi Mark, Folks, Having been working fine for some time, a new installation that I've done of a modified DSpace 1.8 is exhibiting the same problem in the same way as before (see below). It is returning null on
new DSpace().getServiceManager().getServiceByName(userSelectionActionID, UserSelectionActionConfig.class); but this time when I checked the dspace.dir in the xmlui web.xml file, it was set correctly. I've interrogated the service manager during execution, and it seems to have picked up the services from [dspace]/config/spring/xmlui/workflow-actions-xmlui.xml but not from [dspace]/config/spring/api/workflow-actions.xml (obtained by running getServiceNames() on the service manager). Anything else along the way that could cause this that I should check? Cheers, Richard On Sun, Sep 16, 2012 at 11:52 PM, Mark Diggory <[email protected]> wrote: > Hey Richard, > > Make sure your setting dspace.dir context param in your web.xml properly. > > On Sep 16, 2012 8:52 AM, "Richard Jones" <[email protected]> wrote: >> >> Hi Folks, >> >> I'm toying with the configurable workflow system, and am having some >> issues getting it to load the implementation classes from the >> workflow-actions.xml spring configuration. >> >> I've managed to get the workflow enabled and integrated into my DSpace >> extension that I'm working on, but when I ask it to load the workflow, it >> bottoms out with an NPE. This is ultimately due to the >> UserSelectionActionConfig implementation being null. This class is loaded >> by a line which looks like the following: >> >> new DSpace().getServiceManager().getServiceByName(userSelectionActionID, >> UserSelectionActionConfig.class); >> >> Here, userSelectionActionID = "claimaction", and I'm currently only using >> the default workflow.xml, so the id is definitely correct. I've run this >> line in debug, and get null from it, so I asked the service manager to give >> me all implementations of UserSelectionActionConfig, of which there are 0. >> I then asked the service manager for all its service names, and none of the >> workflow services are there. This suggests that the workflow-actions.xml >> spring config file in [dspace]/config/spring/api isn't being loaded or >> parsed correctly (I've started and stopped tomcat a few times just to try to >> encourage the service manager to do it). >> >> I'm not knowledgeable at all about spring, so perhaps I'm missing >> something obvious? Any tips? >> >> Cheers, >> >> Richard >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://ad.doubleclick.net/clk;258768047;13503038;j? >> http://info.appdynamics.com/FreeJavaPerformanceDownload.html >> _______________________________________________ >> Dspace-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/dspace-devel >> > ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel
