Announcement Announcement Module
Collapse
No announcement yet.
Problem with plugin Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with plugin

    I have the following in my application context, and am getting errors:

    <bean id="userManagerTarget" class="org.appfuse.service.impl.UserManagerImpl">
    <property name="userDAO">
    <ref local="userDAO"/>
    </property>
    </bean>

    Errors (no setter property):
    Severity Description Resource In Folder Location Creation Time
    2 No setter for property 'userDAO' defined in class 'org.springframework.orm.hibernate.HibernateTransa ctionManager' applicationContext.xml myusers/web/WEB-INF line 38 October 11, 2004 8:52:17 AM
    2 No setter for property 'userDAO' defined in class 'org.springframework.orm.hibernate.LocalSessionFac toryBean' applicationContext.xml myusers/web/WEB-INF line 38 October 11, 2004 8:52:17 AM

    Here is UserManagerImpl:

    public class UserManagerImpl implements UserManager {
    private static Log log = LogFactory.getLog(UserManagerImpl.class);
    private UserDAO dao;

    public void setUserDAO(UserDAO dao) {
    this.dao = dao;
    }

    public List getUsers() {
    return dao.getUsers();
    }

    public User getUser(String userId) {
    User user = dao.getUser(Long.valueOf(userId));

    if (user == null) {
    log.warn("UserId '" + userId + "' not found in database.");
    }

    return user;
    }

    public User saveUser(User user) {
    dao.saveUser(user);

    return user;
    }

    public void removeUser(String userId) {
    dao.removeUser(Long.valueOf(userId));
    }
    }


    Any ideas why? I just installed the plugin for the first time...

    Thanks,

    Mark
Working...
X