0 Replies Latest reply on May 30, 2008 10:01 AM by 666705

    Deploy error: j2ee version "2.4" not a valid enumeration type.

    666705
      Hi!

      I'm tasked with upgrading from WL Server 9.2 to 10.0, and got a strange error when deploying, namely that the contents of the version field of the web-app tag is not a valid enumeration value -- despite what the xsd says about it:
       [wldeploy] weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
      [wldeploy] problem: cvc-enumeration-valid: string value '2.4' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>

      BUILD FAILED
      /home/lars/Programming/Eclipse/ampep/Aas/build.xml:562: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 102 failed: [Deployer:149026]redeploy application AmpEP on amplexServer.
      Target state: redeploy failed on Server amplexServer
      weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
        problem: cvc-enumeration-valid: string value '2.4' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>
      The start of the web.xml in question is:
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <web-app
           xmlns:j2ee="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/web-app_2_4.xsd"
          version="2.4">
      If I remove the version attribute, it deploys under 10.0, but not under 9.2 (which we will be running until we're sure 10.0 works). Why is it going counter to the xsd? Is there something I can declare to make it happy? I notice the namespace ending in :<null>, is that a problem?

      Thanks in advance,
      -Lars Clausen