• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat error after upgrade

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
A web app development required for tomcat to be upgraded from 6.0.20 to Tomcat 7.any. The app is not developed by me so no details.
When switching to tomcat 7.0.54 the webui returns error 500 and catalina.out outputs:

[2015-03-09 14:44:14,154] ERROR log4jFactory -8080-exec-5 - Unable to compile class for JSP
org.apache.jasper.JasperException: Unable to compile class for JSP
Caused by: java.lang.IllegalArgumentException: Page directive: invalid value for import

What could these errors hint?
Switching back to tomcat6 everything works. Also the same webapp strangely works with tomcat 7 on another server.
Thank you in advance!
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sam Kalamees wrote:[2015-03-09 14:44:14,154] ERROR log4jFactory -8080-exec-5 - Unable to compile class for JSP
org.apache.jasper.JasperException: Unable to compile class for JSP
Caused by: java.lang.IllegalArgumentException: Page directive: invalid value for import


This intimates two things:
  • Scriptlets are being used in JSPs despite being 14 years obsolete.
  • An imported class is not being found.


  • To me, step 1 would be to determine which JSP is failing.
     
    Don't get me started about those stupid light bulbs.
    reply
      Bookmark Topic Watch Topic
    • New Topic