facebook

Get error on Spring applicationContext.xml [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #221996 Reply

    Greetings and Happy Holidays.

    I have been following Matt Raible’s tutorial on his Equinox application. When using the applicationContext.xml file included, I get the following error: Attribute “abstract” must be declared for element type “bean”.

    This happens in the transaction proxy template block on line 19. I have pasted the file’s contents below.

    Thanks in advance.
    Blaine Mincey
    blaine_mincey@mindspring.com

    ############Start Paste ######################

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE beans PUBLIC “-//SPRING//DTD BEAN//EN”
    http://www.springframework.org/dtd/spring-beans.dtd”&gt;

    <beans>

    <bean id=”propertyConfigurer”
    class=”org.springframework.beans.factory.config.PropertyPlaceholderConfigurer”>
    <property name=”location”>
    <value>classpath:jdbc.properties</value>
    </property>
    </bean>

    <!–
    Transaction template for Managers, from:
    http://blog.exis.com/colin/archives/2004/07/31/concise-transaction-definitions-spring-11/
    –>
    <bean id=”txProxyTemplate” abstract=”true”
    class=”org.springframework.transaction.interceptor.TransactionProxyFactoryBean”>
    <property name=”transactionManager”>
    <ref bean=”transactionManager” />
    </property>
    <property name=”transactionAttributes”>
    <props>
    <prop key=”save*”>PROPAGATION_REQUIRED</prop>
    <prop key=”remove*”>PROPAGATION_REQUIRED</prop>
    <prop key=”*”>PROPAGATION_REQUIRED,readOnly</prop>
    </props>
    </property>
    </bean>

    <bean id=”userManager” parent=”txProxyTemplate”>
    <property name=”target”>
    <bean class=”org.appfuse.service.impl.UserManagerImpl”>
    <property name=”userDAO”>
    <ref bean=”userDAO” />
    </property>
    </bean>
    </property>
    </bean>
    </beans>

    ############End Paste ######################

    #222000 Reply

    Scott Anderson
    Participant

    Blaine,

    It looks like the spring beans DTD file has been updated since we included a copy in MyEclipse. To correct the issue in your current copy you need to add a User Catalog Entry to the XML Catalog at Window > Preferences > MyEclipse > Editors > XML > XML Catalog. The settings to use for the user entry are:

    URI: http://www.springframework.org/dtd/spring-beans.dtd
    Key Type: Public ID
    Key: -//SPRING//DTD BEAN//EN

    Once you’ve created the new entry to point directly to the Spring site, you can revalidate the file to remove the error. We’ll correct the cached version of the DTD in the next release. Thanks for pointing out the issue.

    #222005 Reply

    Thanks a million Scott.

    That corrected the issue. Also, thanks for such a quick response.

    Happy New Year!

    Blaine

    #222008 Reply

    Scott Anderson
    Participant

    No problem at all.

    Happy New Year to you too!

    #225516 Reply

    Thomas SMETS
    Member

    Needed for every workspace apparently …, isn’t it ?

    What is also weird is that I get a Connection time out while I can fetch the page from the myEclipseIDE Web Browser …. 😥

    \T,

    p.s. : There is the possibility to do export / import of those settings … !


    Thomas SMETS

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Get error on Spring applicationContext.xml [Closed]

You must be logged in to post in the forum log in