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

ValidationException thrown by WebLogic 12c R2 when validating JSF h:inputText component

    Details

      Description

      The fix for this problem is to add the following to the module.framework.properties.org.osgi.framework.bootdelegation property in portal.properties:

      javax.validation
      

      Steps to Reproduce

      1. Start Liferay DXP FP24 on WebLogic 12.2.1.2

      2. Deploy com.liferay.faces.demo.jsf.applicant.portlet.war (attached)

      3. Add the portlet to a portal page

      4. Reload the portal page

      5. Enter "32801" into the ZIP code field

      Expected Results

      The portlet UI updates with "Orlando" and "FL"

      Actual Results

      The following stacktrace appears in the WebLogic server log:

      <Aug 31, 2017, 4:36:45,292 PM EDT> <Warning> <javax.enterprise.resource.webcontainer.jsf.lifecycle> <BEA-000000> <javax.faces.FacesException: Could not build a default Bean Validator factory
      javax.faces.FacesException: javax.faces.FacesException: Could not build a default Bean Validator factory
      	at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:273)
      	at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:219)
      	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1193)
      	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      	Truncated. see log file for complete stacktrace
      Caused By: javax.faces.FacesException: Could not build a default Bean Validator factory
      	at javax.faces.validator.BeanValidator.validate(BeanValidator.java:288)
      	at javax.faces.component.UIInput.validateValue(UIInput.java:1164)
      	at javax.faces.component.UIInput.validate(UIInput.java:982)
      	at javax.faces.component.UIInput.executeValidate(UIInput.java:1248)
      	at javax.faces.component.UIInput.processValidators(UIInput.java:712)
      	Truncated. see log file for complete stacktrace
      Caused By: javax.validation.ValidationException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
      	at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:271)
      	at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:110)
      	at javax.faces.validator.BeanValidator.validate(BeanValidator.java:285)
      	at javax.faces.component.UIInput.validateValue(UIInput.java:1164)
      	at javax.faces.component.UIInput.validate(UIInput.java:982)
      	Truncated. see log file for complete stacktrace
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              raven.song Raven Song
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
              Recent user:
              Raven Song
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 11 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.0 Beta 3
                  7.1.X
                  Master