thanks for your replay. But i am using linux !
No i got what went wrong. Actually it a Java Error.  When we use classes with out package in jsp file, Jasper will create import statement with out class name. If we are using jdk1.4 it will through error since after 1.4 Java is more strict about packages.  You can find it in jdk compatibility docs. Also look previous reply to my questions.

references:
<>http://java.sun.com/j2se/1.4/compatibility.html#incompatibilities1.4
http://forum.java.sun.com/thread.jsp?thread=466368&forum=31&message=2145193&forum=31&message=2145193

thanks every body
Sarath

Sheetal Dabadghav wrote:
Jasper errors are seen very commonly when it encounters a space in the
filepath.
Is the Tomcat on your machince installed inside Program Files ?
If yes, You can try:
1) Instead of having your application in webapps folder, keep it on a local
directory elsewhere (no spaces in the filepath please). Point your
applications context in web.xml to that directory.

This must work.. If not you can try to
2) Uninstall Tomcat from Progeam Files and reinstall it on the root say D:\

Hope this helps.
-Sheetal

-----Original Message-----
From: Sarath PS [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 22, 2004 12:34 PM
To: [EMAIL PROTECTED]
Subject: jasper error compiling jsp


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
.java:6: '.' expected
import Account;
              ^
1 error


	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl
er.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]

Reply via email to