I've been getting this error after upgrading from Tomcat 5.0 to Tomcat 5.5:
Generated servlet error:
Only a type can be imported. com.x.MyClass resolves to a package
An error occurred at line: 16 in the jsp file: /index.jsp
Generated servlet error:
MyClass cannot be resolved to a type
And the
I'm pretty sure you can't use 1.5 features in the jsp page itself because
it's not using the javac compiler. You can use 1.5 features in your java
class files though.
--
View this message in context:
http://www.nabble.com/jdk1.5%2C-tomcat-5.5.9-and-jsp-compilation-t1392691.html#a3779909
Sent fr
Generated servlet error:
Only a type can be imported. x.y.MyClass resolves to a package
This happens for every class used in the jsp page. It is a very strange
occurence and appears to have happened after upgrading to Tomcat 5.5.16 and
JDK 1.5.0_06 .
Has anyone else come across these issues lat