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]>:
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315>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.JspCompilationContext.compile(JspCompilationContext.java:511>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.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]
