Hi Anthony,
On 5/26/06, Anthony Bigbee <[EMAIL PROTECTED]> wrote:
I'm not able to execute a java apre agent that is the first participant in a
workflow and hope a couple of diagnostic log statements allow someone to
point out what I'm doing wrong:
2006-05-26 16:24:02,373 [main] WARN
openwfe.org.engine.impl.participants.CompositeParticipantMap
- lookupFactories() no ParticipantMapFactory named 'xmlPmapFactory' found.
Seems like this snippet
---8<---
<service
name="xmlPmapFactory"
class="openwfe.org.engine.impl.participants.XmlParticipantMapFactory"
>
<param>
<param-name>participantMapFile</param-name>
<param-value>etc/engine/participant-map.xml</param-value>
</param>
</service>
--->8---
is missing from your etc/apre/apre-configuration.xml
The participant map configuration has changed from 1.6.x to 1.7.0. Old
configuration should be still usable with the new participant map
system, but it seems that you have a new style configuration but you
just miss that factory configuration pasted here.
2006-05-26 16:26:00,095 [Thread-8] WARN
openwfe.org.engine.expressions.Environment - lookup()
didn't find an env at ( fei 1.7.0b mainEngine/mainEngine
file:/u02/projects/groundtruth/systems/openwfe-1.7.0b/etc/engine/cron.xml
cron_service 1.0 1148675102394 __env__ 0e )
This is a minor warning (I know, the 'minor' doesn't appear), the
engine works around the problem. The warning will vanish hopefully
from further releases.
My python-apre agent is one of the participants in cron.xml as a service
(along with the cron test logger). That is being successfully executing and
it's launching the workflow in which the apre agent is supposed to be the
first sequence participant. Another clue is that an ls -lu (when was the
last time a file was accessed) of the .class file indicates it's not being
read/accessed every time I restart the engine and python-apre.
Well, the python-apre is written in python, the equivalent of '.class'
files for python are '.pyc'...
One specific question: Can an agent class reside in a .jar that's in
./apre-scripts/ (agentPath) or do jars need to be unpacked?
Agents classes must be on the agent classpath. If you want to put them
in apre-scripts/, the jar will need to be unpacked.
I just noticed that when moving from CVS to Subversion the
apre-scripts/build.xml went missing. I just fixed that mistake.
http://svn.sourceforge.net/viewcvs.cgi/openwfe/trunk/openwfe/releases/openwfe/apre-scripts/
It's an ant script for building java agents found within
apre-scripts/java-src/, the java APRE is meant to reload them whenever
there is a fresher version. That also shows the the java APRE's
classpath points to apre-scripts/, not to a particular set of jars
within it.
Best regards,
--
John Mettraux -///- http://jmettraux.openwfe.org
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users