Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73488

Async-supported element in web.xml is being reordered for Module Framework Servlet

    Details

      Description

      The async-supported element for the Module Framework Servlet description in web.xml is being reordered after deploying the sample-ext plugin. This causes Weblogic to not start with the following errors:

      Descriptor before

      	<servlet>
      		<servlet-name>Module Framework Servlet</servlet-name>
      		<servlet-class&gt;com.liferay.portal.module.framework.ModuleFrameworkServletAdapter</servlet-class&gt;
      		<load-on-startup>1</load-on-startup>
      		<async-supported>true</async-supported>
      	</servlet>
      

      Descriptor after

      	<servlet>
      		<async-supported>true</async-supported>
      		<servlet-name>Module Framework Servlet</servlet-name>
      		<servlet-class&gt;com.liferay.portal.module.framework.ModuleFrameworkServletAdapter</servlet-class&gt;
      		<load-on-startup>1</load-on-startup>
      	</servlet>
      

      Error

      <Jul 6, 2017 9:33:45 AM PDT> <Error> <Munger> <BEA-2156200> <Unable to load descriptor /Users/ayame/Liferay/private/ee-7.0.x-bundles/weblogic-12.2.1/domains/liferay/autodeploy/ROOT/WEB-INF/web.xml of module ROOT. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
        <225:5> problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://xmlns.jcp.org/xml/ns/javaee' instead of 'async-supported@http://xmlns.jcp.org/xml/ns/javaee' here in element servlet@http://xmlns.jcp.org/xml/ns/javaee
      	at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
      

      Reproduced on
      Weblogic 12.2.1 + MySQL 5.6.29. Portal ee-7.0.x GIT ID: 7cf81a39e015cd59fde5595b50d4a02299b1f040.
      Plugins ee-7.0.x GIT ID: 54f12118f15bc2035e361a48773cb68974204af1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                albert.lee Albert Lee
                Reporter:
                albert.lee Albert Lee
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 14 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP23
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master