Include custom Avalon components in Cocoon - KrysalisWorkflow
"Olivier Billard" <[email protected]> Mon, 28 Apr 2003 11:01:29 +0200
| Newsgroups | gmane.comp.krysalis.sandbox |
|---|---|
| Message-ID | <[email protected]> |
I repost this mail on this list, because I don't know if the switch with the
new list happend...
Hi all !
I would like to know what is necessary to add an avalon component in Cocoon.
I'm trying to add the "krysalis-sandbox-workflow" from Stephan and Nicola
Ken, without success.
Here is what I've done :
- added custom roles in a file named "WEB-INF/dochelp.roles" :
<file>
<?xml version="1.0"?>
<role-list>
<role name="org.krysalis.workflow.WorkFlowManager"
shorthand="workflow"
default-class="org.krysalis.workflow.manager.DefaultWorkFlowManager"/>
</role-list>
</file>
- changed cocoon.xconf (deprecated?) :
<cocoon version="2.1" user-roles="/WEB-INF/dochelp.roles">
- added this in the cocoon.xconf :
<workflow file="context://WEB-INF/workflow.xconf"
logger="workflow"/> (custom role in dochelp.roles)
- The WorkFlowManager is : Configurable, Composable, Contextualizable,
LogKitManageable, Initializable
- I'm running my cocoon 2.1 in win2k with the build-in Jetty
I'm using this workflow manager in an XSP, like this :
<code>
(...)
workflow = (WorkFlowManager) this.manager.lookup(WorkFlowManager.ROLE);
if (null == workflow) getLogger().debug("[DocHelp] Pas de workflow");
String resource = "data" + File.separator + "di-" + irID + ".xml";
state = workflow.lookup(resource);
if (state == null) getLogger().debug("[DocHelp] state == null");
(...)
</code>
And I've got only the second debug message, with this one in the main Jetty
window :
09:46:15.877 EVENT WARN (2003-04-28) 09:46.15:877 [workflow]
(/view-ir) PoolThread-4/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator [org.krysalis.workflow.WorkFlowMapper]
But who is the component locator ? And the WorkflowMapper don't seem to be
Initializable...
Many thanks in advance !
(I hope I gave enough details...)
--
Olivier
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf