Hi Freeman,
This error <BeanFactory not initialized...] occurs when I deploy examples
<cxf-osgi>.
This version is <apache-servicemix-4.3.0>. I am using maven 2.2.1 and using
its default <settings.xml> with my internet proxy configured and not going
through <nexus> as I did couple of days ago. Maven reports artifacts not
found but downloads from maven central/mavenhub some like that. And now my
osgi:list output shows 95% in installed or Resolved state which is better
than before.

Anyways, this SAXParser error occurs when I install wsdl-first-osgi-package
as well.

While using apache-servicemix-4.4.1-fuse, I made some progress, and
successfully isntalled the <cxf-osgi> example (HelloWorld) after manually
installing 7/8 3rd party jars on my local maven repository.
here is my osgi:list output:
START LEVEL 60 , List Threshold: 50
   ID   State         Blueprint      Spring    Level  Name
[  32] [Active     ] [            ] [       ] [   60]
geronimo-annotation_1.0_spec (1.1.1)
[  33] [Active     ] [            ] [       ] [   60] geronimo-jta_1.1_spec
(1.1.1)
[  34] [Active     ] [            ] [       ] [   60] geronimo-jms_1.1_spec
(1.1.1)
[  35] [Active     ] [            ] [       ] [   60]
geronimo-j2ee-management_1.1_spec (1.0.1)
[  36] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-pool (1.5.4.2)
[  37] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-collections (3.2.1.1)
[  38] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-lang (2.4.0.4)
[  39] [Active     ] [            ] [       ] [   60] Commons Codec (1.4)
[  40] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: oro (2.0.8.4)
[  41] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: velocity (1.6.2.4)
[  42] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jasypt (1.6.0.1)
[  43] [Active     ] [Created     ] [       ] [   60] activemq-core (5.4.2)
                                       Fragments: 53
[  44] [Active     ] [            ] [       ] [   60] kahadb (5.4.2)
[  45] [Active     ] [            ] [       ] [   60] activemq-console
(5.4.2)
[  46] [Active     ] [            ] [       ] [   60] activemq-ra (5.4.2)
[  47] [Active     ] [            ] [       ] [   60] activemq-pool (5.4.2)
[  48] [Active     ] [Created     ] [       ] [   60] activemq-karaf (5.4.2)
[  49] [Active     ] [            ] [       ] [   60] Apache Aries
Transaction Manager (0.2.0.incubating)
[  50] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: Scripting API 1.0 (1.7.0)
[  51] [Active     ] [            ] [       ] [   60] Commons JEXL (2.0.1)
[  52] [Active     ] [Created     ] [       ] [   60] Apache XBean :: OSGI
Blueprint Namespace Handler (3.7)
[  53] [Resolved   ] [            ] [       ] [   60] activemq-blueprint
(5.4.2)
                                       Hosts: 43
