Multiple JSF Applications found on same ClassLoader

Splash Forums PrettyFaces Users Multiple JSF Applications found on same ClassLoader

This topic contains 3 replies, has 2 voices, and was last updated by  Christian Kaltepoth 1 hour, 8 minutes ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27584

    gpetra
    Participant

    Hello,
    I’m trying to integrate prettyfaces in a WildFly 8 application. This application (which uses primefaces) is created as an Eclipse JSF project.
    From the app logs I see the following WARNING:

    WARNING [javax.faces] (default task-43) Multiple JSF Applications found on same ClassLoader. Unable to safely determine which FactoryManager instance to use. Defaulting to first match.

    Here is web.xml:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xmlns=”http://java.sun.com/xml/ns/javaee&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
    version=”3.0″>
    <display-name>MyApp</display-name>
    <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-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <context-param>
    <param-name>primefaces.THEME</param-name>
    <param-value>#{themeBean.theme}</param-value>
    </context-param>
    <filter>
    <filter-name>Pretty Filter</filter-name>
    <filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>
    </filter>

    <filter-mapping>
    <filter-name>Pretty Filter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    </web-app>

    The URL rewriting doesn’t take place: is it due to the above WARNING?

    Thanks

    #27585

    No, this warning isn’t caused by Rewrite and I don’t think that it prevents your rewriting from working correctly.

    #27586

    gpetra
    Participant

    Thanks, Christian.
    The Warning means there is somehow an interference between prettyfaces and something else.
    Anyway now I’m able to see the URLs rewritten 🙂

    #27587

    Not sure if this warning is really referring to PrettyFaces. However, if everything is working fine now, this doesn’t matter. 😉

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.