Results 1 to 3 of 3

Thread: 2 XML validation problems

  1. #1
    Join Date
    Sep 2004
    Location
    Berthoud, CO
    Posts
    13

    Default 2 XML validation problems

    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?
    .rob.park.

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    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.
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

  3. #3
    Join Date
    Sep 2004
    Location
    Berthoud, CO
    Posts
    13

    Default

    thanks... the manual overrided seems to have done the trick.
    .rob.park.

Similar Threads

  1. Replies: 1
    Last Post: Apr 29th, 2009, 12:36 PM
  2. Problems moving Validation from View to external jsp
    By sforsyth in forum Spring-Modules
    Replies: 1
    Last Post: Oct 14th, 2005, 12:06 PM
  3. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  4. Lost with Validation
    By RAPHEAD in forum Architecture
    Replies: 6
    Last Post: May 29th, 2005, 06:01 AM
  5. Domain Object Validation
    By lhilden in forum Architecture
    Replies: 4
    Last Post: Dec 14th, 2004, 07:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •