Thank you for the help Simon. It is working after manually adding the cast.
On 9/26/07, Simon Laws <[EMAIL PROTECTED]> wrote: > > On 9/26/07, Ashwin J <[EMAIL PROTECTED]> wrote: > > > > Hi Simon, > > > > Thanks for your reply. > > > > I am facing the same problem in 0.99 release also. > > > > > > On 9/26/07, Simon Laws <[EMAIL PROTECTED]> wrote: > > > > > > On 9/26/07, Ashwin J <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > > > > > I am trying to deploy the WAR files generated from the sample files > in > > > > > > Tuscany 0.91 using Tomcat 5.5 but there is a common error which I am > > > > facing. > > > > > > > > Here I was trying to deploy the *calculator-webapp* in " > > > > > > > > > > > > > > apache-tuscany-sca-0.91-incubating\tuscany-sca-0.91-incubating\samples\calculator-webapp > > > > " > > > > the following error occured > > > > > > > > org.apache.jasper.JasperException: Unable to compile class for JSP > > > > > > > > An error occurred at line: 24 in the jsp file: /calc.jsp > > > > Generated servlet error: > > > > Type mismatch: cannot convert from Object to CalculatorService > > > > > > > > > > > > org.apache.jasper.compiler.DefaultErrorHandler.javacError( > > > > DefaultErrorHandler.java:84) > > > > org.apache.jasper.compiler.ErrorDispatcher.javacError( > > > > ErrorDispatcher.java :328) > > > > org.apache.jasper.compiler.JDTCompiler.generateClass( > > > > JDTCompiler.java:397) > > > > org.apache.jasper.compiler.Compiler.compile(Compiler.java > :288) > > > > org.apache.jasper.compiler.Compiler.compile(Compiler.java > :267) > > > > org.apache.jasper.compiler.Compiler.compile(Compiler.java > :255) > > > > org.apache.jasper.JspCompilationContext.compile( > > > > JspCompilationContext.java:556) > > > > org.apache.jasper.servlet.JspServletWrapper.service( > > > > JspServletWrapper.java:293) > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile( > > > > JspServlet.java:291) > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java > > > :241) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > > > Any help in this regard is highly appreciated. > > > > > > > > > > > > > > > > Thanks & Regards, > > > > > > > > Ashwini Kumar > > > > > > > Hi Ashwini > > > > > > Not sure what's going here. Before we get into more detail is it > > possible > > > for you to use a newer version of Tuscany, for example, you can get > > > the 1.0release here ( > > > http://incubator.apache.org/tuscany/sca-java-releases.html ). > > > > > > Regards > > > > > > Simon > > > > > > Just to give this a spin I deployed sample-calculator-webapp into tomcat > 5.5.23 and it works for me. I know that's not immediately useful to you > but > it does indicate that something else going on here. It looks like the line > it's complaining about the line in calc.jsp is where the service proxy is > cast to a CalculatorService interface. > > There was no cast in the pre 1.0 versions and this doesn't cause me > problems > but I do note that this cast was added on 14th September and is included > in > the v1.0 release. So this might solve your problem. > > Regards > > Simon >
