java - WebLogic 10.3 部署错误(WebApp 3.0/Spring 4 MVC/Hibernate 应用程序)

标签 java spring hibernate weblogic weblogic-10.x

我是 WebLogic 的新手,我的应用程序是在另一台服务器上开发的。我现在必须将它部署到 WebLogic 10.3 服务器。我将 WAR 文件上传到服务器并尝试安装它。我收到以下错误:

Message icon - Error Unable to access the selected application.
Message icon - Error Exception in AppMerge flows' progression
Message icon - Error Exception in AppMerge flows' progression
Message icon - Error VALIDATION PROBLEMS WERE FOUND problem: cvc-enumeration-valid: string     value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>

我关心的是它声明值 3.0 不是有效枚举值的部分。 WebLogic 10.3 是否支持 web-app_3_0? Spring 4 呢?或 hibernate 4?我以为我们使用的是更高版本...不幸的是我们只能使用 10.3。

网络.xml

<?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_3_0.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    id="WebApp_ID" version="3.0" metadata-complete="true">
    <display-name>Contact Management Suite</display-name>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
        <servlet-name>spring</servlet-name>
        <servlet-class>
            org.springframework.web.servlet.DispatcherServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet> 
    <servlet-mapping>  
        <servlet-name>spring</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
</web-app>

最佳答案

好像是Weblogic 10.3 doesn't support Servlet 3 规范。如果可能,您需要使用 Weblogic 12c .

关于java - WebLogic 10.3 部署错误(WebApp 3.0/Spring 4 MVC/Hibernate 应用程序),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23397868/

相关文章:

java - Java 中的 Math Commons 微积分

java - BeanCreationException : Error creating bean with name 'springApplicationAdminRegistrar' . InstanceAlreadyExistsException

java - Controller 和 validator 的范围

使用多个数据库 hibernate

java - 恩弗斯 : error mapping a collection with deleted entities

java - URL 中的 & 符号使 XML 格式不正确?

客户端和服务器端的 Java 套接字问题

java - 我怎样才能避免这个 if 语句

java - 如何在Spring Rest Controller 中接收application/x-www-form-urlencoded请求参数

java - 使用 Hibernate 标准的嵌套集合