Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

org.apache.jasper.JasperException: Unable to compile class for JSP

Status
Not open for further replies.

someTimeOnly

Technical User
Oct 12, 2003
78
PK
When I hit Some.jsp, I get the following error
"org.apache.jasper.JasperException: Unable to compile class for JSP"




my sources are as follow:

______________________Some.jsp_________________________

<%@ page import="SomePackage.SomeBean"%>
_______________________________________________________



____________________SomeBean.java______________________

package SomePackage;

public class SomeBean
{
private String msg = "No msg";

public String getMsg()
{
return(msg);
}

public void setMsg(String message)
{
msg = message;
}
}

_______________________________________________________

and .class is in
examples\WEB_INF\classes\SomePackage.SomeBean.class

 
I'v got rid of error.

when Some.jsp was under ROOT directory, it was causing error.

but when I move it to example/jsp then it's ok.

Can anyone explain why???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top