Where does OPS look for custom-processors.xml files?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Where does OPS look for custom-processors.xml files?

alan.boshier

Hi

 

Could anyone tell me what rules OPS uses to decide where to look for the config/custom-processors.xml file?

 

I’m having trouble getting it to resolve my custom processor name to a JAR-backed implementation and any tips

or tricks would be most welcome.  Specifically I’m launching an XPL pipleline directly from my Java code, and that

pipeline references a custom processor which I have in a JAR on the classpath; I’m getting an exception of the form

 

oxf:<file path to my .xpl file>, line 34, column 44: Cannot find processor factory with name "{com.esprittechnology.xplatform.services.forms.ops.processors}exporter"

            at org.orbeon.oxf.processor.pipeline.PipelineProcessor.createConfigFromAST(PipelineProcessor.java:211)

            at org.orbeon.oxf.processor.pipeline.PipelineProcessor.readPipelineConfig(PipelineProcessor.java:470)

 

My pipline file looks like this

 

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"

          xmlns:oxf="http://www.orbeon.com/oxf/processors"

          xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors"

          xmlns:fp = "com.esprittechnology.xplatform.services.forms.formsparams.schema.1_0">

 

….

 

    <p:processor name="xplatform:exporter">

 

 

And my custom-processors.xml file looks like this

 

 

<processors xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors">

    <processor name="xplatform:exporter">

        <class name="com.esprittechnology.xplatform.services.forms.ops.processors.ExporterProcessor"/>

    </processor>

</processors>

 

 

I’d be interested to know also whether I can direct OPS to look in more locations
for this file.

 

Thanks

 

Alan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Where does OPS look for custom-processors.xml files?

Stephen Bayliss

OPS looks for custom-processors.xml in the config directory.

 

One thing you could try is calling the custom processor from a pipeline run through OPS directly, rather than through Java, to see if that still gives you an issue

 

Steve

 


From: Alan Boshier [mailto:[hidden email]]
Sent: 30 June 2006 10:21
To: [hidden email]
Subject: [ops-users] Where does OPS look for custom-processors.xml files?

 

Hi

 

Could anyone tell me what rules OPS uses to decide where to look for the config/custom-processors.xml file?

 

I’m having trouble getting it to resolve my custom processor name to a JAR-backed implementation and any tips

or tricks would be most welcome.  Specifically I’m launching an XPL pipleline directly from my Java code, and that

pipeline references a custom processor which I have in a JAR on the classpath; I’m getting an exception of the form

 

oxf:<file path to my .xpl file>, line 34, column 44: Cannot find processor factory with name "{com.esprittechnology.xplatform.services.forms.ops.processors}exporter"

            at org.orbeon.oxf.processor.pipeline.PipelineProcessor.createConfigFromAST(PipelineProcessor.java:211)

            at org.orbeon.oxf.processor.pipeline.PipelineProcessor.readPipelineConfig(PipelineProcessor.java:470)

 

My pipline file looks like this

 

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"

          xmlns:oxf="http://www.orbeon.com/oxf/processors"

          xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors"

          xmlns:fp = "com.esprittechnology.xplatform.services.forms.formsparams.schema.1_0">

 

….

 

    <p:processor name="xplatform:exporter">

 

 

And my custom-processors.xml file looks like this

 

 

<processors xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors">

    <processor name="xplatform:exporter">

        <class name="com.esprittechnology.xplatform.services.forms.ops.processors.ExporterProcessor"/>

    </processor>

</processors>

 

 

I’d be interested to know also whether I can direct OPS to look in more locations
for this file.

 

Thanks

 

Alan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Where does OPS look for custom-processors.xml files?

alan.boshier
In reply to this post by alan.boshier

Hi Stephen

 

> OPS looks for custom-processors.xml in the config directory.

 

Yes -  I probably phrased the question poorly. What I’m trying to understand is where OPS looks for the config directory.

 

I was able to get OPS to resolve (and call) my custom processor when calling InitUtils.runProcessor from a commandline
application, by dint of having a subdirectory called ./config in the directory where I launched the Java VM.

 

Now I’m calling InitUtils.runProcessor from an EJB session bean running under JBOSS, and have created a config
subdirectory under %JBOSS_HOME%\bin, but OPS is not finding it.

 

Thanks

 

Alan

 


From: Stephen Bayliss [mailto:[hidden email]]
Sent: 30 June 2006 15:13
To: [hidden email]
Subject: RE: [ops-users] Where does OPS look for custom-processors.xml files?

 

OPS looks for custom-processors.xml in the config directory.

 

One thing you could try is calling the custom processor from a pipeline run through OPS directly, rather than through Java, to see if that still gives you an issue

 

Steve

 


From: Alan Boshier [mailto:[hidden email]]
Sent: 30 June 2006 10:21
To: [hidden email]
Subject: [ops-users] Where does OPS look for custom-processors.xml files?

 

Hi

 

Could anyone tell me what rules OPS uses to decide where to look for the config/custom-processors.xml file?

 

I’m having trouble getting it to resolve my custom processor name to a JAR-backed implementation and any tips

or tricks would be most welcome.  Specifically I’m launching an XPL pipleline directly from my Java code, and that

pipeline references a custom processor which I have in a JAR on the classpath; I’m getting an exception of the form

 

oxf:<file path to my .xpl file>, line 34, column 44: Cannot find processor factory with name "{com.esprittechnology.xplatform.services.forms.ops.processors}exporter"

            at org.orbeon.oxf.processor.pipeline.PipelineProcessor.createConfigFromAST(PipelineProcessor.java:211)

            at org.orbeon.oxf.processor.pipeline.PipelineProcessor.readPipelineConfig(PipelineProcessor.java:470)

 

