首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

tomcat 开发一个小留言板 看这是什么东东

2013-09-11 
tomcat 开发一个小留言板 看这是什么错误?org.apache.jasper.JasperException: Unable to compile class f

tomcat 开发一个小留言板 看这是什么错误?
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:54: 非法字符: \12288
銆?銆?銆?String userName="root";
^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:54: 非法字符: \12288
銆?銆?銆?String userName="root";
 ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:54: 非法字符: \12288
銆?銆?銆?String userName="root";
  ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:59: 非法字符: \12288
銆?銆?銆?String username=request.getParameter("username"); 
^







An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
 ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
  ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
  ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:80: 需要 ';'

^
79 错误



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
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:802

[解决办法]
类不能编译,贴JSP页面代码
[解决办法]
哥们 路径上有中文吧
[解决办法]
at line: 7 in the jsp file: /notepadinsert.jsp 



看第7行。

需要 ';'
[解决办法]
或者是你用了中文的符号,仔细看一看啊
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html

热点排行