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 only solution, that I found after hours of banging my head on the
keyboard, is to put the jsp files in the root context directory.  For
instance, if the jsp files are at /index.jsp, it works fine.  If it's at
/somedir/index.jsp , it can't find the classes in the WEB-INF/classes dir. 
This is very strange behaviour, am I the only one that has seen this?  I
kept the configuration pretty much the same as what it was in Tomcat 5.0.


--
View this message in context: 
http://www.nabble.com/Tomcat-5.5-Upgrade-Problems-t1404562.html#a3780356
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to