7 Replies Latest reply on May 10, 2013 2:13 PM by liverpoolfan

    framework.pack.jsnull ui.pack.jsnull

    liverpoolfan

      I have a application which is running perfectly fine in local but when it is deployed on server and  i am accessing it remotely it is giving lot of javascript errors. The error says Richfaces is undefined.  Neither the rich face functionality is working nor the its displayed properly.

       

      I checked the source of the web page by right clicking and selecting view source and found

       

      a4j/g/3_3_1.GA/org/richfaces/ui.pack.jsnull

      a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.jsnull

       

      whereas in local it shows

       

      a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.js.jsf

      a4j/g/3_3_1.GA/org/richfaces/ui.pack.js.jsf

       

      I dont know where is the problem...Plzz help

        • 1. Re: framework.pack.jsnull ui.pack.jsnull
          nbelaevski

          Hi,

           

          Please post your web.xml file.

          • 2. Re: framework.pack.jsnull ui.pack.jsnull
            liverpoolfan

            <?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">
             
              <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.jsp</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>server</param-value>
              </context-param>
              <context-param>
                <param-name>org.richfaces.SKIN</param-name>
                <param-value>classic</param-value>
              </context-param>
              <context-param>
                <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
                <param-value>disable</param-value>
              </context-param>
              <context-param>
                <param-name>org.richfaces.CONTROL_SKINNING</param-name>
                <param-value>disable</param-value>
              </context-param>
              <context-param>
                <param-name>facelets.REFRESH_PERIOD</param-name>
                <param-value>-1</param-value>
              </context-param>
              <context-param>
                <param-name>org.richfaces.LoadStyleStrategy</param-name>
                <param-value>ALL</param-value>
              </context-param>
              <context-param>
                <param-name>org.richfaces.LoadScriptStrategy</param-name>
                <param-value>ALL</param-value>
              </context-param>
              <context-param>
                <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
                <param-value>false</param-value>
              </context-param>
              <filter>
                <display-name>Ajax4jsf Filter</display-name>
                <filter-name>ajax4jsf</filter-name>
                <filter-class>org.ajax4jsf.Filter</filter-class>
              </filter>
              <filter-mapping>
                <filter-name>ajax4jsf</filter-name>
                <servlet-name>Faces Servlet</servlet-name>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
              </filter-mapping>
              <listener>
                <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
              </listener>
             
               <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>
            </web-app>

            • 3. Re: framework.pack.jsnull ui.pack.jsnull
              nbelaevski

              Web.xml looks fine. Here is similar thread BTW: http://community.jboss.org/thread/159923?tstart=0 .

              So: can you please try upgrading to RF 3.3.3.Final? Also what is application server version?

              • 4. Re: framework.pack.jsnull ui.pack.jsnull
                liverpoolfan

                Thanks for your help,

                I tried upgrading to RF 3.3.3, still not working.

                I am using Weblogic 10.3.2.

                • 5. Re: framework.pack.jsnull ui.pack.jsnull
                  liverpoolfan

                  I am getting error 404

                  a4j/g/3_3_1.GA/org/richfaces/ui.pack.jsnull HTTP/1.1 404. on the remote server

                  when i try to hit it from my local sys.

                   

                  Does it give you clear picture of why the .js files are coming as null?

                  • 6. Re: framework.pack.jsnull ui.pack.jsnull
                    jaizen

                    I'm getting the same issue. CSS and Ajax on richfaces components dies on my production servers, but unable to recreate in local. Here's the error I see in the logs.

                     

                    a4j/g/3_3_3.Final/org/richfaces/ui.pack.jsnull HTTP/1.1" 404 1214

                    a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__null HTTP/1.1" 404 1214

                    a4j/s/3_3_3.Final/org/richfaces/skin.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__null HTTP/1.1" 404 1214

                    a4j/g/3_3_3.Final/org/ajax4jsf/framework.pack.jsnull HTTP/1.1" 404 1214

                    a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__null HTTP/1.1" 404 1214

                     

                    I'm using weblogic 10.3.0. Has anybody been able to figure out a solution to this problem?

                     

                    Attached the web.xml as well.

                    <?xml version="1.0" encoding="UTF-8"?>

                    <web-app 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_4.xsd"

                             version="2.4">

                     

                     

                        <context-param>

                            <description>State saving method: "client" or "server" (= default)

                                See JSF Specification

                            </description>

                            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

                            <param-value>server</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>org.richfaces.SKIN</param-name>

                            <param-value>blueSky</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>org.richfaces.CONTROL_SKINNING</param-name>

                            <param-value>enable</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>org.richfaces.CONTROL_SKINNING_LEVEL</param-name>

                            <param-value>extended</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>

                            <description>

                                This parameter enables partial state saving.

                            </description>

                            <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>

                            <param-value>false</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>org.richfaces.LoadScriptStrategy</param-name>

                            <param-value>ALL</param-value>

                        </context-param>

                     

                     

                        <!--  If you use LoadScriptStrategy ALL, turn the compression off  -->

                        <context-param>

                            <param-name>

                                org.ajax4jsf.COMPRESS_SCRIPT

                            </param-name>

                            <param-value>false</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>org.richfaces.LoadStyleStrategy</param-name>

                            <param-value>ALL</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>facelets.DEVELOPMENT</param-name>

                            <param-value>true</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>

                            <param-value>false</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>facelets.BUILD_BEFORE_RESTORE</param-name>

                            <param-value>false</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

                            <param-value>.xhtml</param-value>

                        </context-param>

                     

                     

                     

                     

                        <context-param>

                            <param-name>com.sun.faces.responseBufferSize</param-name>

                            <param-value>500000</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>com.sun.faces.verifyObjects</param-name>

                            <param-value>false</param-value>

                        </context-param>

                     

                     

                        <!--  new settings - Allows the JavaScript to be cached  -->

                        <context-param>

                            <param-name>

                                com.sun.faces.externalizeJavaScript

                            </param-name>

                            <param-value>true</param-value>

                        </context-param>

                     

                     

                        <context-param>

                            <param-name>

                                org.richfaces.queue.global.enabled

                            </param-name>

                            <param-value>true</param-value>

                        </context-param>

                       

                        <context-param>

                            <param-name>net.sf.jsfcomp.chartcreator.USE_CHARTLET</param-name>

                            <param-value>true</param-value>

                        </context-param>

                     

                     

                        <servlet>

                            <servlet-name>Chartlet</servlet-name>

                            <servlet-class>net.sf.jsfcomp.chartcreator.Chartlet</servlet-class>

                        </servlet>

                     

                     

                        <servlet-mapping>

                            <servlet-name>Chartlet</servlet-name>

                            <url-pattern>*.chart</url-pattern>

                        </servlet-mapping>

                     

                     

                        <!-- ########## Filter Declarations ######### -->

                        <filter>

                            <display-name>RichFaces Filter</display-name>

                            <filter-name>richfaces</filter-name>

                            <filter-class>org.ajax4jsf.Filter</filter-class>

                            <init-param>

                                <param-name>createTempFiles</param-name>

                                <param-value>true</param-value>

                            </init-param>

                            <init-param>

                                <param-name>forceparser</param-name>

                                <param-value>false</param-value>

                            </init-param>

                        </filter>

                     

                     

                     

                     

                        <!-- ########## Filter Mappings ######### -->

                        <filter-mapping>

                            <filter-name>richfaces</filter-name>

                            <servlet-name>Faces Servlet</servlet-name>

                            <dispatcher>REQUEST</dispatcher>

                            <dispatcher>FORWARD</dispatcher>

                            <dispatcher>INCLUDE</dispatcher>

                        </filter-mapping>

                     

                     

                     

                     

                        <!-- ########## Listener Declarations ######### -->

                        <listener>

                            <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

                        </listener>

                     

                     

                        <!-- Faces Servlet -->

                        <servlet>

                            <servlet-name>Faces Servlet</servlet-name>

                            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                            <load-on-startup>1</load-on-startup>

                        </servlet>

                     

                     

                        <!-- Faces Servlet Mapping -->

                        <servlet-mapping>

                            <servlet-name>Faces Servlet</servlet-name>

                            <url-pattern>*.jsf</url-pattern>

                        </servlet-mapping>

                     

                     

                        <error-page>

                            <exception-type>javax.faces.application.ViewExpiredException</exception-type>

                            <location>/sessionExpired.jsf</location>

                        </error-page>

                     

                     

                        <error-page>

                            <exception-type>java.lang.Exception</exception-type>

                            <location>/error.jsf</location>

                        </error-page>

                     

                     

                        <!-- ########## Login Configs ######### -->

                        <login-config>

                            <auth-method>BASIC</auth-method>

                        </login-config>

                     

                     

                        <!-- ########## Security Roles ######### -->

                        <security-role>

                            <role-name>Users</role-name>

                        </security-role>

                     

                     

                    </web-app>

                    • 7. Re: framework.pack.jsnull ui.pack.jsnull
                      liverpoolfan

                      We did some Wily change. I did not do the change, we had a web admin for weblogic and he did some change related WILY and we could get it working.