The WEB-INF/lib jar should be just runtime (depending on what server you're running on, it's likely already provided by the container). That being said, I interpreted the error in the report as being during code generation - is this error only at runtime?
On Tue, May 7, 2024 at 11:57 AM Shobha K R <[email protected]> wrote: > > hi > I had added cxf-rt-ws-eventing-4.0.4.jar in the war (under WEB-INF/lib ) > this jar has reference to (https://www.w3.org/2011/03/ws-evt/eventing.wsdl) > is this jar not required? > > On Tue, May 7, 2024 at 5:53 PM Jamie G. <[email protected]> wrote: > > > Pulling the supplied eventing wsdl into the wsdl_first sample from CXF > > kit (4.1.0-snapshot), I could get it to generate the Java source code > > for addressing & eventing. > > > > For my local I downloaded a copy of eventing.xsd to my resources > > folder, and updated the addressing schemaLocation so it would follow > > the redirect properly. Note, I used Eclipse Adoptium as my JDK. > > > > The issue you're experiencing above is likely something in your > > project pulling in or redirecting to ws-evt namespace > > (https://www.w3.org/2011/03/ws-evt/eventing.wsdl) which does not > > include the EventSourceEndpoint. Can you trace your local redirects? > > > > > > On Thu, May 2, 2024 at 11:37 AM Shobha K R <[email protected]> wrote: > > > > > > Eventing.wsdl: > > > ------------------ > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > > <wsdl:definitions > > > targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/eventing' > > > xmlns:wse='http://schemas.xmlsoap.org/ws/2004/08/eventing' > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > > xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' > > > xmlns:xs='http://www.w3.org/2001/XMLSchema' > > > > > > > <wsdl:types> > > > <xs:schema > > > targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/eventing' > > > > > > <xs:include schemaLocation='eventing.xsd' /> > > > </xs:schema> > > > </wsdl:types> > > > > > > <wsdl:message name='SubscribeMsg' > > > > <wsdl:part name='body' element='wse:Subscribe' /> > > > </wsdl:message> > > > <wsdl:message name='SubscribeResponseMsg' > > > > <wsdl:part name='body' element='wse:SubscribeResponse' /> > > > </wsdl:message> > > > > > > <wsdl:message name='RenewMsg' > > > > <wsdl:part name='body' element='wse:Renew' /> > > > </wsdl:message> > > > <wsdl:message name='RenewResponseMsg' > > > > <wsdl:part name='body' element='wse:RenewResponse' /> > > > </wsdl:message> > > > > > > <wsdl:message name='GetStatusMsg' > > > > <wsdl:part name='body' element='wse:GetStatus' /> > > > </wsdl:message> > > > <wsdl:message name='GetStatusResponseMsg' > > > > <wsdl:part name='body' element='wse:GetStatusResponse' /> > > > </wsdl:message> > > > > > > <wsdl:message name='UnsubscribeMsg' > > > > <wsdl:part name='body' element='wse:Unsubscribe' /> > > > </wsdl:message> > > > <wsdl:message name='UnsubscribeResponseMsg' /> > > > > > > <wsdl:message name='SubscriptionEnd' > > > > <wsdl:part name='body' element='wse:SubscriptionEnd' /> > > > </wsdl:message> > > > > > > <wsdl:portType name='EventSource' > > > > <wsdl:operation name='SubscribeOp' > > > > <wsdl:input message='wse:SubscribeMsg' /> > > > <wsdl:output message='wse:SubscribeResponseMsg' /> > > > </wsdl:operation> > > > <wsdl:operation name='SubscriptionEnd' > > > > <wsdl:output message='wse:SubscriptionEnd' /> > > > </wsdl:operation> > > > </wsdl:portType> > > > > > > <wsdl:portType name='SubscriptionManager' > > > > <wsdl:operation name='RenewOp' > > > > <wsdl:input message='wse:RenewMsg' /> > > > <wsdl:output message='wse:RenewResponseMsg' /> > > > </wsdl:operation> > > > <wsdl:operation name='GetStatusOp' > > > > <wsdl:input message='wse:GetStatusMsg' /> > > > <wsdl:output message='wse:GetStatusResponseMsg' /> > > > </wsdl:operation> > > > <wsdl:operation name='UnsubscribeOp' > > > > <wsdl:input message='wse:UnsubscribeMsg' /> > > > <wsdl:output message='wse:UnsubscribeResponseMsg' /> > > > </wsdl:operation> > > > </wsdl:portType> > > > <wsdl:binding name="EventSourceBinding" type="wse:EventSource"> > > > <soap:binding style="document" transport=" > > > http://schemas.xmlsoap.org/soap/http"/> > > > <wsdl:operation name="SubscribeOp"> > > > <soap:operation soapAction=""/> > > > <wsdl:input> > > > <soap:body use="literal"/> > > > </wsdl:input> > > > <wsdl:output> > > > <soap:body use="literal"/> > > > </wsdl:output> > > > </wsdl:operation> > > > <wsdl:operation name="SubscriptionEnd"> > > > <soap:operation soapAction=""/> > > > <wsdl:output> > > > <soap:body use="literal"/> > > > </wsdl:output> > > > </wsdl:operation> > > > </wsdl:binding> > > > <wsdl:binding name="SubscriptionManagerBinding" > > > type="wse:SubscriptionManager"> > > > <soap:binding style="document" transport=" > > > http://schemas.xmlsoap.org/soap/http"/> > > > <wsdl:operation name="GetStatusOp"> > > > <soap:operation soapAction=""/> > > > <wsdl:input> > > > <soap:body use="literal"/> > > > </wsdl:input> > > > <wsdl:output> > > > <soap:body use="literal"/> > > > </wsdl:output> > > > </wsdl:operation> > > > <wsdl:operation name="RenewOp"> > > > <soap:operation soapAction=""/> > > > <wsdl:input> > > > <soap:body use="literal"/> > > > </wsdl:input> > > > <wsdl:output> > > > <soap:body use="literal"/> > > > </wsdl:output> > > > </wsdl:operation> > > > <wsdl:operation name="UnsubscribeOp"> > > > <soap:operation soapAction=""/> > > > <wsdl:input> > > > <soap:body use="literal"/> > > > </wsdl:input> > > > <wsdl:output> > > > <soap:body use="literal"/> > > > </wsdl:output> > > > </wsdl:operation> > > > </wsdl:binding> > > > <wsdl:service name="EventingService"> > > > <wsdl:port name="EventSourcePort" binding="wse:EventSourceBinding"> > > > <soap:address location="http://xxx.com/xx-sdk-notify/subscribe"/> > > > </wsdl:port> > > > <wsdl:port name="SubscriptionManagerPort" > > > binding="wse:SubscriptionManagerBinding"> > > > <soap:address location="http://xxx.com/xxx-sdk-notify/manage"/> > > > </wsdl:port> > > > </wsdl:service> > > > </wsdl:definitions> > > > > > > On Thu, May 2, 2024 at 7:33 PM Jamie G. <[email protected]> > > wrote: > > > > > > > Hi, > > > > > > > > The attachment doesn't appear on this thread :S > > > > > > > > Can you post a link to the wsdl on github/pastebin or the like? > > > > > > > > On Thu, May 2, 2024 at 4:07 AM Shobha K R <[email protected]> wrote: > > > > > > > > > > hi, > > > > > Java version and vendor: > > > > > openjdk version "17.0.6" 2023-01-17 LTS > > > > > OpenJDK Runtime Environment (Red_Hat-17.0.6.0.10-3.el8_7) (build > > > > 17.0.6+10-LTS) > > > > > OpenJDK 64-Bit Server VM (Red_Hat-17.0.6.0.10-3.el8_7) (build > > > > 17.0.6+10-LTS, mixed mode, sharing) > > > > > Also attached eventing.wsdl > > > > > > > > > > On Tue, Apr 30, 2024 at 5:01 PM Jamie G. <[email protected]> > > > > wrote: > > > > >> > > > > >> Can you provide the JVM vendor & version as well please? > > > > >> > > > > >> Do you have a sample of your wsdl you can provide? > > > > >> > > > > >> A ServiceConstructionException can happen at various stages as CXF > > > > >> compares the provided service, port, bindings with what's been > > parsed > > > > >> from the wsdl. > > > > >> > > > > >> > > > > >> On Tue, Apr 30, 2024 at 8:16 AM Shobha K R <[email protected]> > > wrote: > > > > >> > > > > > >> > Hi All, > > > > >> > How to proceed with the below error? > > > > >> > > > > > >> > Thanks > > > > >> > Shobha > > > > >> > > > > > >> > ---------- Forwarded message --------- > > > > >> > From: Shobha K R <[email protected]> > > > > >> > Date: Wed, Apr 24, 2024 at 8:58 PM > > > > >> > Subject: Migration from jboss ws to apache-cxf > > > > >> > To: <[email protected]> > > > > >> > > > > > >> > > > > > >> > Hi All, > > > > >> > We are migrating from jboss-4.2.3.GA to apache-cxf-4.0.4 for > > > > >> > WS-addressing and WS-Eventing. > > > > >> > > > > > >> > While creating the service getting this error, how to proceed? > > > > >> > > > > > >> > Apr 24, 2024 10:24:57 AM > > > > >> > org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean > > > > >> > buildServiceFromWSDL > > > > >> > INFO: Creating Service > > > > >> > {http://schemas.xmlsoap.org/ws/2004/08/eventing}EventingService > > from > > > > >> > WSDL: file:/xx/wsdl/eventing.wsdl > > > > >> > Apr 24, 2024 10:24:57 AM > > > > >> > com.hp.ov.temip.atni.adapter.common.traces.CLTracer > > logErrorMessage > > > > >> > SEVERE: [Subscriber:Subscriber] Web Service Exception for > > subscription > > > > >> > :incident, Error > > > > >> > :org.apache.cxf.service.factory.ServiceConstructionException: > > Could > > > > >> > not find portType named > > > > >> > {http://www.w3.org/2011/03/ws-evt}EventSourceEndpoint > > > > >> > xx.xx.subscription.SubscriptionException: Subscriber(): Web > > Service > > > > >> > Error in creating Service or > > > > >> > Port.org.apache.cxf.service.factory.ServiceConstructionException: > > > > >> > Could not find portType named > > > > >> > {http://www.w3.org/2011/03/ws-evt}EventSourceEndpoint > > > > >> > at > > > > org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:344) > > > > >> > at > > > > org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:337) > > > > >> > at jakarta.xml.ws.Service.getPort(Service.java:210) > > > > >> > at > > xx.xx.subscription.Subscriber.<init>(Subscriber.java:335) > > > > >> > at > > > > xx.xx.subscription.SubscriberTest.test_Valid(SubscriberTest.java:105) > > > > >> > at > > > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > > > > >> > Method) > > > > >> > > > > > >> > > > > > >> > -- > > > > >> > Thanks > > > > >> > Shobha > > > > >> > > > > > >> > > > > > >> > -- > > > > >> > Thanks > > > > >> > Shobha > > > > > > > > > > > > > > > > > > > > -- > > > > > Thanks > > > > > Shobha > > > > > > > > > > > > > -- > > > Thanks > > > Shobha > > > > > -- > Thanks > Shobha
