You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Ashwin J <as...@gmail.com> on 2007/09/26 14:03:52 UTC
(Unknown)
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
Re:
Posted by Ashwin J <as...@gmail.com>.
Thank you for the help Simon. It is working after manually adding the cast.
On 9/26/07, Simon Laws <si...@googlemail.com> wrote:
>
> On 9/26/07, Ashwin J <as...@gmail.com> wrote:
> >
> > Hi Simon,
> >
> > Thanks for your reply.
> >
> > I am facing the same problem in 0.99 release also.
> >
> >
> > On 9/26/07, Simon Laws <si...@googlemail.com> wrote:
> > >
> > > On 9/26/07, Ashwin J <as...@gmail.com> 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
>
Re:
Posted by Simon Laws <si...@googlemail.com>.
On 9/26/07, Ashwin J <as...@gmail.com> wrote:
>
> Hi Simon,
>
> Thanks for your reply.
>
> I am facing the same problem in 0.99 release also.
>
>
> On 9/26/07, Simon Laws <si...@googlemail.com> wrote:
> >
> > On 9/26/07, Ashwin J <as...@gmail.com> 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
Re:
Posted by Florian Rosenberg <fr...@us.ibm.com>.
"Ashwin J" <as...@gmail.com> wrote on 09/26/2007 09:46:09 AM:
> Hi Simon,
>
> Thanks for your reply.
>
> I am facing the same problem in 0.99 release also.
the "javacError" in your stacktrace probably indicates an error in your
environment setup, Tomcat can compile the JSPs to servlet (internally). to
be sure that JSP files are correctly handled by your Tomcat installation
try to build a simple JSP page (without any dependencies to Tuscany, etc)
and a run it. if that works, you are pretty sure that your setup works (at
least). You can also use the JSP/Servlet samples that come with Tomcat.
Please try it with the latest release, as Simon indicated, there are a lot
of changes from 0.99 to 1.0 :).
-Florian
> On 9/26/07, Simon Laws <si...@googlemail.com> wrote:
> >
> > On 9/26/07, Ashwin J <as...@gmail.com> 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
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org
Re:
Posted by Ashwin J <as...@gmail.com>.
Hi Simon,
Thanks for your reply.
I am facing the same problem in 0.99 release also.
On 9/26/07, Simon Laws <si...@googlemail.com> wrote:
>
> On 9/26/07, Ashwin J <as...@gmail.com> 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
>
Re:
Posted by Simon Laws <si...@googlemail.com>.
On 9/26/07, Ashwin J <as...@gmail.com> 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