![](/img/trans.png)
[英]Error 404: SRVE0190E: File not found: {0} on websphere 8.5
[英]Websphere liberty profile error: 404 SRVE0190E
错误的原因可能是什么: Error 404: SRVE0190E: File not found: /SimpleServletPath
我正在Websphere自由概要文件服务器中进行部署。
我无法进入管理控制台登录页面
我可以在我的Websphere自由概要文件服务器上访问我的欢迎页面,但是在创建servlet之后无法访问。 那就是上面的404错误出现的时候。
在线上有类似的帖子,建议更改com.ibm.ws.webcontainer.invokefilterscompatibility=true
。 我找不到如何设置此参数,因为我无法访问Websphere管理控制台登录名。
我通过Eclipse市场安装了Websphere。
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>ServletExplore</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app
默认情况下,您应用的上下文根将默认为应用名称。 您可以通过在“服务器”选项卡上查看服务器并编辑其配置来更改它(包括将其设置为/)。 您可以在GUI中或直接在server.xml中进行更改。
如果您的应用程序叫做我的应用程序,我怀疑localhost:9080 / myapp / SimpleServletPath是您的servlet当前所在的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.