Hi SMX team,
This is an urgent issue for us.
In one of our crucial solution, I am trying to upgrade from servicemix 3.2.1
to servicemix 4.3.0.
We are using WS-Notification functionality to deliver notifications. Our
servicemix, notification-producer and notification-consumer all are behing
firewall and do not have access to internet.

I have replaced servicemix 3.2.1 with servicemix 4.3.0. And as given in the
examples/simple/README, I copied wsn.xml to $SMX_HOME/deploy directory.
When I start servicemix using SMX_HOME>./bin/servicemix command, I get
following exception on console:
-------------------------------------------
karaf@root> Exception in thread "SpringOsgiExtenderThread-1"
java.lang.IllegalStateException: BeanFactory not initialized or already
closed - call 'refresh' before accessing beans via the ApplicationContext
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
        at java.lang.Thread.run(Thread.java:619)
^C
karaf@root>

----------------------------
Output of the 'list' command is:
karaf@root> list
START LEVEL 100 , List Threshold: 50
   ID   State         Blueprint      Spring    Level  Name
[  33] [Active     ] [            ] [       ] [   60]
geronimo-annotation_1.0_spec (1.1.1)
[  34] [Active     ] [            ] [       ] [   60] geronimo-jta_1.1_spec
(1.1.1)
[  35] [Active     ] [            ] [       ] [   60] geronimo-jms_1.1_spec
(1.1.1)
[  36] [Active     ] [            ] [       ] [   60]
geronimo-j2ee-management_1.1_spec (1.0.1)
[  37] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-pool (1.5.4.2)
[  38] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-collections (3.2.1.1)
[  39] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-lang (2.4.0.4)
[  40] [Active     ] [            ] [       ] [   60] Commons Codec (1.4)
[  41] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: oro (2.0.8.4)
[  42] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: velocity (1.6.2.4)
[  43] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jasypt (1.6.0.1)
[  44] [Active     ] [Created     ] [       ] [   60] activemq-core (5.4.2)
                                       Fragments: 54
[  45] [Active     ] [            ] [       ] [   60] kahadb (5.4.2)
[  46] [Active     ] [            ] [       ] [   60] activemq-console
(5.4.2)
[  47] [Active     ] [            ] [       ] [   60] activemq-ra (5.4.2)
[  48] [Active     ] [            ] [       ] [   60] activemq-pool (5.4.2)
[  49] [Active     ] [Created     ] [       ] [   60] activemq-karaf (5.4.2)
[  50] [Active     ] [            ] [       ] [   60] Apache Aries
Transaction Manager (0.2.0.incubating)
[  51] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: Scripting API 1.0 (1.7.0)
[  52] [Active     ] [            ] [       ] [   60] Commons JEXL (2.0.1)
[  53] [Active     ] [Created     ] [       ] [   60] Apache XBean :: OSGI
Blueprint Namespace Handler (3.7)
[  54] [Resolved   ] [            ] [       ] [   60] activemq-blueprint
(5.4.2)
                                       Hosts: 44