My pipline file looks like this

 

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"

          xmlns:oxf="http://www.orbeon.com/oxf/processors"

          xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors"

          xmlns:fp = "com.esprittechnology.xplatform.services.forms.formsparams.schema.1_0">

 

….

 

    <p:processor name="xplatform:exporter">

 

 

And my custom-processors.xml file looks like this

 

 

<processors xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors">

    <processor name="xplatform:exporter">

        <class name="com.esprittechnology.xplatform.services.forms.ops.processors.ExporterProcessor"/>

    </processor>

</processors>

 

 

I’d be interested to know also whether I can direct OPS to look in more locations
for this file.

 

Thanks

 

Alan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Where does OPS look for custom-processors.xml files?

Erik Bruchez
Administrator
Alan,

The XPL engine uses the "oxf:" protocol abstraction to locate
resources through the resource manager.

When you start the XPL engine from the command-line, you have 2
options:

o Selecting a root directory for the resource manger, with the "-r"
   option.

o *Not* selecting a root directory by omitting the option, in which
   case the root of your resources will be the root of your filesystem.

Now the XPL engine loads custom processors from
oxf:/config/custom-processors.xml. So if you do not specify a resource
manager root, you will probably need to have your config directory
under c:/config or /config, which is not convenient.

So try using the "-r" option (you can even use "-r ." I think), and
make sure you have a config directory under the root specified.

Granted, this is not perfect, and maybe it would be a good idea, when
using the command-line, to be able to tell the XPL engine where to
find custom-processors.xml and properties.xml.

-Erik

Alan Boshier wrote:
 > Hi Stephen
 >
 >
 >
 >>  OPS looks for custom-processors.xml in the config directory.
 >
 >
 >
 > Yes -  I probably phrased the question poorly. What I$(Bm (Btrying to
 > understand is where OPS looks for the config directory.
 >
 >
 >
 > I was able to get OPS to resolve (and call) my custom processor when
 > calling InitUtils.runProcessor from a commandline
 > application, by dint of having a subdirectory called ./config in the
 > directory where I launched the Java VM.
 >
 >
 >
 > Now I$(Bm (Bcalling InitUtils.runProcessor from an EJB session bean
running
 > under JBOSS, and have created a config
 > subdirectory under %JBOSS_HOME%\bin, but OPS is not finding it.
 >
 >
 >
 > Thanks
 >
 >
 >
 > Alan
 >
 >
 >
 > ------------------------------------------------------------------------
 >
 > *From:* Stephen Bayliss [mailto:[hidden email]]
 > *Sent:* 30 June 2006 15:13
 > *To:* [hidden email]
 > *Subject:* RE: [ops-users] Where does OPS look for custom-processors.xml
 > files?
 >
 >
 >
 > OPS looks for custom-processors.xml in the config directory.
 >
 >
 >
 > One thing you could try is calling the custom processor from a pipeline
 > run through OPS directly, rather than through Java, to see if that still
 > gives you an issue
 >
 >
 >
 > Steve
 >
 >
 >
 > ------------------------------------------------------------------------
 >
 > *From:* Alan Boshier [mailto:[hidden email]]
 > *Sent:* 30 June 2006 10:21
 > *To:* [hidden email]
 > *Subject:* [ops-users] Where does OPS look for custom-processors.xml
files?
 >
 >
 >
 > Hi
 >
 >
 >
 > Could anyone tell me what rules OPS uses to decide where to look for the
 > config/custom-processors.xml file?
 >
 >
 >
 > I$(Bm (Bhaving trouble getting it to resolve my custom processor
name to a
 > JAR-backed implementation and any tips
 >
 > or tricks would be most welcome.  Specifically I$(Bm (Blaunching an
XPL
 > pipleline directly from my Java code, and that
 >
 > pipeline references a custom processor which I have in a JAR on the
 > classpath; I$(Bm (Bgetting an exception of the form
 >
 >
 >
 > oxf:<file path to my .xpl file>, line 34, column 44: Cannot find
 > processor factory with name
 > "{com.esprittechnology.xplatform.services.forms.ops.processors}exporter"
 >
 >             at
 >
org.orbeon.oxf.processor.pipeline.PipelineProcessor.createConfigFromAST(PipelineProcessor.java:211)
 >
 >             at
 >
org.orbeon.oxf.processor.pipeline.PipelineProcessor.readPipelineConfig(PipelineProcessor.java:470)
 >
 >
 >
 > My pipline file looks like this
 >
 >
 >
 > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
 >
 >           xmlns:oxf="http://www.orbeon.com/oxf/processors"
 >
 >
 >
xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors"
 >
 >           xmlns:fp =
 > "com.esprittechnology.xplatform.services.forms.formsparams.schema.1_0">
 >
 >
 >
 > ,T.
(B>
 >
 >
 >     <p:processor name="xplatform:exporter">
 >
 > ,T
(B>
 >
 >
 >
 >
 > And my custom-processors.xml file looks like this
 >
 >
 >
 >
 >
 > <processors
 >
xmlns:xplatform="com.esprittechnology.xplatform.services.forms.ops.processors">
 >
 >     <processor name="xplatform:exporter">
 >
 >         <class
 >
name="com.esprittechnology.xplatform.services.forms.ops.processors.ExporterProcessor"/>
 >
 >     </processor>
 >
 > </processors>
 >
 >
 >
 >
 >
 > I$(Bd (Bbe interested to know also whether I can direct OPS to look
in more
 > locations
 > for this file.
 >
 >
 >
 > Thanks
 >
 >
 >
 > Alan


--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws