Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1163

JBoss classloading fails if myfaces jars installed in tomcat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.2-SNAPSHOT, 1.1.3-SNAPSHOT
    • None
    • None
    • None
    • JBoss 4.0.4RC1 myfaces-1.1.3-SNAPSHOT

    Description

      Cannot use Myfaces jars installed in JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs as they do not use the correct WebappClassloader but instead an UCL3 classloader.
      This is because myfaces use the following line in StateUtils.getAsObject

      ObjectInputStream s = new ObjectInputStream(input);

      instead of
      import org.apache.myfaces.shared.util.MyFacesObjectInputStream;
      ObjectInputStream s = new MyFacesObjectInputStream(input);

      The same applies to JspStateManagerImpl.deserializeView().

      ObjectInputStream uses Class.forName instead of Thread.currentThread().getContextClassLoader() as the ClassUtils implementation that MyFacesObjectInputStream uses does.

      Attachments

        Issue Links

          Activity

            People

              ssilvert Stan D. Silvert
              kalla Ingo Massen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: