10-Apr-2025 11: 36: 53.522 Warnung [http-8080-exc-2] aufrufe org.apache.cxf.transport.servlet.servletController.invoke kann die Anfrage für http: // localhost: 8080/classeurclientws/dienste/wsnotificationSoaps Beobachter nicht finden. 11: 36: 28.154 Info [RMI TCP-Verbindung (2) -127.0.0.1] org.apache.cxf.wsdl.service.factory.reflectionsserviceFactoryBean.buildservicefromClass-Dienst fr.itgce.clacli.notification.autogenerated.WSNotification 10-Apr-2025 11:36:38.095 INFO [RMI TCP Connection(2)-127.0.0.1] org.apache.cxf.endpoint.ServerImpl.initDestination Setting the server's publish address to be /services/wsnotificationSoap.
Ich sehe nicht, woher das Problem kommt. < /p>
Ich habe Folgendes in meinem Web.xml:
Code: Select all
ClacliWS
contextConfigLocation
/WEB-INF/classes/context-spring-cc-injection-wsdossier.xml
org.springframework.web.context.ContextLoaderListener
CXFServlet
org.apache.cxf.transport.servlet.CXFServlet
1
CXFServlet
/services/*
< /code>
In meiner Bean-Datei (Kontext-Spring-CC-Injektion-wsdossier.xml) die folgenden Werte: < /p>
< /code>
Und hier ist meine Apache -CXF -Implementierungsschnittstelle: < /p>
@WebService(targetNamespace = "http://c-e/clacli", name = "WSNotification")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface WSNotification {
@WebMethod(operationName = "RechercherParamNotif", action = "http://c-e/clacli/RechercherParamNotif")
@WebResult(name = "RsttRechParamNotif", targetNamespace = "http://c-e/clacli", partName = "parameters")
public RsttRechParamNotif rechercherParamNotif(
@WebParam(partName = "parameters", name = "QstnRechParamNotif", targetNamespace = "http://c-e/clacli")
QstnRechParamNotif parameters
) throws fr.itgce.clacli.tCore.ws.exception.WSClaCliRuntimeFault_Exception, fr.itgce.clacli.tCore.ws.exception.WSClaCliMetierFault_Exception;
@WebMethod(operationName = "CreerNotifProducteur", action = "http://c-e/clacli/CreerNotifProducteur")
@WebResult(name = "RsttAddNotifDoc", targetNamespace = "http://c-e/clacli", partName = "parameters")
public RsttAddNotifDoc creerNotifProducteur(
@WebParam(partName = "parameters", name = "QstnAddNotifDoc", targetNamespace = "http://c-e/clacli")
QstnAddNotifDoc parameters
) throws fr.itgce.clacli.tCore.ws.exception.WSClaCliRuntimeFault_Exception, fr.itgce.clacli.tCore.ws.exception.WSClaCliMetierFault_Exception;
}
< /code>
und meine Klasse für die Verwaltung meines Webdienstes: < /p>
@WebService(serviceName = "WSNotification",
portName = "WSNotificationPort",
endpointInterface = "fr.itgce.clacli.notification.autogenerated.WSNotification",
targetNamespace = "http://c-e/clacli")
public class WSNotificationImpl extends SpringBeanAutowiringSupport implements WSNotification {
@Autowired
@Qualifier("wsCreerNotifProducteur")
private InvokedService wsCreerNotifProducteur;
@Autowired
@Qualifier("wsRechercherParamNotif")
private InvokedService wsRechercherParamNotif;
@Override
public RsttRechParamNotif rechercherParamNotif(QstnRechParamNotif parameters)
throws fr.itgce.clacli.tCore.ws.exception.WSClaCliRuntimeFault_Exception, fr.itgce.clacli.tCore.ws.exception.WSClaCliMetierFault_Exception {
try {
return wsRechercherParamNotif.execute(parameters);
} catch (ClaCliRuntimeException exc) {
throw new fr.itgce.clacli.tCore.ws.exception.WSClaCliRuntimeFault_Exception(exc);
} catch (ClaCliMetierException exc) {
throw new fr.itgce.clacli.tCore.ws.exception.WSClaCliMetierFault_Exception(exc);
}
}
@Override
public RsttAddNotifDoc creerNotifProducteur(QstnAddNotifDoc parameters)
throws fr.itgce.clacli.tCore.ws.exception.WSClaCliRuntimeFault_Exception, fr.itgce.clacli.tCore.ws.exception.WSClaCliMetierFault_Exception {
try {
return wsCreerNotifProducteur.execute(parameters);
} catch (ClaCliRuntimeException exc) {
throw new fr.itgce.clacli.tCore.ws.exception.WSClaCliRuntimeFault_Exception(exc);
} catch (ClaCliMetierException exc) {
throw new fr.itgce.clacli.tCore.ws.exception.WSClaCliMetierFault_Exception(exc);
}
}
}
< /code>
Ich sehe nicht, was ich vielleicht vergessen habe; Haben Sie irgendwelche Ideen? < /p>
Hier sind die verschiedenen Importe, die ich verwende:
jakarta.servlet
jakarta.servlet-api
5.0.0
provided
org.apache.cxf
cxf-spring-boot-starter-jaxws
4.0.4
org.apache.cxf
cxf-rt-frontend-jaxws
4.0.4
org.glassfish.jaxb
jaxb-runtime
3.0.1
org.apache.cxf
cxf-rt-transports-http
4.0.4
jakarta.xml.bind
jakarta.xml.bind-api
3.0.1
com.sun.xml.ws
jaxws-rt
4.0.3