Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.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
weblogic hello world应用程序上的404_Weblogic_Http Status Code 404 - Fatal编程技术网

weblogic hello world应用程序上的404

weblogic hello world应用程序上的404,weblogic,http-status-code-404,Weblogic,Http Status Code 404,我正在尝试运行一个简单的hello world web应用程序,以确保所有内容的结构都正确 以下是我得到的: ear_test.ear ear_test.ear/META-INF ear_test.ear/META-INF/application.xml ear_test.ear/META-INF/MANIFEST.MF ear_test.ear/META-INF/weblogic-application.xml ear_test.ear/test_web_project

我正在尝试运行一个简单的hello world web应用程序,以确保所有内容的结构都正确

以下是我得到的:

ear_test.ear
ear_test.ear/META-INF
ear_test.ear/META-INF/application.xml        
ear_test.ear/META-INF/MANIFEST.MF
ear_test.ear/META-INF/weblogic-application.xml    
ear_test.ear/test_web_project_1.war
ear_test.ear/test_web_project_1.war/META-INF
ear_test.ear/test_web_project_1.war/META-INF/MANIFEST.MF
ear_test.ear/test_web_project_1.war/WEB-INF/classes
ear_test.ear/test_web_project_1.war/WEB-INF/lib
ear_test.ear/test_web_project_1.war/WEB-INF/web.xml
ear_test.ear/test_web_project_1.war/helloWorld.jsp
application.xml

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <display-name>ear_test</display-name>
  <module>
    <web>
      <web-uri>test_web_project_1.war</web-uri>
      <context-root>/test_web_project_1</context-root>
    </web>
  </module>
</application>
<?xml version="1.0" encoding="ISO-8859-1"?>
    <weblogic-application>
        <session-descriptor>
            <cookie-name>WLSSessionID</cookie-name>
            <cookie-http-only>false</cookie-http-only>
            <debug-enabled>false</debug-enabled>
            <sharing-enabled>true</sharing-enabled>
        </session-descriptor>
    </weblogic-application>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>test_web_project_1</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
     <welcome-file>helloWorld.jsp</welcome-file>
  </welcome-file-list>
</web-app>

耳鸣试验
测试网络项目1.war
/测试网络项目1
weblogic应用程序.xml

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <display-name>ear_test</display-name>
  <module>
    <web>
      <web-uri>test_web_project_1.war</web-uri>
      <context-root>/test_web_project_1</context-root>
    </web>
  </module>
</application>
<?xml version="1.0" encoding="ISO-8859-1"?>
    <weblogic-application>
        <session-descriptor>
            <cookie-name>WLSSessionID</cookie-name>
            <cookie-http-only>false</cookie-http-only>
            <debug-enabled>false</debug-enabled>
            <sharing-enabled>true</sharing-enabled>
        </session-descriptor>
    </weblogic-application>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>test_web_project_1</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
     <welcome-file>helloWorld.jsp</welcome-file>
  </welcome-file-list>
</web-app>

WLSSessionID
假的
假的
真的
web.xml

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <display-name>ear_test</display-name>
  <module>
    <web>
      <web-uri>test_web_project_1.war</web-uri>
      <context-root>/test_web_project_1</context-root>
    </web>
  </module>
</application>
<?xml version="1.0" encoding="ISO-8859-1"?>
    <weblogic-application>
        <session-descriptor>
            <cookie-name>WLSSessionID</cookie-name>
            <cookie-http-only>false</cookie-http-only>
            <debug-enabled>false</debug-enabled>
            <sharing-enabled>true</sharing-enabled>
        </session-descriptor>
    </weblogic-application>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>test_web_project_1</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
     <welcome-file>helloWorld.jsp</welcome-file>
  </welcome-file-list>
</web-app>

测试网络项目1
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
helloWorld.jsp
我可以将其部署到weblogic,它显示为活动

但是,当我尝试通过以下方式访问webapp时:

http://myserver:7011/test_web_project_1

我得到一个404错误


有什么解决这个问题的建议吗

再次检查您的URL,确保您实际引用的是部署应用程序的服务器的正确URL

端口7011表示您希望它已部署到多服务器域中的托管服务器。您确定部署的目标是正确的服务器/群集,而不是错误的管理服务器吗?尝试访问weblogic日志时,您在日志中看到了哪些错误?URL中使用了错误的服务器…:(