问题描述
osgi下编写一个bundle,在apache-fuse的servicemix.bat下使用命令osgi:update178(bundleid),出现以下提示:BeanFactorynotinitializedoralreadyclosed-call'refresh'beforeaccessingbeansviatheApplicationContext。atorg.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)atorg.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)atcom.sust.web.action.buy.ajax.ModifyBuyNumberServlet.doPost(ModifyBuyNumberServlet.java:43)atcom.sust.web.action.buy.ajax.ModifyBuyNumberServlet.doGet(ModifyBuyNumberServlet.java:33)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:617)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)这是什么情况呢?不知道有没有类似情况的,请各位帮忙提示下啊。。。。
解决方案
解决方案二:
贴下代码吧没初始化?
解决方案三:
<osgix:property-placeholderpersistent-id="payments"><osgix:default-properties><propkey="connection.url">localhost:8080</prop></osgix:default-properties></osgix:property-placeholder>是这个代码吗?