2 Replies Latest reply: Sep 18, 2012 1:22 AM by Kayaman RSS

    web_app version 2.4 still supported?

    962573
      Today I found my war file would no longer deploy to my GlassFish app server, even though I made zero changes to anything. After some investigation it appears the reference made in my web.xml to the 2.4 version of web_app no longer works.

      Here is the gist of the file - this no longer works because the java schemaLocation seems to be redirecting to the Oracle home page, which SAX parser then throws up when trying to parse an HTML file as XML.

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <web-app version="2.4"
      xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/webapp_2_4.xsd">

      stuff here
      </web-app>

      Any thoughts on this?

      P.S. changed above to point to v 2.5 of web_app and now stuff works again.

      Edited by: 959570 on Sep 17, 2012 7:57 AM
        • 1. Re: web_app version 2.4 still supported?
          962573
          More info, here is the screen capture for when I tried to pull down the v2.4 of web-app:

          --2012-09-17 10:32:19-- http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd
          Resolving java.sun.com (java.sun.com)... 137.254.16.112
          Connecting to java.sun.com (java.sun.com)|137.254.16.112|:80... connected.
          HTTP request sent, awaiting response... 301 Moved Permanently
          Location: http://www.oracle.com/technetwork/java/index.html [following]
          --2012-09-17 10:32:19-- http://www.oracle.com/technetwork/java/index.html
          Resolving www.oracle.com (www.oracle.com)... 23.33.65.55
          Connecting to www.oracle.com (www.oracle.com)|23.33.65.55|:80... connected.
          HTTP request sent, awaiting response... 200 OK
          Length: unspecified [text/html]
          Saving to: `web-app_2_4.xsd.1'

          [  <=>                                                                                                                                                ] 126,895 480K/s in 0.3s

          2012-09-17 10:32:20 (480 KB/s) - `web-app_2_4.xsd.1' saved [126895]

          Notice here it is redirecting to home page, says Moved Permanently

          Where would I find announcements for things like this in the future?
          • 2. Re: web_app version 2.4 still supported?
            Kayaman
            959570 wrote:
            Where would I find announcements for things like this in the future?
            The "Moved Permanently" is the announcement.