2 Replies Latest reply on Jun 25, 2007 11:28 AM by Fred Camara

    Jboss 4.2 migration problem

    Alain Bergeron Newbie

      I was using jboss 4.0.5 and decided to move to jboss 4.2. I removed the StartupServletContextListener from web.xml and now I get this error :

      java.lang.VerifyError: (class: org/apache/jsp/entry_jsp, method: _jspx_meth_f_005fvalidateLongRange_005f0 signature: (Ljavax/servlet/jsp/tagext/JspTag;Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function

      ...
      ... 32 more
      12:39:28,750 WARN [lifecycle] phase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@dfd5b8) threw exception: java.lang.NoClassDefFoundError: org/apache/commons/el/Logger org/apache/commons/el/Logger
      org.apache.myfaces.shared_tomahawk.util.ClassUtils.(ClassUtils.java:41)
      org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.(MyfacesConfig.java:80)
      org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:115)
      org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:96)
      org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBeforeBodyEnd(ExtensionsPhaseListener.java:86)
      org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:66)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:278)



      The code in question :
      <h:inputText value="#{batchesBean.accountId}" id="accountId" required="true">
      <f:validateLongRange minimum="1" maximum="1000" />
      </h:inputText>

      In the batchesBean, I have an attribute accountId which is initialized to 323.

      The attribute was a String, I tried changing it to a Long (trying to figure the problem), the result is still the same.

      Note that this is working with jboss 4.0.5.

      Is the problem the classNotFoundException or was this exception only thrown when trying to log the validateLongRange error ?

      Thank you.

        • 1. Re: Jboss 4.2 migration problem
          Georges Berscheid Newbie

          As far as I know MyFaces was replaces by the 1.2 RI implementation in 4.2. You might have to adapt your web.xml or faces-config.xml if you're making direct references to MyFaces classes (outside of Tomahawk).
          Also, tomahawk seems to require commons-el in the classpath. You can download that package from the Apache Jakarta website and include it in your WEB-INF/lib directory of your web-app.

          • 2. Re: Jboss 4.2 migration problem
            Fred Camara Newbie

            I'm having the same problem after moving from JBoss 4.0.5 to JBoss 4.2.0

            This warning is throwed in every jsf pages:

            ---

            16:18:50,352 WARN [lifecycle] phase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@1f14b06) threw exception: java.lang.NoClassDefFoundError null
            org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:129)
            org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:104)
            org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getJavaScriptCodeAndStoreInRequest(ExtensionsPhaseListener.java:94)
            org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:70)
            com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
            com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
            javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
            org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            java.lang.Thread.run(Thread.java:595)

            ---

            If you've already figured it out, please share.
            Thanks