Did you per-complile the JPS's? - don't - in this case
Ensure the jsp version you coded against is the same as that supported
by the hosting company.

Jon Wingfield wrote:
> You are using jdk1.5 features (autoboxing, for example ) in your JSP pages.
> Early versions of the 5.5 tree bundled a jsp compiler (JDT) which didn't
> support these new language features.
> Later versions bundled an updated version of the compiler...
> For deploying on 5.5.9 just get rid of your autoboxing:
> 
> int thing = 4;
> request.setAttribute("stuff", new Integer(thing));
> 
> instead of
> 
> request.setAttribute("stuff", thing);
> 
> Regards,
> 
> Jon
> 
> Girish Havaldar wrote:
>> On 05/07/07, Girish Havaldar <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> we have an application developed using the following components as
>>> listed
>> below
>>>
>>> mysql             5.0.27
>>> jdk                 1.5.0_06
>>> jre                  1.5.0_06
>>> tomcat            5.5.20
>>> Apache           2
>>> phpMyAdmin   2.9.2
>>> Servlets          2.3
>>> JSP                1.2
>>>
>>>  Our application is showing errors when deployed on tomcat 5.5.9(the
>>> Hosting company is using Tomcat 5.5.9.)
>> ERROR:
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> org.apache.jasper.JasperException: Unable to compile class for JSP
>>
>> An error occurred at line: 67 in the jsp file: /classification.jsp
>> Generated servlet error:
>> Type mismatch: cannot convert from Integer to int
>>
>> An error occurred at line: 67 in the jsp file: /classification.jsp
>> Generated servlet error:
>> The method add(int, Object) in the type ArrayList is not applicable
>> for the
>> arguments (int)
>>
>> An error occurred at line: 226 in the jsp file: /classification.jsp
>> Generated servlet error:
>> The method setAttribute(String, Object) in the type ServletRequest is not
>> applicable for the arguments (String, int)
>>
>> An error occurred at line: 263 in the jsp file: /classification.jsp
>> Generated servlet error:
>> The method setAttribute(String, Object) in the type ServletRequest is not
>> applicable for the arguments (String, int)
>>
>>
>>    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:853)
>>
>> note The full stack trace of the root cause is available in the Apache
>> Tomcat/5.5.9 logs.
>>
>>
>>>  so what is the solution.
>>> Also plz send me info abt hosting comapny who can support the above
>>> specification.
>>>
>>>
>>> Thank you,
>>>
>>> Girish S.Havaldar.
>>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to