質問

I am new to WebLogic and have developed my application on a different server. I now have to deploy it to a WebLogic 10.3 server. I uploaded the WAR file to the server and tried installing it. I received the following errors:

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>

I am concerned with the part where it states that the value 3.0 is not a valid enumeration value. Does WebLogic 10.3 support web-app_3_0? What about Spring 4? or Hibernate 4? I thought that we were using a later version...unfortunately we are stuck with 10.3.

web.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>
役に立ちましたか?

解決

It seems Weblogic 10.3 doesn't support Servlet 3 spec. You would need to use, if possible, Weblogic 12c.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top