9 Replies Latest reply on Jul 10, 2008 9:36 AM by Ilya Shaikovsky

    LOG is not defined

    jigar parekh Newbie

      Hi,

      I am getting so many error while i access any richfaces page.

      LOG is not defined
      [Break on this error] return false;};A4J.AJAX={};A4J.AJAX.XMLHttpRequest=function(query){this._query=q...
      a4j_3_2_1-SNAPSHO... (line 83)


      I am using richfaces 3.2.1 with facelets and JSF 1.2

      any idea what could be reason?

      Thanks,
      Jigar

        • 1. Re: LOG is not defined
          Ilya Shaikovsky Master

          seems just configuration problem. describe environment.

          • 2. Re: LOG is not defined
            jigar parekh Newbie

            i am having tomcat 5.5.26 with jdk 1.5.0

            • 3. Re: LOG is not defined
              Ilya Shaikovsky Master

              JSF, RF versions? libraries in classpath? web.xml configuration?

              • 4. Re: LOG is not defined
                jigar parekh Newbie

                JSF 1.2
                RF 3.2.1

                acegi-security-1.0.6.jar
                activation-1.1.jar
                ant-antlr-1.6.5.jar
                antlr-2.7.6rc1.jar
                asm-attrs.jar
                asm.jar
                axis-ant.jar
                axis.jar
                cglib-2.1.3.jar
                common-annotations.jar
                commons-attributes-api-2.1.jar
                commons-beanutils-1.7.0.jar
                commons-beanutils.jar
                commons-codec-1.3.jar
                commons-collections-3.2.jar
                commons-configuration-1.4.jar
                commons-dbcp-1.2.2.jar
                commons-digester-1.8.jar
                commons-discovery-0.2.jar
                commons-el-1.0.jar
                commons-fileupload-1.0.jar
                commons-httpclient-3.0.jar
                commons-io-1.1.jar
                commons-javaflow-20060411.jar
                commons-lang.jar
                commons-logging-1.0.4.jar
                commons-logging.jar
                commons-pool-1.2.jar
                commons-validator.jar
                dom4j-1.6.1.jar
                ehcache-1.2.3.jar
                el-api-1.0.jar
                el-impl-1.0.jar
                el-ri.jar
                hibernate-annotations.jar
                hibernate-commons-annotations.jar
                hibernate-search.jar
                hibernate3.jar
                hibernate3lgpl.txt
                itext-1.4.3.jar
                jakarta-oro.jar
                jasperreports-1.2.5.jar
                jaxen-1.1-beta-7.jar
                jaxrpc.jar
                jcommon-1.0.5.jar
                jdom.jar
                jhighlight-1.0.jar
                joda-time-1.4.jar
                jscontrolstags-1.0-b3.jar
                jsf-api-1.2_04-p02.jar
                jsf-facelets-1.1.14.jar
                jsf-impl-1.2_04-p02.jar
                jsf-tlds.jar
                jstl-1.0.jar
                jstl.jar
                jta.jar
                JTwain.jar
                log4j-1.2.14.jar
                lucene-core-2.3.1.jar
                lucene-misc-2.3.1.jar
                lucene-queries-2.3.1.jar
                lucene-snowball-2.0.0.jar
                mail.jar
                mysql-connector-java-3.1.11-bin.jar
                nekohtml-0.9.5.jar
                parser.jar
                phaseTracker.jar
                poi-3.0-alpha3-20061212.jar
                poi-contrib-3.0-alpha3-20061212.jar
                poi-scratchpad-3.0-alpha3-20061212.jar
                quartz-1.5.2.jar
                quartz-all-1.5.2.jar
                richfaces-api-3.2.1.GA.jar
                richfaces-impl-3.2.1.GA.jar
                richfaces-ui-3.2.1.GA.jar
                servlet2.5-jsp2.1-api.jar
                spring-aop.jar
                spring-beans.jar
                spring-context.jar
                spring-core.jar
                spring-dao.jar
                spring-hibernate2.jar
                spring-hibernate3.jar
                spring-ibatis.jar
                spring-jca.jar
                spring-jdbc.jar
                spring-jdo.jar
                spring-jms.jar
                spring-jmx.jar
                spring-jpa.jar
                spring-modules-lucene-0.8.jar
                spring-portlet.jar
                spring-remoting.jar
                spring-struts.jar
                spring-support.jar
                spring-toplink.jar
                spring-web.jar
                spring-webmvc.jar
                spring.jar
                sqljdbc.jar
                standard.jar
                tomahawk-1.1.6.jar
                velocity-1.4.jar
                velocity-tools-1.2.jar
                velocity-tools-generic-1.2.jar
                xercesImpl-2.8.1.jar
                xml-apis-1.3.03.jar


                Web.xml

                <?xml version="1.0" encoding="UTF-8" ?>
                <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns="http://java.sun.com/xml/ns/javaee"
                 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
                 id="WebApp_ID" version="2.5">
                
                 <!-- <?xml version="1.0" encoding="UTF-8"?>
                 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/j2ee"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">-->
                 <description>My Manus Application</description>
                 <display-name>My Manus</display-name>
                 <context-param>
                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                 <param-value>.xhtml</param-value>
                 </context-param>
                 <context-param>
                 <param-name>facelets.REFRESH_PERIOD</param-name>
                 <param-value>2</param-value>
                 </context-param>
                 <context-param>
                 <param-name>facelets.DEVELOPMENT</param-name>
                 <param-value>true</param-value>
                 </context-param>
                 <context-param>
                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                 <param-value>client</param-value>
                 </context-param>
                 <context-param>
                 <param-name>com.sun.faces.validateXml</param-name>
                 <param-value>true</param-value>
                 </context-param>
                 <context-param>
                 <param-name>com.sun.faces.verifyObjects</param-name>
                 <param-value>true</param-value>
                 </context-param>
                 <context-param>
                 <param-name>javax.faces.CONFIG_FILES</param-name>
                 <param-value>
                 /WEB-INF/faces-navigation.xml,/WEB-INF/faces-beans.xml
                 </param-value>
                 </context-param>
                 <context-param>
                 <param-name>contextConfigLocation</param-name>
                 <param-value>
                 /WEB-INF/classes/applicationContext.xml,/WEB-INF/applicationContext-acegi.xml
                 </param-value>
                 </context-param>
                 <context-param>
                 <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                 <param-value>com.sun.facelets.FaceletViewHandler</param-value>
                 </context-param>
                 <context-param>
                 <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
                 <param-value>true</param-value>
                 </context-param>
                 <context-param>
                 <param-name>org.ajax4jsf.DEFAULT_EXPIRE</param-name>
                 <param-value>315360000</param-value>
                 </context-param>
                 <context-param>
                 <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
                 <param-value>NEKO,TIDY</param-value>
                 </context-param>
                 <context-param>
                 <param-name>org.ajax4jsf.xmlparser.NEKO</param-name>
                 <param-value>/forms/orderlist/listOrderListWizard\.xhtml,/forms/orderlist/addEditOrderList\.xhtml,/forms/customer/searchResults\.xhtml,/forms/customer/mySupplierRequestListing\.xhtml,/forms/userhome/userHomePage\.xhtml,/forms/supplier/listSuppliers\.xhtml</param-value>
                 </context-param>
                 <!-- Filter declaration -->
                 <filter>
                 <filter-name>Acegi Filter Chain Proxy</filter-name>
                 <filter-class>
                 org.acegisecurity.util.FilterToBeanProxy
                 </filter-class>
                 <init-param>
                 <param-name>targetClass</param-name>
                 <param-value>
                 org.acegisecurity.util.FilterChainProxy
                 </param-value>
                 </init-param>
                 </filter>
                 <filter-mapping>
                 <filter-name>Acegi Filter Chain Proxy</filter-name>
                 <url-pattern>/*</url-pattern>
                 </filter-mapping>
                
                 <filter>
                 <display-name>Ajax4jsf Filter</display-name>
                 <filter-name>ajax4jsf</filter-name>
                 <filter-class>org.ajax4jsf.Filter</filter-class>
                 <init-param>
                 <param-name>enable-cache</param-name>
                 <param-value>true</param-value>
                 </init-param>
                 <init-param>
                 <param-name>forceparser</param-name>
                 <param-value>false</param-value>
                 </init-param>
                 <init-param>
                 <param-name>createTempFiles</param-name>
                 <param-value>false</param-value>
                 </init-param>
                 <init-param>
                 <param-name>maxRequestSize</param-name>
                 <param-value>104857600</param-value>
                 </init-param>
                 </filter>
                 <filter-mapping>
                 <filter-name>ajax4jsf</filter-name>
                 <servlet-name>Faces Servlet</servlet-name>
                 <dispatcher>FORWARD</dispatcher>
                 <dispatcher>REQUEST</dispatcher>
                 <dispatcher>INCLUDE</dispatcher>
                 <dispatcher>ERROR</dispatcher>
                 </filter-mapping>
                
                 <servlet>
                 <servlet-name>Faces Servlet</servlet-name>
                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                 <load-on-startup>1</load-on-startup>
                 </servlet>
                 <servlet-mapping>
                 <servlet-name>Faces Servlet</servlet-name>
                 <url-pattern>*.jsf</url-pattern>
                 </servlet-mapping>
                 <servlet>
                 <servlet-name>ViewImageServlet</servlet-name>
                 <servlet-class>
                 com.globalorange.manus.component.imageview.ViewImageServlet
                 </servlet-class>
                 </servlet>
                 <servlet-mapping>
                 <servlet-name>ViewImageServlet</servlet-name>
                 <url-pattern>/servlet/ViewImageServlet</url-pattern>
                 </servlet-mapping>
                
                 <servlet>
                 <servlet-name>LuceneIndexingServlet</servlet-name>
                 <servlet-class>
                 com.globalorange.manus.utils.LuceneIndexingServlet
                 </servlet-class>
                 <load-on-startup>2</load-on-startup>
                 </servlet>
                
                 <servlet-mapping>
                 <servlet-name>LuceneIndexingServlet</servlet-name>
                 <url-pattern>/servlet/LuceneIndexingServlet</url-pattern>
                 </servlet-mapping>
                
                 <servlet>
                 <description>
                 This is the description of my J2EE component
                 </description>
                 <display-name>
                 This is the display name of my J2EE component
                 </display-name>
                 <servlet-name>HttpRequestDemoServlet</servlet-name>
                 <servlet-class>
                 com.HttpDemo.HttpRequestDemoServlet.HttpRequestDemoServlet
                 </servlet-class>
                 </servlet>
                 <servlet-mapping>
                 <servlet-name>HttpRequestDemoServlet</servlet-name>
                 <url-pattern>/servlet/HttpRequestDemoServlet</url-pattern>
                 </servlet-mapping>
                
                 <session-config>
                 <session-timeout>120</session-timeout>
                 </session-config>
                 <listener>
                 <listener-class>
                 org.springframework.web.context.ContextLoaderListener
                 </listener-class>
                 </listener>
                 <listener>
                 <listener-class>
                 org.acegisecurity.ui.session.HttpSessionEventPublisher
                 </listener-class>
                 </listener>
                 <listener>
                 <listener-class>com.globalorange.manus.utils.SessionListener</listener-class>
                 </listener>
                
                 <error-page>
                 <error-code>404</error-code>
                 <location>/error404.jsp</location>
                 </error-page>
                 <error-page>
                 <error-code>500</error-code>
                 <location>/error500.jsp</location>
                 </error-page>
                
                </web-app>


                • 5. Re: LOG is not defined
                  jigar parekh Newbie

                  any idea ??

                  • 6. Re: LOG is not defined
                    jigar parekh Newbie

                    looks like no solution to this problem :(

                    • 7. Re: LOG is not defined
                      jigar parekh Newbie

                      is this a bug ??

                      • 8. Re: LOG is not defined
                        jigar parekh Newbie

                        any one has solution ??

                        • 9. Re: LOG is not defined
                          Ilya Shaikovsky Master

                          1) place the RF filter to the top of the chain in web.xml. (It should be the first)
                          2) Map acegi filter to Faces servlet instead of url mapping.