Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3677

PrimeFaces 11 p:fileUpload fails on Pluto 2.0.3 + Tomcat 7.0.42

Details

    Description

      The following stacktrace occurs in the Pluto+Tomcat log when attempting to upload a file with PrimeFaces 11, which is caused by a dependency that PrimeFaces has on the Servlet 3.0 API:

      Jul 14, 2022 1:48:31 AM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
      SEVERE: java.lang.NoSuchMethodError: javax.servlet.http.Part.getSubmittedFileName()Ljava/lang/String;
      	at org.primefaces.component.fileupload.NativeFileUploadDecoder.createUploadedFile(NativeFileUploadDecoder.java:64)
      	at org.primefaces.component.fileupload.AbstractFileUploadDecoder.decodeAdvanced(AbstractFileUploadDecoder.java:86)
      	at org.primefaces.component.fileupload.AbstractFileUploadDecoder.decode(AbstractFileUploadDecoder.java:54)
      	at org.primefaces.component.fileupload.FileUploadRenderer.decode(FileUploadRenderer.java:64)
      	at javax.faces.render.RendererWrapper.decode(RendererWrapper.java:85)
      	at com.liferay.faces.bridge.renderkit.bridge.internal.FileUploadRendererPortletImpl.decode(FileUploadRendererPortletImpl.java:61)
      	at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:832)
      	at javax.faces.component.UIInput.decode(UIInput.java:773)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1227)
      	at javax.faces.component.UIInput.processDecodes(UIInput.java:678)
      	at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:573)
      	at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      	...
      

      Attachments

        Activity

          People

            neil.griffin Neil Griffin
            neil.griffin Neil Griffin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package