Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Websphere liberty配置文件错误:404 SRVE0190E_Java_Servlets_Websphere 8_Websphere Liberty - Fatal编程技术网

Java Websphere liberty配置文件错误:404 SRVE0190E

Java Websphere liberty配置文件错误:404 SRVE0190E,java,servlets,websphere-8,websphere-liberty,Java,Servlets,Websphere 8,Websphere Liberty,错误的原因可能是什么:错误404:SRVE0190E:未找到文件:/SimpleServletPath 我正在WebSphereLiberty概要文件服务器中部署 我无法访问我的管理控制台 我可以在WebSphereLiberty概要文件服务器上访问我的欢迎页面,但在创建servlet后无法访问。这时出现上述404错误 网上也有类似的帖子建议更改com.ibm.ws.webcontainer.invokefilterscompatibility=true。我找不到如何设置此参数,因为我无法点击w

错误的原因可能是什么:
错误404:SRVE0190E:未找到文件:/SimpleServletPath

我正在WebSphereLiberty概要文件服务器中部署

我无法访问我的管理控制台

我可以在WebSphereLiberty概要文件服务器上访问我的欢迎页面,但在创建servlet后无法访问。这时出现上述404错误

网上也有类似的帖子建议更改
com.ibm.ws.webcontainer.invokefilterscompatibility=true
。我找不到如何设置此参数,因为我无法点击websphere管理控制台登录

我通过eclipse marketplace安装了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

ServletExplore
index.html

默认情况下,应用程序的上下文根将默认为应用程序的名称。您可以通过查看“服务器”选项卡上的服务器并编辑其配置来更改它(包括将其设置为/)。您可以在GUI中或直接在server.xml中进行更改


如果您的应用程序名为“我的应用程序”,我怀疑localhost:9080/myapp/SimpleServletPath是您的servlet当前所在的位置。

从源代码中查看您的web.xml和/或@servlet声明会有所帮助。此外,Liberty没有管理控制台。所有配置都是使用server.xml完成的,该文件设计紧凑,易于阅读。您是否在Eclipse IDE中使用“运行方式”进行部署?Holly,是的。我正在eclipse IDE中运行它。我想知道这是否是一个URL映射问题,因为我首先创建了index.html文件/Welcome文件,然后创建了一个servlet示例:URL应该是page/servletest/。我刚刚创建了一个不带index.html的servlet页面,它成功了。现在“