我正在使用 Eclipse IDE 开发 Liferay portlet。我刚刚在 service.xml 中创建了一个名为“USerDetails”的实体。表“USerDetails”是在数据库中创建的,我可以将 UserDetails 实体保存到数据库中。
现在,我想要的是,我想运行一个调度程序来更新数据库,我正在使用 Quartz 调度程序。考虑到这一点,我需要使用 Quartz 调度程序更新 UserDetails 的“年龄”列。
我的调度程序运行正常,但是表更新没有发生;它的 throw
Sep 06, 2013 5:35:17 PM com.liferay.portal.kernel.log.Jdk14LogImpl error
SEVERE: BeanLocator is null for servlet context User-Details-portlet
如何解决这个问题?
最佳答案
我通过以管理员身份运行 IDE(Eclipse Luna) 解决了 Bean Locator null, not set 问题,并且成功了。希望它对您也有用,祝您好运!
关于java - 运行调度程序时如何克服 Liferay 中的 BeanLocator is null 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18657709/