Spring 找不到IBM Liberty配置文件上下文根

Spring 找不到IBM Liberty配置文件上下文根,spring,websphere-liberty,contextroot,Spring,Websphere Liberty,Contextroot,我已经将spring应用程序部署到IBMLiberty概要文件中。服务器和应用程序启动都没有问题,但当我想访问应用程序时,浏览器会显示“未找到上下文根” 我在server.xml中以多种方式配置了应用程序 <application location="d:/Work/Installed Liberty Applications/OFRAdminEAR/OFRAdmin.ear" name="OFRAdmin" secu

我已经将spring应用程序部署到IBMLiberty概要文件中。服务器和应用程序启动都没有问题,但当我想访问应用程序时,浏览器会显示“未找到上下文根”

我在server.xml中以多种方式配置了应用程序

<application location="d:/Work/Installed Liberty Applications/OFRAdminEAR/OFRAdmin.ear" 
                 name="OFRAdmin" 
                 security-role="false"
                 id="OFRAdmin"
                 type="ear">
    <classloader apiTypeVisibility="spec,ibm-api,api" privateLibraryRef="WebspherePlugins, OFRAdminsSharedLibrary"/>
    </application>

    <enterpriseApplication location="d:/Work/Installed Liberty Applications/OFRAdminEAR/OFRAdmin.ear"
                   id="OFRAdmin"
                   name="OFRAdmin"
                   security-role="false"
                   type="ear">
    <classloader privateLibraryRef="WebspherePlugins, OFRAdminsSharedLibrary" />
    </enterpriseApplication>

    <webApplication location="d:/Work/Installed Liberty Applications/OFRAdminEAR/OFRAdmin.ear"
                id="OFRAdmin"
                name="OFRAdmin"
                security-role="false"
                type="war">
    <classloader privateLibraryRef="WebspherePlugins, OFRAdminsSharedLibrary" />
    </webApplication>

应用程序打包到一个ear文件中,其中包含一个WAR文件和带有application.xml的META-INF文件夹。application.xml如下所示

    <application-name>OFRAdmin</application-name>
    <display-name>OFRAdmin</display-name>
    <module>
        <web>
            <web-uri>OFRAdmin.war</web-uri>
            <context-root>OFRAdmin</context-root>
        </web>
    </module>
</application>
oframin
奥弗拉姆
行政战
奥弗拉姆

我错过了什么?我应该在哪里设置应用程序的上下文根?有人能帮我吗?

你能检查一下messages.log文件(在服务器目录的logs/文件夹中)吗?它应该显示一些有用的错误消息,指示是否找到了应用程序,如果找到了,在尝试启动应用程序时出现了什么问题。如果应用程序启动成功,它将记录应用程序的上下文根。上下文根是否应以/there开头?