Re: Testing WebService with 3.1.3

2010-10-22 Thread martin.th.be

Many many thanks..

My Maven dependencies was correct. Somewhere Eclipse has cached the version. 

I didn't notice anything unusual, but in the eclipse-console was the
output-text: 'Apache OpenEJB 3.1.2'.


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


Re: Testing WebService with 3.1.3

2010-10-22 Thread Jacek Laskowski
On Fri, Oct 22, 2010 at 10:24 AM, martin.th.be
 wrote:

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

It's a shot in the dark, but could you verify that you're
inadvertently not deploy some CXF-related libraries with your
(web)app? CCE seems to imply that's the case - the class is available
in two different classloaders and hence the exception.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://jaceklaskowski.pl
Komitet organizacyjny warsjawa 2010 - http://warsjawa.pl


Testing WebService with 3.1.3

2010-10-22 Thread martin.th.be

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.