Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
URGENT: Integration with Spring: <SAXException: "type" with value "spring"> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 02:33 AM.
Working...
X