Java Websphere 自由配置文件错误:404 SRVE0190E
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23764475/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Websphere liberty profile error: 404 SRVE0190E
提问by user3655096
What could be the reason for the error: Error 404: SRVE0190E: File not found: /SimpleServletPath
错误的原因可能是什么: Error 404: SRVE0190E: File not found: /SimpleServletPath
I am deploying in websphere liberty profile server.
我正在 websphere 自由配置文件服务器中部署。
I can't reach my admin console login page
我无法访问我的管理控制台登录页面
I can reach my welcome page on my websphere liberty profile server but can't do so after creating a servlet. That's when the above 404 error comes up.
我可以访问我的 websphere 自由配置文件服务器上的欢迎页面,但在创建 servlet 后无法访问。这就是上述 404 错误出现的时候。
There are similar posts online that advice to change com.ibm.ws.webcontainer.invokefilterscompatibility=true
. I can't find how to set this parameter because I can't hit the websphere admin console login.
网上有类似的帖子建议改com.ibm.ws.webcontainer.invokefilterscompatibility=true
。我找不到如何设置此参数,因为我无法登录 websphere 管理控制台。
I installed websphere through eclipse marketplace.
我通过 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
采纳答案by Holly Cummins
By default, your app's context root will default to the name of the application. You can change it (including setting it to /) by looking at the server on the Servers tab and editing its configuration. You can make changes in the GUI or directly in the server.xml.
默认情况下,您的应用程序的上下文根将默认为应用程序的名称。您可以通过查看服务器选项卡上的服务器并编辑其配置来更改它(包括将其设置为 /)。您可以在 GUI 中或直接在 server.xml 中进行更改。
If your app is called my app, I suspect localhost:9080/myapp/SimpleServletPath is where your servlet is currently living.
如果您的应用程序称为我的应用程序,我怀疑 localhost:9080/myapp/SimpleServletPath 是您的 servlet 当前所在的位置。