[  54] [Active     ] [Created     ] [       ] [   60] activemq-broker.xml
(0.0.0)
[  55] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: aopalliance (1.0.0.4)
[  56] [Active     ] [            ] [       ] [   60] Spring Core
(3.0.5.RELEASE)
[  57] [Active     ] [            ] [       ] [   60] Spring ASM
(3.0.5.RELEASE)
[  58] [Active     ] [            ] [       ] [   60] Spring Expression
Language (3.0.5.RELEASE)
[  59] [Active     ] [            ] [       ] [   60] Spring Beans
(3.0.5.RELEASE)
[  60] [Active     ] [            ] [       ] [   60] Spring AOP
(3.0.5.RELEASE)
[  61] [Active     ] [            ] [       ] [   60] Spring Context
(3.0.5.RELEASE)
[  62] [Active     ] [            ] [       ] [   60] Spring Context Support
(3.0.5.RELEASE)
[  63] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: Activation API 1.4 (1.7.0)
[  64] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JAXB API 2.2 (1.7.0)
[  65] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: Stax API 1.0 (1.7.0)
[  66] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jaxb-impl (2.2.1.1_1)
[  67] [Active     ] [            ] [       ] [   60] Commons Management
(1.0)
[  68] [Active     ] [            ] [       ] [   60] camel-core (2.6.0)
[  69] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: cglib (2.1.0.3_6)
[  70] [Active     ] [            ] [       ] [   60] spring-osgi-io (1.2.0)
[  71] [Active     ] [            ] [       ] [   60] spring-osgi-core
(1.2.0)
[  72] [Active     ] [            ] [       ] [   60] spring-osgi-extender
(1.2.0)
[  73] [Active     ] [            ] [       ] [   60] spring-osgi-annotation
(1.2.0)
[  74] [Active     ] [            ] [       ] [   60] Spring Transaction
(3.0.5.RELEASE)
[  75] [Active     ] [            ] [       ] [   60] camel-spring (2.6.0)
[  76] [Active     ] [Created     ] [       ] [   60] camel-blueprint
(2.6.0)
[  77] [Resolved   ] [            ] [       ] [   60] Spring JMS
(3.0.5.RELEASE)
[  78] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Document (1.4.0)
[  79] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Utils (1.4.0)
[  80] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: API (1.4.0)
[  81] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: Core (1.4.0)
[  82] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: OSGi (1.4.0)
[  83] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: Commands (1.4.0)
[  84] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
NMR :: Management (1.4.0)
[  85] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JAXWS API 2.2 (1.7.0)
[  86] [Resolved   ] [            ] [       ] [   60]
geronimo-ws-metadata_2.0_spec (1.1.2)
[  87] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: SAAJ API 1.3 (1.7.0)
[  88] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: asm (2.2.3.4)
[  89] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: FastInfoset (1.2.7.3)
[  90] [Resolved   ] [            ] [       ] [   60] Servlet 3.0 (1.0)
[  91] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jetty (6.1.25.1)
[  92] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jdom (1.1.0.3)
[  93] [Resolved   ] [            ] [       ] [   60] jettison (1.2)
[  94] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: ant (1.7.0.4)
[  95] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: bcel (5.2.0.3)
[  96] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xalan (2.7.1.3)
[  97] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xercesImpl (2.9.1.4)
[  98] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xmlbeans (2.5.0.1)
[  99] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xmlsec (1.4.3.3)
[ 100] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: xmlresolver (1.2.0.3)
[ 101] [Resolved   ] [            ] [       ] [   60] Woodstox XML-processor
(4.0.8)
[ 102] [Resolved   ] [            ] [       ] [   60] Stax2 API (3.0.2)
[ 103] [Resolved   ] [            ] [       ] [   60] XmlSchema (1.4.7)
[ 104] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: antlr (2.7.7.3)
[ 105] [Resolved   ] [            ] [       ] [   60] JavaMail API (1.4.3)
[ 106] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: neethi (2.0.4.3)
[ 107] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: abdera (0.4.0.incubating_4)
[ 108] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: saaj-impl (1.3.2.2)
[ 109] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: wsdl4j (1.6.2.3)
[ 110] [Resolved   ] [            ] [       ] [   60] WSS4J (1.5.9)
[ 111] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: opensaml (1.1.0.5)
[ 112] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JSR-311 API 1.1 (1.7.0)
[ 113] [Resolved   ] [            ] [       ] [   60] Apache CXF Bundle Jar
(2.3.2)
[ 114] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Naming (1.4.0)
[ 115] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
Specs :: JBI API 1.0 (1.7.0)
[ 116] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix ::
Components :: Shared Libraries :: Common (201
1.01.0)
[ 117] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
JBI :: Runtime (1.4.0)
[ 118] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
JBI :: OSGi (1.4.0)
[ 119] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix ::
JBI :: Deployer (1.4.0)
[ 120] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix ::
JBI :: Commands (1.4.0)
[ 121] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
JBI :: Clustering :: Requestor (1.4.0)
[ 122] [Active     ] [            ] [       ] [   60] Apache ServiceMix ::
JBI :: Clustering :: Engine (1.4.0)
[ 123] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix ::
JBI :: Clustering :: Config (1.4.0)
[ 124] [Active     ] [            ] [       ] [   60]
geronimo-servlet_2.5_spec (1.1.2)
[ 125] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - API
(0.7.4)
[ 126] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Service SPI (0.7.4)
[ 127] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Runtime (0.7.4)
[ 128] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - Jetty
(0.7.4)
[ 129] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - Jsp
Support (0.7.4)
[ 130] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - WAR (0.7.4)
[ 131] [Starting   ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - Whiteboard (0.7.4)
[ 132] [Installed  ] [            ] [       ] [   60] OPS4J Pax Url - war:,
war-i: (1.2.4)
[ 133] [Installed  ] [            ] [       ] [   60] Apache Karaf :: WAR
Deployer (2.1.3)
[ 134] [Resolved   ] [            ] [       ] [   60] Apache XBean :: Spring
(3.7)
[ 135] [Resolved   ] [            ] [       ] [   60] Apache XBean ::
Classloader (3.7)
[ 136] [Resolved   ] [            ] [       ] [   60] Axiom API (1.2.8)
[ 137] [Resolved   ] [            ] [       ] [   60] Axiom API (1.2.8)
[ 138] [Resolved   ] [            ] [       ] [   60] Jetty :: Utilities
(7.2.2.v20101205)
[ 139] [Resolved   ] [            ] [       ] [   60] Jetty :: IO Utility
(7.2.2.v20101205)
[ 140] [Resolved   ] [            ] [       ] [   60] Jetty :: Http Utility
(7.2.2.v20101205)
[ 141] [Installed  ] [            ] [       ] [   60] Jetty :: Asynchronous
HTTP Client (7.2.2.v20101205)
[ 142] [Resolved   ] [            ] [       ] [   60] Jetty :: Continuation
(7.2.2.v20101205)
[ 143] [Installed  ] [            ] [       ] [   60] Jetty :: JMX
Management (7.2.2.v20101205)
[ 144] [Resolved   ] [            ] [       ] [   60] Jetty :: Server Core
(7.2.2.v20101205)
[ 145] [Installed  ] [            ] [       ] [   60] Jetty :: Security
(7.2.2.v20101205)
[ 146] [Installed  ] [            ] [       ] [   60] Jetty :: Servlet
Handling (7.2.2.v20101205)
[ 147] [Installed  ] [            ] [       ] [   60] Jetty :: Utility
Servlets and Filters (7.2.2.v20101205)
[ 148] [Installed  ] [            ] [       ] [   60] Jetty :: XML utilities
(7.2.2.v20101205)
[ 149] [Installed  ] [            ] [       ] [   60] Jetty :: Webapp
Application Support (7.2.2.v20101205)
[ 150] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Shared Libraries :: SOAP Stack
v2 (2011.01.0)
[ 151] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: CXF Binding Component (2011.01.
0)
[ 152] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: File Binding Component (2011.01
.0)
[ 153] [Resolved   ] [            ] [       ] [   60] Commons Net (2.2)
[ 154] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: FTP Binding Component (2011.01.
0)
[ 155] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-httpclient (3.1.0.5)
[ 156] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Shared Libraries :: SOAP Stack
(2011.01.0)
[ 157] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: HTTP Binding Component (2011.01
.0)
[ 158] [Resolved   ] [            ] [       ] [   60]
geronimo-j2ee-connector_1.5_spec (2.0.0)
[ 159] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: JMS Binding Component (2011.01.
0)
[ 160] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Mail Binding Component (2011.01
.0)
[ 161] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jsmpp (2.1.0.2)
[ 162] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: SMPP Binding Component (2011.01
.0)
[ 163] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: snmp4j (1.8.1.4)
[ 164] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: SNMP Binding Component (2011.01
.0)
[ 165] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: commons-vfs (1.0.0.5)
[ 166] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: VFS Binding Component (2011.01.
0)
[ 167] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Bean Service Engine (2011.01.0)

[ 168] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Camel Service Engine (2011.01.0
)
[ 169] [Installed  ] [            ] [       ] [   60] Apache CXF Runtime JBI
Binding (2.3.2)
[ 170] [Installed  ] [            ] [       ] [   60] Apache CXF Runtime JBI
Transport (2.3.2)
[ 171] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: CXF Service Engine (2011.01.0)
[ 172] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: core (3.2.3.4)
[ 173] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: antlr-runtime (3.0.1.2)
[ 174] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: drools (5.1.1.1)
[ 175] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: mvel2 (2.0.8.4)
[ 176] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Drools Service Engine (2011.01.
0)
[ 177] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: EIP Service Engine (2011.01.0)
[ 178] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: antlr (3.0.1.4)
[ 179] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: quartz (1.8.3.2)
[ 180] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: oscore (2.2.4.4)
[ 181] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: propertyset (1.3.0.4)
[ 182] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: osworkflow (2.7.0.4)
[ 183] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: OSWorkflow Service Engine (2011
.01.0)
[ 184] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Quartz Service Engine (2011.01.
0)
[ 185] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: groovy (1.5.6.4)
[ 186] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: js (1.0.0.7R1_3)
[ 187] [Resolved   ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: jruby (1.1.2.3)
[ 188] [Installed  ] [            ] [       ] [   60] ScriptEngines ::
Groovy (1.1)
[ 189] [Installed  ] [            ] [       ] [   60] ScriptEngines ::
JavaScript (1.1)
[ 190] [Installed  ] [            ] [       ] [   60] ScriptEngines :: JRuby
(1.1)
[ 191] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: JSR-223 Scripting Service Engin
e (2011.01.0)
[ 192] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Validation Service Engine (2011
.01.0)
[ 193] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Bundles :: saxon (9.1.0.8_1)
[ 194] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: Saxon Service Engine (2011.01.0
)
[ 195] [Installed  ] [            ] [       ] [   60] Apache ServiceMix ::
Components :: WS-Notification Service Engine
(2011.01.0)
[ 198] [Active     ] [            ] [Failed ] [   60] Apache ServiceMix ::
Features :: Examples :: CXF OSGi (4.3.0)

info:
Karaf
  Karaf home                  C:\apache-servicemix-4.3.0
  Karaf base                  C:\apache-servicemix-4.3.0
  OSGi Framework              org.apache.felix.framework - 3.0.9

JVM
  Java Virtual Machine        Java HotSpot(TM) Server VM version 20.1-b02
  Version                     1.6.0_26
  Vendor                      Sun Microsystems Inc.
  Uptime                      14 minutes
  Total compile time          8.446 seconds
Threads
  Live threads                44
  Daemon threads              37
  Peak                        48
  Total started               65
Memory
  Current heap size           100,465 kbytes
  Maximum heap size           466,048 kbytes
  Committed heap size         181,184 kbytes
  Pending objects             0
  Garbage collector           Name = 'PS Scavenge', Collections = 9, Time =
0.089 seconds
  Garbage collector           Name = 'PS MarkSweep', Collections = 1, Time =
0.096 seconds
Classes
  Current classes loaded      4,658
  Total classes loaded        4,658
  Total classes unloaded      0
Operating system
  Name                        Windows 7 version 6.1
  Architecture                x86
  Processors                  4
karaf@root>

any ideas about how I can fix this SAXParser error ?
thanks,
Ranthy.




--
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-tp4807513p4827931.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to