在 Websphere AS 中禁用针对 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd 的 XSD 验证
我正在 Webshepere AS 6.1 中部署 .war,并在 web.xml
中使用此内容:
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
但出现错误
该网站遇到技术困难。我们已意识到该问题,并正在尽快纠正该问题。
我怎样才能避免这种情况?如何在 Websphere AS 中禁用针对外部 XSD 的验证?
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 disable validation against an external XSD in Websphere AS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WebSphere AS 6.1 是一个 J2EE 1.4 平台;这意味着 Servlet 2.4。服务器不支持正在安装的应用程序版本。
正确的声明类似于:
您需要 WebSphere AS 7 来支持 Java EE 5 和 Servlet 2.5。
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:
You need WebSphere AS 7 for Java EE 5 and Servlet 2.5 support.