BeanFactory not initialized or already closed - call 'refresh' ....

huangdi_1 2010-05-17 10:05:38

osgi下编写一个bundle,在apache-fuse的servicemix.bat下使用命令osgi:update 178(bundle id),出现以下提示:

BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext。

at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at com.sust.web.action.buy.ajax.ModifyBuyNumberServlet.doPost(ModifyBuyNumberServlet.java:43)
at com.sust.web.action.buy.ajax.ModifyBuyNumberServlet.doGet(ModifyBuyNumberServlet.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

这是什么情况呢?不知道有没有类似情况的,请各位帮忙提示下啊。。。。
...全文
670 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
贴下代码吧

没初始化?
huangdi_1 2010-05-17
  • 打赏
  • 举报
回复
<osgix:property-placeholder persistent-id="payments">
<osgix:default-properties>
<prop key="connection.url">localhost:8080</prop>
</osgix:default-properties>
</osgix:property-placeholder>
是这个代码吗?

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