[  55] [Active     ] [Created     ] [       ] [   60] activemq-broker.xml
(0.0.0)
[  56] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: aopalliance (1.0.0.4)
[  57] [Active     ] [            ] [       ] [   60] Spring Core
(3.0.5.RELEASE)
[  58] [Active     ] [            ] [       ] [   60] Spring ASM
(3.0.5.RELEASE)
[  59] [Active     ] [            ] [       ] [   60] Spring Expression
Language (3.0.5.RELEASE)
[  60] [Active     ] [            ] [       ] [   60] Spring Beans
(3.0.5.RELEASE)
[  61] [Active     ] [            ] [       ] [   60] Spring AOP
(3.0.5.RELEASE)
[  62] [Active     ] [            ] [       ] [   60] Spring Context
(3.0.5.RELEASE)
[  63] [Active     ] [            ] [       ] [   60] Spring Context Support
(3.0.5.RELEASE)
[  64] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: Activation API 1.4 (1.7.0)
[  65] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JAXB API 2.2 (1.7.0)
[  66] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: Stax API 1.0 (1.7.0)
[  67] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jaxb-impl (2.2.1.1_1)
[  68] [Active     ] [            ] [       ] [   60] Commons Management
(1.0)
[  69] [Active     ] [            ] [       ] [   60] camel-core (2.6.0)
[  70] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: cglib (2.1.0.3_6)
[  71] [Active     ] [            ] [       ] [   60] spring-osgi-io (1.2.0)
[  72] [Active     ] [            ] [       ] [   60] spring-osgi-core
(1.2.0)
[  73] [Active     ] [            ] [       ] [   60] spring-osgi-extender
(1.2.0)
[  74] [Active     ] [            ] [       ] [   60] spring-osgi-annotation
(1.2.0)
[  75] [Active     ] [            ] [       ] [   60] Spring Transaction
(3.0.5.RELEASE)
[  76] [Active     ] [            ] [       ] [   60] camel-spring (2.6.0)
[  77] [Active     ] [Created     ] [       ] [   60] camel-blueprint
(2.6.0)
[  78] [Resolved   ] [            ] [       ] [   60] Spring JMS
(3.0.5.RELEASE)
[  79] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Document (1.4.0)
[  80] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Utils (1.4.0)
[  81] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: API (1.4.0)
[  82] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: Core (1.4.0)
[  83] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: OSGi (1.4.0)
[  84] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: Commands (1.4.0)
[  85] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: Management (1.4.0)
[  86] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JAXWS API 2.2 (1.7.0)
[  87] [Resolved   ] [            ] [       ] [   60]
geronimo-ws-metadata_2.0_spec (1.1.2)
[  88] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: SAAJ API 1.3 (1.7.0)
[  89] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: asm (2.2.3.4)
[  90] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: FastInfoset (1.2.7.3)
[  91] [Resolved   ] [            ] [       ] [   60] Servlet 3.0 (1.0)
[  92] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jetty (6.1.25.1)
[  93] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jdom (1.1.0.3)
[  94] [Resolved   ] [            ] [       ] [   60] jettison (1.2)
[  95] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: ant (1.7.0.4)
[  96] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: bcel (5.2.0.3)
[  97] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xalan (2.7.1.3)
[  98] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xercesImpl (2.9.1.4)
[  99] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xmlbeans (2.5.0.1)
[ 100] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xmlsec (1.4.3.3)
[ 101] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xmlresolver (1.2.0.3)
[ 102] [Resolved   ] [            ] [       ] [   60] Woodstox XML-processor
(4.0.8)
[ 103] [Resolved   ] [            ] [       ] [   60] Stax2 API (3.0.2)
[ 104] [Resolved   ] [            ] [       ] [   60] XmlSchema (1.4.7)
[ 105] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: antlr (2.7.7.3)
[ 106] [Resolved   ] [            ] [       ] [   60] JavaMail API (1.4.3)
[ 107] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: neethi (2.0.4.3)
[ 108] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: abdera (0.4.0.incubating_4)
[ 109] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: saaj-impl (1.3.2.2)
[ 110] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: wsdl4j (1.6.2.3)
[ 111] [Resolved   ] [            ] [       ] [   60] WSS4J (1.5.9)
[ 112] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: opensaml (1.1.0.5)
[ 113] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JSR-311 API 1.1 (1.7.0)
[ 114] [Resolved   ] [            ] [       ] [   60] Apache CXF Bundle Jar
(2.3.2)
[ 115] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Naming (1.4.0)
[ 116] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JBI API 1.0 (1.7.0)
[ 117] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix ::
Components :: Shared Libraries :: Common (2011.01.0)
[ 118] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
JBI :: Runtime (1.4.0)
[ 119] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
JBI :: OSGi (1.4.0)
[ 120] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
JBI :: Deployer (1.4.0)
[ 121] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix ::
JBI :: Commands (1.4.0)
[ 122] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
JBI :: Clustering :: Requestor (1.4.0)
[ 123] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
JBI :: Clustering :: Engine (1.4.0)
[ 124] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix ::
JBI :: Clustering :: Config (1.4.0)
[ 125] [Active     ] [            ] [       ] [   60]
geronimo-servlet_2.5_spec (1.1.2)
[ 126] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - API
(0.7.4)
[ 127] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Service SPI (0.7.4)
[ 128] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Runtime (0.7.4)
[ 129] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - Jetty
(0.7.4)
[ 130] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - Jsp
Support (0.7.4)
[ 131] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - WAR (0.7.4)
[ 132] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - Whiteboard (0.7.4)
[ 133] [Active     ] [            ] [       ] [   60] OPS4J Pax Url - war:,
war-i: (1.2.4)
[ 134] [Active     ] [Created     ] [       ] [   60] Apache Karaf :: WAR
Deployer (2.1.3)
[ 135] [Active     ] [            ] [       ] [   60] Apache XBean :: Spring
(3.7)
[ 136] [Active     ] [            ] [       ] [   60] Apache XBean ::
Classloader (3.7)
[ 137] [Active     ] [            ] [       ] [   60] Axiom API (1.2.8)
[ 138] [Active     ] [            ] [       ] [   60] Axiom API (1.2.8)
[ 139] [Active     ] [            ] [       ] [   60] Jetty :: Utilities
(7.2.2.v20101205)
[ 140] [Active     ] [            ] [       ] [   60] Jetty :: IO Utility
(7.2.2.v20101205)
[ 141] [Active     ] [            ] [       ] [   60] Jetty :: Http Utility
(7.2.2.v20101205)
[ 142] [Active     ] [            ] [       ] [   60] Jetty :: Asynchronous
HTTP Client (7.2.2.v20101205)
[ 143] [Active     ] [            ] [       ] [   60] Jetty :: Continuation
(7.2.2.v20101205)
[ 144] [Active     ] [            ] [       ] [   60] Jetty :: JMX
Management (7.2.2.v20101205)
[ 145] [Active     ] [            ] [       ] [   60] Jetty :: Server Core
(7.2.2.v20101205)
[ 146] [Active     ] [            ] [       ] [   60] Jetty :: Security
(7.2.2.v20101205)
[ 147] [Active     ] [            ] [       ] [   60] Jetty :: Servlet
Handling (7.2.2.v20101205)
[ 148] [Active     ] [            ] [       ] [   60] Jetty :: Utility
Servlets and Filters (7.2.2.v20101205)
[ 149] [Active     ] [            ] [       ] [   60] Jetty :: XML utilities
(7.2.2.v20101205)
[ 150] [Active     ] [            ] [       ] [   60] Jetty :: Webapp
Application Support (7.2.2.v20101205)
[ 151] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Shared Libraries :: SOAP Stack                        v2
(2011.01.0)
[ 152] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: CXF Binding Component (2011.01                       .0)
[ 153] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: File Binding Component (2011.0                       1.0)
[ 154] [Active     ] [            ] [       ] [   60] Commons Net (2.2)
[ 155] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: FTP Binding Component (2011.01                       .0)
[ 156] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-httpclient (3.1.0.5)
[ 157] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Shared Libraries :: SOAP Stack                       
(2011.01.0)
[ 158] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: HTTP Binding Component (2011.0                       1.0)
[ 159] [Active     ] [            ] [       ] [   60]
geronimo-j2ee-connector_1.5_spec (2.0.0)
[ 160] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: JMS Binding Component (2011.01                       .0)
[ 161] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: Mail Binding Component (2011.0                       1.0)
[ 162] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jsmpp (2.1.0.2)
[ 163] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: SMPP Binding Component (2011.0                       1.0)
[ 164] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: snmp4j (1.8.1.4)
[ 165] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: SNMP Binding Component (2011.0                       1.0)
[ 166] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-vfs (1.0.0.5)
[ 167] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: VFS Binding Component (2011.01                       .0)
[ 168] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: Bean Service Engine (2011.01.0                       )
[ 169] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix ::
Components :: Camel Service Engine (2011.01.                       0)
[ 170] [Active     ] [            ] [       ] [   60] Apache CXF Runtime JBI
Binding (2.3.2)
[ 171] [Active     ] [            ] [       ] [   60] Apache CXF Runtime JBI
Transport (2.3.2)
[ 172] [Active     ] [            ] [Failed ] [   60] Apache ServiceMix ::
Components :: CXF Service Engine (2011.01.0)
[ 173] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: core (3.2.3.4)
[ 174] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: antlr-runtime (3.0.1.2)
[ 175] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: drools (5.1.1.1)
[ 176] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: mvel2 (2.0.8.4)
[ 177] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: Drools Service Engine (2011.01                       .0)
[ 178] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: EIP Service Engine (2011.01.0)
[ 179] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: antlr (3.0.1.4)
[ 180] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: quartz (1.8.3.2)
[ 181] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: oscore (2.2.4.4)
[ 182] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: propertyset (1.3.0.4)
[ 183] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: osworkflow (2.7.0.4)
[ 184] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: OSWorkflow Service Engine (201                       1.01.0)
[ 185] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: Quartz Service Engine (2011.01                       .0)
[ 186] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: groovy (1.5.6.4)
[ 187] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: js (1.0.0.7R1_3)
[ 188] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jruby (1.1.2.3)
[ 189] [Active     ] [            ] [       ] [   60] ScriptEngines ::
Groovy (1.1)
[ 190] [Active     ] [            ] [       ] [   60] ScriptEngines ::
JavaScript (1.1)
[ 191] [Active     ] [            ] [       ] [   60] ScriptEngines :: JRuby
(1.1)
[ 192] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: JSR-223 Scripting Service Engi                       ne
(2011.01.0)
[ 193] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: Validation Service Engine (201                       1.01.0)
[ 194] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: saxon (9.1.0.8_1)
[ 195] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: Saxon Service Engine (2011.01.                       0)
[ 196] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
Components :: WS-Notification Service Engine                       
(2011.01.0)
[ 197] [Active     ] [            ] [Failed ] [   60] wsn.xml (0.0.0)
------------------------------
EXCEPTION in data/log/servicemix file:
There are many unresolved dependencies. At last I see following error for
wsn2005 component:

376  00:19:51,710 | ERROR | rint Extender: 1 | BlueprintContainerImpl          
| 7 - org.apache.aries.blueprint - 0
.2.0.incubating | Unable to start blueprint container for bundle
servicemix-wsn2005 due to unresolved dependencies [(ob
jectClass=javax.jms.ConnectionFactory),
(objectClass=org.fusesource.commons.management.ManagementStrategy),
(objectClas
s=org.apache.servicemix.common.osgi.EndpointWrapper)]
   377  java.util.concurrent.TimeoutException
   378          at
org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:273)[7
:org.apache.aries.blueprint:0.2.0.incubating]
   379          at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_01]
   380          at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_01]
   381          at
java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_01]
   382          at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolE
xecutor.java:98)[:1.6.0_01]
   383          at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor
.java:207)[:1.6.0_01]
   384          at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)[:1.6.0_01]
   385          at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)[:1.6.0_01]
   386          at java.lang.Thread.run(Thread.java:619)[:1.6.0_01]


Thanks,
Bhavana

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-cxf-osgi-webservice-example-install-failed-with-BeanFactory-not-initialized-or-alreadd-tp4807513p4837185.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to