天天看点

Compile failed; see the compiler error output for details.

tomcat:报如下错误

ERROR [http-8080-Processor16] (Compiler.java:385) - Javac exception

Compile failed; see the compiler error output for details.

D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: "catch" 不带有 "try"

} catch (Throwable t) {

^

D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: 需要 ')'

} catch (Throwable t) {

^

D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: 不是语句

} catch (Throwable t) {

^

D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: 需要 ';'

} catch (Throwable t) {

^

D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1302: "finally" 不带有 "try"

} finally {

^

D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:49: "try" 不带有 "catch" 或 "finally"

try {

^

D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1306: 进行语法解析时已到达文件结尾

}

^

7 错误

---------------------------------------------------------------------

[color=red]解决方案:[/color]

[color=blue]1,actionforword 返回retun null

2,jsp页面少一个大括号(}),或者多一个大括号(})[/color]