Я уже преобразовал все свои источники в Jakarta. Я получаю следующую ошибку, когда я называю URL http: // localhost: 8080/classeurclientws/services/wsnotificationsoap:
10-апреля-2025 11: 36: 53.522 Предупреждение [http-nio-8080-exec-2] org.apache.cxf.transport.servlet.servletcontroller.invoke Нельзя найти запрос на http: // localhost: 8080/classeurclientws/services/wsnotificationsoAp. 11: 36: 28.154 Информация [RMI TCP Connection (2) -127.0.0.1] org.apache.cxf.wsdl.service.factory.reflectionservicefactorybean.buildservicefromclass Создание {http://c-e.fr/clacli fr.itgce.clacli.notification.autogenerated.wsnotification 10-APR-2025 11: 36: 38.095 Информация [RMI TCP Connection (2) -127.0.0.1] org.apache.cxf.endpoint.serverimpl.initdestination Настройка /services/wsnotificationsoap.
Я не вижу, откуда возникает проблема.
Код: Выделить всё
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>
В моем файле Bean (Context-Spring-CC-inection-wsdossier.xml), следующие значения: < /p>
< /code>
И вот мой интерфейс реализации Apache CXF: < /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>
и мой класс для управления моей веб -службой: < /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>
Я не вижу, что я мог бы забыть; У вас есть идеи?
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
Подробнее здесь: https://stackoverflow.com/questions/795 ... -tomcat-10