0
안녕 얘들 현재 내가 작업을 오전으로 Restlet과 java.There 가능성 요구 사항이 HTTPS에 HTTP을 변경했다. 많은 연구를 한 후 내 리셉터을 https에 노출시킬 수 있습니다. 하지만 restclient에서 URL을 치려고 할 때 응답이 없으며 오류도 발생하지 않습니다. 개방 포트를 찾고있을 때 포트를 찾을 수 있습니다. 코드와 로그를 내 코드와 함께 보내고 있습니다. 이 문제를 해결하는 데 도움을주십시오.는 낙타를 사용하여 HTTPS로 HTTP를 변경하는 방법 낙타를 기반으로 프로젝트에
로그
Mar 07, 2017 5:35:51 PM org.restlet.engine.connector.NetServerHelper start
INFO: Starting the internal [HTTPS/1.1] server on port 8060
[pache.camel.spring.Main.main()] RestletComponent DEBUG Added method based router: [email protected]
[pache.camel.spring.Main.main()] RestletComponent DEBUG Attached restlet uriPattern: /jsonRestlet method: POST
[pache.camel.spring.Main.main()] RestletComponent DEBUG Attached methodRouter uriPattern: /jsonRestlet
[pache.camel.spring.Main.main()] RestletComponent DEBUG Started methodRouter uriPattern: /jsonRestlet
[pache.camel.spring.Main.main()] SpringCamelContext INFO Route: route1 started and consuming from: Endpoint[https://localhost:8060/jsonRestlet]
[pache.camel.spring.Main.main()] ultManagementLifecycleStrategy DEBUG Load performance statistics disabled
[pache.camel.spring.Main.main()] SpringCamelContext INFO Total 1 routes, of which 1 are started.
[pache.camel.spring.Main.main()] SpringCamelContext INFO Apache Camel 2.17.2 (CamelContext: camel-1) started in 1.302 seconds
[pache.camel.spring.Main.main()] MainSupport DEBUG Starting Spring ApplicationContext: org[email protected]77575e6a
[pache.camel.spring.Main.main()] DefaultListableBeanFactory DEBUG Returning cached instance of singleton bean 'lifecycleProcessor'
[pache.camel.spring.Main.main()] ClassPathXmlApplicationContext DEBUG Publishing event in org[email protected]77575e6a: org.springframework.context.event.ContextStartedEvent[source=org[email protected]77575e6a: startup date [Tue Mar 07 17:35:49 IST 2017]; root of context hierarchy]
[pache.camel.spring.Main.main()] DefaultListableBeanFactory DEBUG Returning cached instance of singleton bean 'camel-1'
[pache.camel.spring.Main.main()] SpringCamelContext DEBUG onApplicationEvent: org.springframework.context.event.ContextStartedEvent[source=org[email protected]77575e6a: startup date [Tue Mar 07 17:35:49 IST 2017]; root of context hierarchy]
[pache.camel.spring.Main.main()] DefaultListableBeanFactory DEBUG Returning cached instance of singleton bean 'camel-1'
내 요청을 생성
URL:: https://localhost:8060/jsonRestlet
Request body::{"name":"mdnoorshid"}
<?xml version="1.0" encoding="UTF-8"?>
<!-- Configures the Camel Context -->
<beans xmlns="http://www.springframework.org/schema/beans"
\t xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring"
\t xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
\t <camel:sslContextParameters id="mySslContext">
\t \t <camel:keyManagers keyPassword="bizruntime">
\t \t \t <camel:keyStore resource="C:\\Users\\deepalisingh\\Desktop\\keystore.jks"
\t \t \t \t password="bizruntime" />
\t \t </camel:keyManagers>
\t \t <camel:serverParameters clientAuthentication="WANT" />
\t </camel:sslContextParameters>
<bean id="sendPOST" class="com.bizruntime.CamelRestletHTTPS.HTTPSsendPost"></bean>
\t <camelContext xmlns="http://camel.apache.org/schema/spring">
\t \t <route>
\t \t \t <from uri="restlet:https://localhost:8060/jsonRestlet?restletMethod=POST&sslContextParameters=#mySslContext"/>
\t \t \t <to uri="bean:sendPOST?method=sendPost" />
\t \t </route>
\t </camelContext>
</beans>
로그는 어디에 있습니까? –
기본적으로 HTTPS는 443 –
입니다. 안녕하세요. @SoucianceEqdamRashti. 로그를 찾을 수 있습니다. 죄송합니다. 로그 첨부를 잊어 버렸습니다. 응답 해 주셔서 감사합니다. –