gpt4 book ai didi

javax.servlet.ServletException : missing jspFile

转载 作者:行者123 更新时间:2023-11-28 22:35:59 26 4
gpt4 key购买 nike

我使用 tomcat 7.0.29,当我部署我的应用程序(一个小程序)并从 eclipse 启动 tomcat 时,我收到了这个错误。

严重:Servlet/test 抛出 load() 异常 javax.servlet.ServletException:缺少 jsp 文件

可能是什么问题?

最佳答案

维基百科告诉我

Java applets can run in a Web browser using a Java Virtual Machine (JVM), or in Sun's AppletViewer, a stand-alone tool for testing applets

为此:

SEVERE: Servlet /test threw load() exception javax.servlet.ServletException: missing jspFile

您的 Applet 真的包含 JSP 文件吗?如果是,那么您可以在 TOMCAT 上运行它

运行 Java Applet嵌入 <applet>标记如下:

<!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>HelloWorld_example.html</TITLE>
</HEAD>
<BODY>
<H1>A Java applet example</H1>
<P>Here it is: <APPLET code="HelloWorld.class" WIDTH="200" HEIGHT="40">
This is where HelloWorld.class runs.</APPLET></P>
</BODY>
</HTML>

或者您可以使用 appletviewer 如图所示 here

关于javax.servlet.ServletException : missing jspFile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13357615/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com