[jboss-jira] [JBoss JIRA] (WFLY-976) Multi-JSF doesn't understand new modules structure

Stan Silvert (JIRA) jira-events at lists.jboss.org
Tue Apr 30 14:46:54 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771152#comment-12771152 ] 

Stan Silvert commented on WFLY-976:
-----------------------------------

There are two problems in your web.xml.

You don't want this because you are using the MyFaces implementation that resides under /modules.  If you do this it means "Ignore all the regular JSF stuff.  The WAR is taking care of everything JSF-related".  So comment this out.{noformat}
    <context-param>
        <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
        <param-value>true</param-value>
    </context-param>{noformat}
    
You don't want this because it will be handled automatically by WildFly.  If you specify this listener in web.xml then it won't be able to find the class.{noformat}
   <listener>
        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>{noformat}

So now what I see with your app is some errors that indicate the datasource is missing.  I assume you probably won't have that problem.{noformat}
14:36:50,762 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ({"deployment" => "Lo
calization.war"}) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"Localization.war#LocalizationPU\" is m
issing [jboss.naming.context.java.jboss.datasources.LocalizationDS]"]}
14:36:50,767 ERROR [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "Localization.war" was rolled back with the following failure me
ssage: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"Localization.war#LocalizationPU\" is missing [jboss.naming.context.java.
jboss.datasources.LocalizationDS]"]}
{noformat}
                
> Multi-JSF doesn't understand new modules structure
> --------------------------------------------------
>
>                 Key: WFLY-976
>                 URL: https://issues.jboss.org/browse/WFLY-976
>             Project: WildFly
>          Issue Type: Bug
>          Components: JSF
>            Reporter: Stan Silvert
>            Assignee: Stan Silvert
>         Attachments: install-myfaces-2.1.11.cli, Localization.war, Localization.war
>
>
> With the new modules structure, Multi-JSF is looking for JSF implementations in the root of the modules directory instead of in modules/system/layers/base.  The reason is that Multi-JSF relies on the module.path property which points to the root by default.
> The workaround is to go ahead and install the new JSF impl wherever you wish and add that directory to JBOSS_MODULEPATH in the startup script.  
> See https://community.jboss.org/wiki/DesignOfAS7Multi-JSFFeature#comment-11789

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list