1 Reply Latest reply on Jun 12, 2008 10:56 AM by 666705

    VALIDATION PROBLEMS WERE FOUND

    666705
      I'm tring to deploy .war to WebLogic 10 but got the error " VALIDATION PROBLEMS WERE FOUND ". It seems due to web.xml and weblogic.xml. But finally when I changed web.xml and weblogic.xml to the following content, I still got error.

      web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee">
      <display-name>TestAP</display-name>
      <description>Test description</description>
      </web-app>

      weblogic.xml
      <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
      <description>Test</description>
           <jsp-param>
                <param-name>precompile</param-name>
                <param-value>false</param-value>
           </jsp-param>
      </weblogic-web-app>

      error:
      Unable to access the selected application.

      Message icon - Error     Exception in AppMerge flows' progression

      Message icon - Error     Exception in AppMerge flows' progression

      Message icon - Error     VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'description@http://www.bea.com/ns/weblogic/90 weblogic-version@http://www.bea.com/ns/weblogic/90 security-role-assignment@http://www.bea.com/ns/weblogic/90 run-as-role-assignment@http://www.bea.com/ns/weblogic/90 resource-description@http://www.bea.com/ns/weblogic/90 resource-env-description@http://www.bea.com/ns/weblogic/90 ejb-reference-description@http://www.bea.com/ns/weblogic/90 service-reference-description@http://www.bea.com/ns/weblogic/90 message-destination-descriptor@http://www.bea.com/ns/weblogic/90 session-descriptor@http://www.bea.com/ns/weblogic/90 jsp-descriptor@http://www.bea.com/ns/weblogic/90 auth-filter@http://www.bea.com/ns/weblogic/90 container-descriptor@http://www.bea.com/ns/weblogic/90 charset-params@http://www.bea.com/ns/weblogic/90 virtual-directory-mapping@http://www.bea.com/ns/weblogic/90 url-match-map@http://www.bea.com/ns/weblogic/90 security-permission@http://www.bea.com/ns/weblogic/90 context-root@http://www.bea.com/ns/weblogic/90 wl-dispatch-policy@http://www.bea.com/ns/weblogic/90 servlet-descriptor@http://www.bea.com/ns/weblogic/90 work-manager@http://www.bea.com/ns/weblogic/90 logging@http://www.bea.com/ns/weblogic/90 library-ref@http://www.bea.com/ns/weblogic/90' instead of 'jsp-param@http://www.bea.com/ns/weblogic/90' here in element weblogic-web-app@http://www.bea.com/ns/weblogic/90:



      And I also use this command to test "java weblogic.DDConverter -d D:\NewDeployDescriptor D:\fullbuild\AP.war" but got the following error:


      [DDConverter] START Converting WAR AP.war
      <2008/6/12 下午04時30分19秒 CST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor weblogic.application.ddconvert.ConvertCtx$VJarResour
      ceLoader@2bb514 finder: weblogic.utils.classloaders.CodeGenClassFinder@17d5d2a annotation: /WEB-INF/weblogic.xml of module null. The error i
      s weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
      problem: cvc-complex-type.2.4a: Expected elements 'description@http://www.bea.com/ns/weblogic/90 weblogic-version@http://www.bea.com/ns/we
      blogic/90 security-role-assignment@http://www.bea.com/ns/weblogic/90 run-as-role-assignment@http://www.bea.com/ns/weblogic/90 resource-descr
      iption@http://www.bea.com/ns/weblogic/90 resource-env-description@http://www.bea.com/ns/weblogic/90 ejb-reference-description@http://www.bea
      .com/ns/weblogic/90 service-reference-description@http://www.bea.com/ns/weblogic/90 message-destination-descriptor@http://www.bea.com/ns/web
      logic/90 session-descriptor@http://www.bea.com/ns/weblogic/90 jsp-descriptor@http://www.bea.com/ns/weblogic/90 auth-filter@http://www.bea.co
      m/ns/weblogic/90 container-descriptor@http://www.bea.com/ns/weblogic/90 charset-params@http://www.bea.com/ns/weblogic/90 virtual-directory-m
      apping@http://www.bea.com/ns/weblogic/90 url-match-map@http://www.bea.com/ns/weblogic/90 security-permission@http://www.bea.com/ns/weblogic/
      90 context-root@http://www.bea.com/ns/weblogic/90 wl-dispatch-policy@http://www.bea.com/ns/weblogic/90 servlet-descriptor@http://www.bea.com
      /ns/weblogic/90 work-manager@http://www.bea.com/ns/weblogic/90 logging@http://www.bea.com/ns/weblogic/90 library-ref@http://www.bea.com/ns/w
      eblogic/90' instead of 'jsp-param@http://www.bea.com/ns/weblogic/90' here in element weblogic-web-app@http://www.bea.com/ns/weblogic/90:<nul
      l>
      at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:234)
      at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:221)
      at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:146)
      at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292)
      at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
      at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774)
      at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:395)
      at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
      at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
      at weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:164)
      at weblogic.application.ddconvert.WarConverter.convertDDs(WarConverter.java:66)
      at weblogic.application.ddconvert.DDConverter.runBody(DDConverter.java:157)
      at weblogic.utils.compiler.Tool.run(Tool.java:158)
      at weblogic.utils.compiler.Tool.run(Tool.java:115)
      at weblogic.application.ddconvert.DDConverter.main(DDConverter.java:177)
      at weblogic.DDConverter.main(DDConverter.java:10)
      .>
      VALIDATION PROBLEMS WERE FOUND
      problem: cvc-complex-type.2.4a: Expected elements 'description@http://www.bea.com/ns/weblogic/90 weblogic-version@http://www.bea.com/ns/we
      blogic/90 security-role-assignment@http://www.bea.com/ns/weblogic/90 run-as-role-assignment@http://www.bea.com/ns/weblogic/90 resource-descr
      iption@http://www.bea.com/ns/weblogic/90 resource-env-description@http://www.bea.com/ns/weblogic/90 ejb-reference-description@http://www.bea
      .com/ns/weblogic/90 service-reference-description@http://www.bea.com/ns/weblogic/90 message-destination-descriptor@http://www.bea.com/ns/web
      logic/90 session-descriptor@http://www.bea.com/ns/weblogic/90 jsp-descriptor@http://www.bea.com/ns/weblogic/90 auth-filter@http://www.bea.co
      m/ns/weblogic/90 container-descriptor@http://www.bea.com/ns/weblogic/90 charset-params@http://www.bea.com/ns/weblogic/90 virtual-directory-m
      apping@http://www.bea.com/ns/weblogic/90 url-match-map@http://www.bea.com/ns/weblogic/90 security-permission@http://www.bea.com/ns/weblogic/
      90 context-root@http://www.bea.com/ns/weblogic/90 wl-dispatch-policy@http://www.bea.com/ns/weblogic/90 servlet-descriptor@http://www.bea.com
      /ns/weblogic/90 work-manager@http://www.bea.com/ns/weblogic/90 logging@http://www.bea.com/ns/weblogic/90 library-ref@http://www.bea.com/ns/w
      eblogic/90' instead of 'jsp-param@http://www.bea.com/ns/weblogic/90' here in element weblogic-web-app@http://www.bea.com/ns/weblogic/90:<nul
      l>
        • 1. Re: VALIDATION PROBLEMS WERE FOUND
          666705
          I changed weblogic.xml and it's ok (only weblogic.xml)

          weblogic.xml:
          <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
          <jsp-descriptor>
          <precompile>false</precompile>
          <precompile-continue>false</precompile-continue>
          <keepgenerated>true</keepgenerated>
          </jsp-descriptor>
          </weblogic-web-app>

          Should I change web.xml like weblogic.xml ? But there are lots of param-name in web.xml