PDA

View Full Version : 2 XML validation problems



rpark68
Mar 4th, 2005, 03:21 PM
1. With <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">, <bean id="commonDataSource"
class="com.zenodata.shared.db.PooledDataSource"
factory-method="createCommonInstance"/>
yields: Attribute "factory-method" must be declared by element type bean

2. And in the same xml use of an inner class:
<bean id="eventDaoJdbc" class="com.zenodata.jaz.db.EventDao$Jdbc">
yields: class "com.zenodata.jaz.db.EventDao$Jdbc" not found.

Both from XML Buddy.
Anybody know of any workarounds?

Colin Sampaleanu
Mar 8th, 2005, 10:33 PM
Rob,

I think you were probably using an older version of Spring, and XMLBuddy is caching the older DTD file.

Take a look in your workspace, in the
.metadata\.plugins\com.objfac.xmleditor\.cache
directory. There will be a number of files in there like f1, f2, f3, etc. These are all cached DTDs. Make sure the spring one is up to date, and manually update it if not.

rpark68
Mar 9th, 2005, 02:12 PM
thanks... the manual overrided seems to have done the trick. :D