Announcement Announcement Module
Collapse
No announcement yet.
getting "An element with the identifier xxx must appear in document" exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • getting "An element with the identifier xxx must appear in document" exception

    Hi all,

    I got a quite strange problem while initializing multiple spring context,the exception "An element
    with the identifier...must appear in the document" occurred when I deployed the web project to resin 3 (in-place), but when I deployed this project to resin 3, it was working fine!, could any people can help me on this? Thx a lot!
    P.S. since the "<ref local='xxx'>" is working fine in resin 3, and there are a lot of <ref local> in my project, so I don't want to change them to <ref bean>.
    Even I compared all the files in folder "server/webapps" and "proj/WebContent", they are exactly the same.

    workFlowContext.xml

    <bean id="workFlowContext" class="com.yan.workflow.WorkFlowContext">
    <property name="workFlowDbSessionFactory" ref="workFlowDbSessionFactory" />
    </bean>

    SpringContext.xml
    <bean id="subscrServiceTarget" class="com.yan.serviceimp.flow.archive.Subscrition ServiceImp">
    <property name="subscrDao">
    <ref local="subscrDao"/>
    </property>
    <property name="workFlowContext">
    <ref local="workFlowContext"/>
    </property>
    </bean>
Working...
X