我是 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/