ActiveMQ Startup error:
caused by:java.lang.IllegalStateException:BeanFactory not initialized or already closed-call ' refresh ' before Accessin G Beans via the ApplicationContext
At Org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory ( abstractrefreshableapplicationcontext.java:171)
At Org.springframework.context.support.AbstractApplicationContext.destroyBeans (Abstractapplicationcontext.java : 1090)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:487)
At Org.apache.xbean.spring.context.resourcexmlapplicationcontext.<init> ( RESOURCEXMLAPPLICATIONCONTEXT.JAVA:64)
At Org.apache.xbean.spring.context.resourcexmlapplicationcontext.<init> ( RESOURCEXMLAPPLICATIONCONTEXT.JAVA:52)
At Org.apache.activemq.xbean.xbeanbrokerfactory$1.<init> (xbeanbrokerfactory.java:104)
At Org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext (xbeanbrokerfactory.java:104)
At Org.apache.activemq.xbean.XBeanBrokerFactory.createBroker (xbeanbrokerfactory.java:67)
At Org.apache.activemq.broker.BrokerFactory.createBroker (brokerfactory.java:71)
At Org.apache.activemq.broker.BrokerFactory.createBroker (brokerfactory.java:54)
At Org.apache.activemq.console.command.StartCommand.runTask (startcommand.java:87)
... Ten more
How to resolve:
1. Verify that the computer hostname name is not underlined;
2. If Win7, stop ICS (run-->services.msc to locate the Internet Connection Sharing (ICS) service and change to manual start or disable)
Restart the ACTIVEMQ.