Fail to deploy JSF into Weblogic 12.1.1(failed to load java type corresponding to e=web-app@http://xmlns.jcp.org/xml/ns/javaee)
Fail to deploy JSF into Weblogic 12.1.1(failed to load java type corresponding to e=web-app@http://xmlns.jcp.org/xml/ns/javaee)
我尝试在 Weblogic 12.1.1 上部署 hello1 jsf 教程示例,但失败并出现错误。 web.xml 是否需要更改某些内容?
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
WebLogic 12.1.1 是一个 Java EE 6 应用程序服务器 (Fusion Middleware What's New in Oracle WebLogic Server)。
Java EE 6 规范指定它支持 Java Servlet 规范版本 3.0。
您正在尝试在 web.xml 文件中使用 Servlet 3.1 部署描述符。
如果您将开始的 web-app
元素更改为:
,您的应用程序应该会部署
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
我尝试在 Weblogic 12.1.1 上部署 hello1 jsf 教程示例,但失败并出现错误。 web.xml 是否需要更改某些内容?
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
WebLogic 12.1.1 是一个 Java EE 6 应用程序服务器 (Fusion Middleware What's New in Oracle WebLogic Server)。
Java EE 6 规范指定它支持 Java Servlet 规范版本 3.0。
您正在尝试在 web.xml 文件中使用 Servlet 3.1 部署描述符。
如果您将开始的 web-app
元素更改为:
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">