Results 1 to 1 of 1

Thread: URGENT: Integration with Spring: <SAXException: "type" with value "spring">

  1. #1

    Default URGENT: Integration with Spring: <SAXException: "type" with value "spring">

    Hello,

    Please shed the light on the problem:

    what else is needed for OSworkflow (2.8.0) integration with Spring (2.0.8)?
    Integration is done using the accompaning example configs from the osworkflow-2.8.0.zip.
    I am trying to execute:

    <function type="spring">
    <arg name="bean.name">testRunner</arg>
    </function>

    testRunner is declared as:
    <bean id="testRunner" class="com.msr.integrationtest.runner.TestRunner" singleton="false">

    The following exception appears:


    com.opensymphony.workflow.FactoryException: Error in workflow descriptor: file:/C:/projects/ersl/it/target/classes/step-pre.xml: root cause: Attribute "type" with value "spring" must have a value from the list "class jndi local-ejb remote-ejb bsf beanshell ". ( url=file:/C:/projects/ersl/it/target/classes/step-pre.xml line:26 col:41)
    at com.opensymphony.workflow.loader.XMLWorkflowFactor y.loadWorkflow(XMLWorkflowFac tory.java:285)
    at com.opensymphony.workflow.loader.XMLWorkflowFactor y.getWorkflow(XMLWorkflowFact ory.java:70)
    at com.opensymphony.workflow.loader.AbstractWorkflowF actory.getWorkflow(AbstractWo rkflowFactory.java:48)
    at com.opensymphony.workflow.config.DefaultConfigurat ion.getWorkflow(DefaultConfig uration.java:83)
    at com.opensymphony.workflow.AbstractWorkflow.initial ize(AbstractWorkflow.java:595 )
    at com.msr.workflow.MyTest.main(MyTest.java:20)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main (AppMain.java:90)
    Caused by: org.xml.sax.SAXException: Attribute "type" with value "spring" must have a value from the list "class jndi local-ejb remote-ejb bsf beanshell ". ( url=file:/C:/projects/ersl/it/target/classes/step-pre.xml line:26 col:41)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(U nknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBu ilder.java:124)
    at com.opensymphony.workflow.loader.WorkflowLoader.lo ad(WorkflowLoader.java:68)
    at com.opensymphony.workflow.loader.WorkflowLoader.lo ad(WorkflowLoader.java:48)
    at com.opensymphony.workflow.loader.XMLWorkflowFactor y.loadWorkflow(XMLWorkflowFac tory.java:283)
    ... 10 more

    Root cause:
    org.xml.sax.SAXException: Attribute "type" with value "spring" must have a value from the list "class jndi local-ejb remote-ejb bsf beanshell ". ( url=file:/C:/projects/ersl/it/target/classes/step-pre.xml line:26 col:41)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(U nknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBu ilder.java:124)
    at com.opensymphony.workflow.loader.WorkflowLoader.lo ad(WorkflowLoader.java:68)
    at com.opensymphony.workflow.loader.WorkflowLoader.lo ad(WorkflowLoader.java:48)
    at com.opensymphony.workflow.loader.XMLWorkflowFactor y.loadWorkflow(XMLWorkflowFac tory.java:283)
    at com.opensymphony.workflow.loader.XMLWorkflowFactor y.getWorkflow(XMLWorkflowFact ory.java:70)
    at com.opensymphony.workflow.loader.AbstractWorkflowF actory.getWorkflow(AbstractWo rkflowFactory.java:48)


    Thank you
    Last edited by Polina Labinsky; May 26th, 2009 at 02:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •