Hi.,
I am running an application on Felix-1.4.1. I am using spring-ws-core-1.5.6.
When i install spring-ws-core along with its dependent bundles into runtime,
all bundle will be in "Active" state.But when i try to access spring-ws-core
functionality in my bundle's class I get the following exception.

org.springframework.beans.factory.BeanInitializationException: Could not
find default strategy class for interface
[org.springframework.ws.WebServiceMessageFactory]; nested exception is
java.lang.Clas
sNotFoundException: org.springframework.ws.soap.saaj.SaajSoapMessageFactory
        at
org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategies(DefaultStrategiesHelper.java:126)
        at
org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:200)
        at
org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:184)
        at
org.springframework.ws.client.core.WebServiceTemplate.initMessageFactory(WebServiceTemplate.java:315)
        at
org.springframework.ws.client.core.WebServiceTemplate.initDefaultStrategies(WebServiceTemplate.java:304)
        at
org.springframework.ws.client.core.WebServiceTemplate.<init>(WebServiceTemplate.java:133)

Please note: I have also tried using DynamicImport-Package with
spring-ws-core, but no use.

I can see the following code in the spring-ws-core's DefaultStrategiesHelper
class. Which uses Class.forName() !!!!

                      Class clazz = ClassUtils.forName(classNames[i]);

But when I run the same application with Eclipse Equinox, and
"Eclipse-BuddyPolicy" headers with spring-ws-core and org.springframework
bundles, my application works very well.

Does that mean Eclipse-BuddyPolicy has an edge over DynamicImports?

But I have a requirement in which I have to use Apache Felix, I can not go
with Eclipse Equinox. 

Can anybody suggest me how can I come out of this problem? How to make
spring-ws-core working with Felix?

Thanks in advance.
Sriharsha.

-----
Sriharsha

-- 
View this message in context: 
http://www.nabble.com/ClassNotFoundException-with-spring-ws-core-%2B-Felix-tp23720187p23720187.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to