(word)Jetty部署jsp文件抛错解决方案.docxVIP

  • 1
  • 0
  • 约 10页
  • 2018-04-14 发布于北京
  • 举报
(word)Jetty部署jsp文件抛错解决方案

Q:Ive tried using the jetty plugin to load a?war containing an application which includes some JSPs.? Jetty starts up fine, but when I go to the first page (a JSP) I get the?error below.? I realise this is because Jetty cant find tools.jar to compile the?generated servlet code- what I dont know is how to add tools.jar to the?jetty plugin classpath. JAVA_HOME is set up correctly. A:解决方案: 1、确认工程中使用的是jdk,不是jre 2、确认工程中的jdk是环境变量中配置的那个 3、classpath中有:%JAVA_HOME%\lib\tools.jar; 4、jetty运行参数配置中webapp的路径要设置正确,应该设置成jsp文件所在路径,不是java文件路径 设置方法:点击工具条中的run-?run configurations ,找到对应的工程,检查WebApp dir是不是当前工程的we

文档评论(0)

1亿VIP精品文档

相关文档