Sorry! I use chinese.

ServiceMix 4.4.x bug.

org.ops4j.pax.web.cfg內容如下:
org.osgi.service.http.secure.enabled=true
org.ops4j.pax.web.ssl.keystore=etc/cherry.jks
org.ops4j.pax.web.ssl.password=password
org.ops4j.pax.web.ssl.keypassword=password
org.osgi.service.http.port.secure=8443
org.ops4j.pax.web.config.file=etc/jetty.xml
javax.servlet.context.tempdir=data/pax-web-jsp

我以 client 存取 Restful ws or Soap ws後, 總會造成
CPU使用率接近100%, 把ServiceMix關掉後, 及回復正常.
我的client程式如下:
private static void testGetssl1() throws HttpException, IOException
    {
        String BASE_SERVICE_URL = 
                "https://localhost:8443/cxf/TestRESTFul/RESTFulService/test1";;
        
        
        SSLProvider trustAll = new SSLProvider();
        trustAll.install();

        // Header setting
        System.out.println();
        System.out.println("Sending HTTPS GET request to query
MyFirstRESTFulService info");
        HttpClient httpclient = new HttpClient();
        GetMethod httpget = new GetMethod(BASE_SERVICE_URL);
        httpget.addRequestHeader("Accept" , "text/plain");

        // Authorization setting
 
        String encoding = "username:password";
                String v_encoding = (new sun.misc.BASE64Encoder()).encode(
encoding.getBytes() );
                httpget.addRequestHeader("Authorization", "Basic "+v_encoding); 
                
        try {
            httpclient.executeMethod(httpget);
            System.out.println(httpget.getResponseBodyAsString());
            System.out.println("response code: "+httpget.getStatusCode());
        } finally {
            httpget.releaseConnection();
        }
    }

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/ServiceMix-4-4-x-bug-access-ssl-RESTFul-ws-or-Soap-ws-tp5516652p5516652.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Reply via email to