- This topic has 4 replies, 3 voices, and was last updated 19 years, 9 months ago by Thomas SMETS.
-
AuthorPosts
-
R. Blaine MinceyMemberGreetings 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”><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 ######################
Scott AndersonParticipantBlaine,
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//ENOnce 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.
R. Blaine MinceyMemberThanks a million Scott.
That corrected the issue. Also, thanks for such a quick response.
Happy New Year!
Blaine
Scott AndersonParticipantNo problem at all.
Happy New Year to you too!
Thomas SMETSMemberNeeded 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 -
AuthorPosts