• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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: 67590
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.
     
    You showed up just in time for the waffles! And this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    reply
      Bookmark Topic Watch Topic
    • New Topic