0 Replies Latest reply on Sep 18, 2013 10:15 AM by gamba

    Migration from JBoss 5 to JBoss 7.2.0

    gamba Newbie

      I already migrated some projects from JBoss 5 to JBoss 7.2.0 successfully.

      I use JSF 1.2 and RichFaces 3.3.3.Final with web.xml Parameter Mojarra-1.2.

      It worked fine so far ... till to the last project to migrate.

       

      I get a strange error when using <a4j:mediaOutput> inside a <rich:modalPanel>

      Without this snippet it worked fine too:

       

      <rich:modalPanel id="modalBigPicture" width="200" minHeight="100" autosized="true"> 

          <a4j:mediaOutput id="imageOutputBig" mimeType="image/jpeg" element="img" cacheable="false"

                                          onclick="Richfaces.hideModalPanel('modalBigPicture')"
                                          creatContent="#{pdfImageBean.renderBigImage}" session="true">
              <f:param value="#{pdfImageBean.lastModified}" name="time"/>

          </a4j:mediaOutput>

      </rich:modalPanel>

       

      Same error in IE 8 and Firefox 23.0.1. Here is the stacktrace:

      (hmg.facelets is a standard facelets 1.1.15 module which already works in other projects)

       

      16:03:04,031 ERROR [org.ajax4jsf.resource.ResourceBuilderImpl] (http-localhost/127.0.0.1:8080-3) Data class for restore not found: java.lang.ClassNotFoundException: org.jboss.weld.el.WeldMethodExpression from [Module "hmg.facelets:main" from local module loader @1f06dc3 (finder: local module finder @1b64e6a (roots: C:\Work\java\server\jboss\jboss-eap-6.1.0\jboss-eap-6.1\modules,C:\Work\java\server\jboss\jboss-eap-6.1.0\jboss-eap-6.1\modules\system\layers\base))]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-bz-975242]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-bz-975242]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-bz-975242]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:399) [jboss-modules.jar:1.2.0.Final-bz-975242]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-bz-975242]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-bz-975242]

          at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_20]

          at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [rt.jar:1.6.0_20]

          at com.sun.facelets.el.TagMethodExpression.readExternal(TagMethodExpression.java:101) [jsf-facelets-1.1.15.jar:1.1.15]

          at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [rt.jar:1.6.0_20]

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [rt.jar:1.6.0_20]

          at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:381) [richfaces-impl-3.3.3.FINAL.jar:3.3.3.Final]

          at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:156) [richfaces-impl-3.3.3.FINAL.jar:3.3.3.Final]

          at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141) [richfaces-impl-3.3.3.FINAL.jar:3.3.3.Final]

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508) [richfaces-impl-3.3.3.FINAL.jar:3.3.3.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at de.handelshof.por.hmg.java.util.HMGViewExpiredFilter.doFilter(HMGViewExpiredFilter.java:61) [por_hmg_java-0.0.0-SNAPSHOT.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at de.handelshof.pis.web.util.RichFacesFirefox11Filter.doFilter(RichFacesFirefox11Filter.java:36) [classes:]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:373) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Final-redhat-8-BZ-970751.jar:7.2.0.Final-redhat-8]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:408) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-2.jar:7.2.0.Final-redhat-2]

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

       

      Any suggestions? Is it a bug?

       

      Update:

      Ok, I deleted the code and the error still occurs because I have some other <a4j:mediaOutput> tags on my page.

      So it seems that this tag is broken in RichFaces 3.3.3.Final on JBoss 7.2.0?