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

UnsupportedOperationException when deploying demo and test portlet wars on WebLogic

    Details

      Description

      UPDATE: September 3, 2013: Please see FACES-1726 for an improvement upon the solution to this issue.

      When deploying a demo or test portlet on WebLogic, the server log reports the following exception:

      UnsupportedOperationException: This SAXParser does not support the reset functionality

      In order to make it work, the following dependency needs to be added with a weblogic maven profile:

      <dependency>
      	<groupId>xerces</groupId>
      	<artifactId>xercesImpl</artifactId>
      	<version>2.11.0</version>
      </dependency>
      

      Also a new WEB-INF/weblogic.xml descriptor file is required that instructs the WebLogic classloader to prefer the WEB-INF/lib jars over those in the global classpath. See the example weblogic.xml descriptor in the jsf2-portlet demo.

      Finally, the startWebLogic.sh script needs the following line added at the top:

      export JAVA_OPTIONS="$JAVA_OPTIONS -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                neil.griffin Neil Griffin
                Reporter:
                neil.griffin Neil Griffin
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  liferay-faces-2.1.2-ga3
                  liferay-faces-3.0.2-legacy-ga3
                  liferay-faces-3.0.2-ga3
                  liferay-faces-3.1.2-ga3