开发者

Disable XSD validation against http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd in Websphere AS

I'm deploying a .war in Webshepere AS 6.1 with this in web.xml:

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

But it errors with

This site is experiencing technical difficulty. We are aware of the issue and are working as quick as possible to correct the issue.

How can I avoid this? How can I disab开发者_运维知识库le validation against an external XSD in Websphere AS?


WebSphere AS 6.1 is a J2EE 1.4 platform; that means Servlet 2.4. The server does not support the application version being installed.

The correct declaration would be something like:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="WebApp_ID" version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>

You need WebSphere AS 7 for Java EE 5 and Servlet 2.5 support.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