I ran into the same problem. Let's say my file is called MyApp. Previously, my JSP stated something like:
import MyApp; Tomcat 4.0.4 was cool with this. But when I loaded 4.1.10 or 4.1.12, I get the same error you do. So I moved MyApp.class from \classes to \classes\MyAppGrp, then adjusted my JSP to the following: import MyAppGrp.MyApp; It works fine after that. Is this a reported bug? I see this as a bug, but I only currently have one page using a single class anyway, so it's not a big workout for me to adjust my JSP to the setup I described. > > From: "Sexton, George" <[EMAIL PROTECTED]> > Date: 2002/09/28 Sat AM 11:52:16 EDT > To: <[EMAIL PROTECTED]> > Subject: Error Compiling JSP under 4.1.12 > > I am getting these errors when I try to compile a JSP page under 4.1.12 > > /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. > java:7: '.' expected > import WebApp; > ^ > /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. > java:8: '.' expected > import CalServlet; > ^ > /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. > java:48: cannot resolve symbol > symbol : variable WebApp > location: class org.apache.jsp.index_jsp > out.print(WebApp.PRODUCT_NAME); > > > The WebApp, and CalServlet classes exist in my context/WEB-INF/classes > directory. I enabled debug for the JSP compiler and can see that the > classpath is correct. This JSP page works fine under 4.0.4 and most other > Servlet containers. > > Any ideas on where I am going wrong would be appreciated. > > George Sexton > MH Software, Inc. > Home of Connect Daily Web Calendar Software > http://www.mhsoftware.com/connectdaily.htm > Voice: 303 438 9585 > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>