2

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?

2
  • Finally similiar to this solution stackoverflow.com/questions/6519785/… i put in local server jsp_2_1.xsd, , javaee_web_services_client_1_2.xsd, web-app_2_5.xsd, javaee_5.xsd and fake /etc/hosts and work... Commented Oct 10, 2011 at 15:35
  • 1
    This sounds like a product issue. XML documents should be validated against XSD files included with the product. I would recommend opening a PMR with IBM. Out of curiousity, what is the stack trace of the failure? Commented Oct 10, 2011 at 22:33

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah, thanks... but the problem is the same... java.sun.com is dowm! :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.