Return-Path: Delivered-To: apmail-axis-c-user-archive@www.apache.org Received: (qmail 69643 invoked from network); 7 May 2010 06:32:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 May 2010 06:32:50 -0000 Received: (qmail 71772 invoked by uid 500); 7 May 2010 06:32:49 -0000 Delivered-To: apmail-axis-c-user-archive@axis.apache.org Received: (qmail 71657 invoked by uid 500); 7 May 2010 06:32:49 -0000 Mailing-List: contact c-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C User List" Delivered-To: mailing list c-user@axis.apache.org Received: (qmail 71649 invoked by uid 99); 7 May 2010 06:32:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 06:32:48 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lylylytc@hotmail.com designates 65.54.61.103 as permitted sender) Received: from [65.54.61.103] (HELO snt0-omc2-s52.snt0.hotmail.com) (65.54.61.103) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 06:32:38 +0000 Received: from SNT127-DS19 ([65.55.90.73]) by snt0-omc2-s52.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 6 May 2010 23:32:17 -0700 X-Originating-IP: [202.175.42.3] X-Originating-Email: [lylylytc@hotmail.com] Message-ID: From: =?gb2312?B?wqzR7g==?= To: Subject: Fail to create a JSF page as client Date: Fri, 7 May 2010 14:31:55 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01CAEDF2.0B169BA0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 X-OriginalArrivalTime: 07 May 2010 06:32:17.0232 (UTC) FILETIME=[09C31500:01CAEDAF] X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0010_01CAEDF2.0B169BA0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Dear Developers, I would like to use JSF to create a client a this is my JSF code and = bean code: =20 public String operation() { System.out.println(echoarg); try { //instantiate the stub EchoServiceStub stub =3D new EchoServiceStub(); System.out.println(echoarg); EchoServiceStub.Echo=20 request =3D new EchoServiceStub.Echo(); //fill up the request object request.setArgs0(echoarg); //send and get the response EchoServiceStub.EchoResponse=20 response=3Dstub.echoString(request); System.out.println(response.getText()); } catch (Exception e) { e.printStackTrace(); } return ("success"); } But it show me these errors: javax.servlet.ServletException: #{clientBean.operation}: = java.lang.NoClassDefFoundError: org/apache/http/HttpResponseFactory javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) What can I do ? Yours sincerely, Jason ------=_NextPart_000_0010_01CAEDF2.0B169BA0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Dear Developers,
 
I would like to use JSF to create a client a = this is my=20 JSF code and bean code:
 
 <h:form>
 <h:inputText = value=3D"#{clientBean.echoarg}"></h:inputText>
 <h:co= mmandButton =20 value=3D"Go!"=20 action=3D"#{clientBean.operation}"></h:commandButton>
 &= lt;/h:form>
 
 public String=20 operation()
 {
  System.out.println(echoarg);
&nb= sp;    =20 try {
      //instantiate the=20 stub
       EchoServiceStub stub =3D new=20 EchoServiceStub();
 =20   System.out.println(echoarg);
 
       = EchoServiceStub.Echo=20
          request =3D  = new=20 EchoServiceStub.Echo();
       //fill up the = request=20 object
       =20 request.setArgs0(echoarg);
       //send and = get the=20 response
        = EchoServiceStub.EchoResponse=20
          =20 response=3Dstub.echoString(request);
     &nb= sp;       =20 System.out.println(response.getText());
     =        =20 } catch (Exception e)=20 {
           &n= bsp;   =20 e.printStackTrace();
        &= nbsp;  =20 }
           &n= bsp;=20 return ("success");
 
 }
 
But it show me these = errors:
javax.servlet.ServletException: =
#{clientBean.operation}: java.lang.NoClassDefFoundError: =
org/apache/http/HttpResponseFactory
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
 
What can I do ?
 
Yours sincerely,
Jason
 
------=_NextPart_000_0010_01CAEDF2.0B169BA0--