cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bayu Anggorojati ...@es.aau.dk>
Subject org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for port...
Date Fri, 06 May 2011 18:08:47 GMT
Hi,

I am quite new in cxf. Currently I am trying to develop something in an 
open source project. Originally, the project used cxf-2.0.4-incubator, 
but I am switching to cxf-2.3.3.

I noticed that, only by changing the cxf libraries from 2.0.4 into 
2.3.3, and accordingly other libraries (e.g. jaxb-api, jaxb-impl, and 
jaxb-xjc from 2.0 to 2.2.1.1) even without changing anything in the 
code, when trying to access the service with the following codes:

EPCglobalEPCISService service = new EPCglobalEPCISService();
         QName portName = new QName("urn:epcglobal:epcis:wsdl:1", 
"EPCglobalEPCISServicePortLocal");
         service.addPort(portName, "http://schemas.xmlsoap.org/soap/", 
"local://query");
         EPCISServicePortType servicePort = service.getPort(portName, 
EPCISServicePortType.class);

it returns the following error:

javax.xml.ws.WebServiceException: 
org.apache.cxf.service.factory.ServiceConstructionException: Could not 
find definition for port 
{urn:epcglobal:epcis:wsdl:1}EPCglobalEPCISServicePortLocal.
	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:333)
	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:318)
	at javax.xml.ws.Service.getPort(Service.java:92)
	at 
org.ow2.aspirerfid.epcis.repository.query.QuerySubscription.executePoll(QuerySubscription.java:328)
	at 
org.ow2.aspirerfid.epcis.repository.query.QuerySubscription.executeQuery(QuerySubscription.java:259)
	at 
org.ow2.aspirerfid.epcis.repository.query.QuerySubscriptionScheduled.handleNotification(QuerySubscriptionScheduled.java:149)
	at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
	at 
javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)
	at 
javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)
	at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
	at javax.management.timer.Timer.sendNotification(Timer.java:1237)
	at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1206)
	at javax.management.timer.TimerAlarmClock.run(Timer.java:1289)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: 
Could not find definition for port 
{urn:epcglobal:epcis:wsdl:1}EPCglobalEPCISServicePortLocal.
	at 
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:138)
	at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:386)
	at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:503)
	at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242)
	at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
	at 
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
	at 
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)
	at 
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:144)
	at 
org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:133)
	at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:464)
	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:331)
	... 14 more

Could any body tell me what is going wrong? Thank you in advance.

/bayu

Mime
View raw message