Hello Community

I have a new Problem, that don't existed in 3.1.2. 

When I run my JUnit test with WSDL-Communication, I get two error
exceptions. 

ERROR - Cannot instantiate the service class
org.apache.openejb.server.cxf.CxfService. Received error:
org.apache.xbean.recipe.ConstructionException Error invoking constructor:
public org.apache.openejb.server.cxf.CxfService()
org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.openejb.server.cxf.CxfService()

Caused by: java.lang.ClassCastException: class
org.apache.cxf.ws.addressing.wsdl.UsingAddressing

My system is:

Libraries:

OpenEJB 3.1.3

wsdl4j 1.6.2

jboss 5.1

ejb3


Maven dependencies

openejb-cxf: 3.1.3; test;  exclusion:openjpa, wsdl4j

wsdl4j: 1.6.2;


JUnit-Test with WSDL-Communication

Service hService = Service.create(new
URL("http://127.0.0.1:4204/UserBackendBeanImpl?wsdl";), new
QName("http://localhost/UserBackendBean";, "UserBackendBeanWSService"));
assertNotNull("Webservice konnte nicht erzeugt werden", hService);

      return hService.getPort(UserBackendBean.class);

WSDL-Class

@Stateless

@WebService(portName = "UserBackendBeanPort", serviceName =
"UserBackendBeanWSService",targetNamespace =
"http://localhost/UserBackendBean";)


WSDL-Interface

@WebService(targetNamespace =
"http://userbackend.winrace.de/UserBackendBean";)

public interface UserBackendBean


I hope you can Help me again.

Martin

-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/Testing-WebService-with-3-1-3-tp3006802p3006802.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to