Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option.-----Original Message----- From: Sarath PS [mailto:[EMAIL PROTECTED]] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote:Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev "Sarath PS" <[EMAIL PROTECTED]>:hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83)org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315> )org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511> ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274> )org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]