Hi,

I assume you're using Apache Servicemix 4.3.0 release, right?
Ensure you didn't change etc/org.apache.karaf.features.cfg and uour machine have internet connection. Also could you post osgi:list result after you start servicemix, I'd like to see if all default installed bundle is there

Freeman
On 2011-9-20, at 上午12:03, ranthy wrote:

Thanks for taking a look at this. Yes, you're right about
'http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd' having
nothing to do with examples [cxf-osgi] web service. If followed the steps in
<Readme> file for this [cxf-osgi] example in the section [Building the
Example Bundle Yourself] and after I do 'features:install examples- cxf-osgi' using [karaf] shell, I get the 'BeanFactory not initialilized or already
closed' and the following error is from [Servicemix.log] file:
"org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schemas/jaxws.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of
the document is not <xsd:schema>."

Th earlier error message about <cxf-se.xsd> SAX error is encountered when I tried to install example [cxf-wsdl-first-osgi-package]. In this example the [cxfbc-bundle] is installed properly, however, the implementaion of service which is [cxfse-bundle] fails and reports the SAX error in the log file


All I want to test is JAX-WS webservices as OSGi bundle, because OSGi offers lightweight deployments as opposed to full-blown WAR fiel deployment and
also provides control at service level via karaf and much more...

I did NOT change <pom.xml> or <beans.xml> for spring. Let me know if I need
to change anything.
thanks again,
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-tp4807513p4819457.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to