You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Xiang Li <li...@gmail.com> on 2008/09/06 09:14:53 UTC

Re: Delivery Status Notification (Failure)

>
> We have implemented the registration function of sipservlet which used SCA
> binding of Tuscany to encapsulate and call. In implementing, we mainly
> simulate the example called calculator-webapp in "sample" of Tuscany. The
> following is the key coding:
>
> <%@ page import="org.apache.tuscany.sca.host.embedded.SCADomain"%>
>
> <%@ page import="calculator.CalculatorService" %>
>
> <%@ page import="java.util.Date" %>
>
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
>
> <%
>
>    SCADomain scaDomain = (SCADomain) application.getAttribute(
> "org.apache.tuscany.sca.SCADomain");
>
>    CalculatorService calculatorService =
> (CalculatorService)scaDomain.getService(CalculatorService.*class*,
> "CalculatorServiceComponent");
>
>    String id=*null*,
>
>    contact=*null*;
>
>     Date registrationTime=*null*,
>
>     expirationTime=*null*;
>
>
>
>     id = request.getParameter("id");
>
>     contact = request.getParameter("contact");
>
>     registrationTime = *new* Date(request.getParameter("registrationTime"
> ));
>
>     expirationTime = *new* Date(request.getParameter("expirationTime"));
>
>
>
>     Date dat = *new* Date();
>
> %>
>
> <html>
>
> <head><title>Registration Sample</title></head>
>
>
>
> <body>
>
> <h4>Registration Service Sample</h4>
>
> <p></p>
>
> <table>
>
>     <tr align="center">
>
>         <th>Expression</th><th>Result</th>
>
>     </tr>
>
>     <tr align="center">
>
>         <td>ID: </td><td><%= id %></td>
>
>     </tr>
>
>     <tr align="center">
>
>         <td>Contact: </td><td><%= contact %></td>
>
>     </tr>
>
>     <tr align="center">
>
>         <td>Registration Time: </td><td><%= registrationTime %></td>
>
>     </tr>
>
>     <tr align="center">
>
>         <td>Expiration Time: </td><td><%= expirationTime %></td>
>
>     </tr>
>
>     <tr align="center">
>
>         <td>Call Registration Service:  </td><td><%=calculatorService.register(id, contact, registrationTime, expirationTime)
> %></td>
>
>     </tr>
>
> </table>
>
> </body>
>
> </html>
>
>
>
>
>
> But this function was not steady and litter strong. Sometimes, it causes
> error. Some error information are like these:
>
> org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
>
>
>
> PWC6199: Generated servlet error:
>
>     [javac] C:\sailfin\domains\domain1\generated\jsp\j2ee-modules\calwebapp\org\apache\jsp\calc_jsp.java:104: ??????? "void" ??
>
>     [javac]       out.print( calculatorService.register(id, contact, registrationTime, expirationTime) );
>
>     [javac]                                            ^
>
>     [javac] ??? C:\sailfin\domains\domain1\generated\jsp\j2ee-modules\calwebapp\org\apache\jsp\calc_jsp.java ?????????? API?
>
>     [javac] ??? ??????????? -Xlint:deprecation ?????
>
> [javac] 1 ??
>
>
>
> What wrong is it?
>
>
>
> Message from ChinaSIPAPP team.
>
>
>
> 2008-09-06
> ------------------------------
> lixiang03
>