CDI feature in WLP is not working - cdi
I have enabled cdi-1.0 in project facet along with beans.xml and added same feature in WLP for my JSF/EJB application to use #Inject from ManagedBean/controller. But it gives me below runntime errors that leads to "Context root failure" as result no page is loading. I am providing below the code snippets. Mesaage/trace.log and FFDC log. Please suggest what could be the reason? thanks in advance.
DocumentViewController.java
#ManagedBean
#ViewScoped
public class DocumentViewController extends javax.servlet.http.HttpServlet implements Serializable {
#Inject
private DocumentControllerLocal documentController = null;
/**
*
*/
private static final long serialVersionUID = -4113377542725857282L;
/**
*
*/
private List<Document> docs;
private List<Document> filteredDocs;
private String searchInput;
#PostConstruct
public void init() {
try {
.............
Message.log
[7/10/16 16:06:00:077 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/abb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:077 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/gda_framework_view.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:077 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/gda_overview.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:077 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/gda_sbb_table_view.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:077 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/primary_abb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/secondary_abb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/sbb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/sbb_integration_considerations.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/general_view/doc_type_models/doc_view_type.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/general_view/doc_type_models/document_type.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/view_client_first.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/about_playbook_1.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/about_playbook_2.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/about_playbook.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/view_service_line.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/view_service_line_component.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/imageServlet/*, wrapper-->ServletWrapper[ImageServlet:[/imageServlet/*]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/faces/*, wrapper-->ServletWrapper[Faces Servlet:[*.faces, /faces/*, *.xhtml, /gsar/*]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/*, wrapper-->ServletWrapper[Faces Servlet:[*.faces, /faces/*, *.xhtml, /gsar/*]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:092 IST] 00000047 webapp W com.ibm.ws.webcontainer.webapp.WebApp createServletWrappers SRVE0274W: Error while adding servlet mapping for path-->/gsar/login/login_check, wrapper-->ServletWrapper[GSARLogin:[/gsar/login/login_check]], application-->GSAR-WebEAR.
[7/10/16 16:06:00:202 IST] 00000047 WebContainerL I OpenWebBeans Container is starting...
[7/10/16 16:06:00:638 IST] 00000047 InjectionTarg W CWNEN0057W: The com.ibm.gsar.dao.FwbCatDAO.fwbController injection target must not be declared static.
[7/10/16 16:06:00:638 IST] 00000047 InjectionTarg W CWNEN0057W: The com.ibm.gsar.dao.GsspServiceDAO.gsspController injection target must not be declared static.
[7/10/16 16:06:00:654 IST] 00000047 InjectionTarg W CWNEN0057W: The com.ibm.gsar.dao.PageCommentDAO.pageCommentController injection target must not be declared static.
[7/10/16 16:06:00:654 IST] 00000047 InjectionTarg W CWNEN0057W: The com.ibm.gsar.dao.SearchDAO.searchController injection target must not be declared static.
[7/10/16 16:06:00:654 IST] 00000047 InjectionTarg W CWNEN0057W: The com.ibm.gsar.dao.abb.AbbAssetDAO.gdaControllerLocal injection target must not be declared static.
[7/10/16 16:06:00:670 IST] 00000047 MethodMap W CWNEN0049W: Resource annotations on the methods of the com.ibm.gsar.scheduler.DocumentReviewReminderTask class will be ignored. The annotations could not be obtained because of the exception : java.lang.NoClassDefFoundError: TaskHandlerHome
[7/10/16 16:06:00:670 IST] 00000047 InjectionProc W CWNEN0047W: Resource annotations on the fields of the com.ibm.gsar.scheduler.SchedulerContext class will be ignored. The annotations could not be obtained because of the exception : java.lang.NoClassDefFoundError: Scheduler
[7/10/16 16:06:00:685 IST] 00000047 MethodMap W CWNEN0049W: Resource annotations on the methods of the com.ibm.gsar.scheduler.SchedulerContext class will be ignored. The annotations could not be obtained because of the exception : java.lang.NoClassDefFoundError: TaskStatus
[7/10/16 16:06:00:685 IST] 00000047 MethodMap W CWNEN0049W: Resource annotations on the methods of the com.ibm.gsar.scheduler.SchedulerServiceLocator class will be ignored. The annotations could not be obtained because of the exception : java.lang.NoClassDefFoundError: Scheduler
[7/10/16 16:06:00:685 IST] 00000047 MethodMap W CWNEN0049W: Resource annotations on the methods of the com.ibm.gsar.scheduler.SchedulerTask class will be ignored. The annotations could not be obtained because of the exception : java.lang.NoClassDefFoundError: TaskHandlerHome
[7/10/16 16:06:00:701 IST] 00000047 BeansDeployer E PassivationCapable bean id is not unique: MANAGER#interface javax.enterprise.inject.spi.BeanManager##javax.enterprise.inject.Any(),#javax.enterprise.inject.Default(), bean:BeanManager, Name:null, WebBeans Type:MANAGER, API Types:[javax.enterprise.inject.spi.BeanManager,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
org.apache.webbeans.exception.definition.DuplicateDefinitionException: PassivationCapable bean id is not unique: MANAGER#interface javax.enterprise.inject.spi.BeanManager##javax.enterprise.inject.Any(),#javax.enterprise.inject.Default(), bean:BeanManager, Name:null, WebBeans Type:MANAGER, API Types:[javax.enterprise.inject.spi.BeanManager,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
at org.apache.webbeans.container.BeanManagerImpl.addPassivationInfo(BeanManagerImpl.java:394)
at org.apache.webbeans.container.BeanManagerImpl.addInternalBean(BeanManagerImpl.java:367)
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:157)
at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:157)
at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:97)
at com.ibm.ws.webbeans.WebBeansInitializer.onStartup(WebBeansInitializer.java:70)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeServletContainerInitializers(WebApp.java:2486)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1038)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6463)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:446)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.createRunnableHandler(DynamicVirtualHost.java:248)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.createRunnableHandler(DynamicVirtualHost.java:313)
at com.ibm.ws.http.internal.VirtualHostImpl.discriminate(VirtualHostImpl.java:251)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:306)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:471)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:405)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:285)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:256)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:174)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:83)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:504)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:574)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:929)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1018)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.lang.Thread.run(Thread.java:780)
[7/10/16 16:06:00:763 IST] 00000047 IncidentImpl I FFDC1015I: An FFDC Incident has been created: "org.apache.webbeans.exception.definition.DuplicateDefinitionException: PassivationCapable bean id is not unique: MANAGER#interface javax.enterprise.inject.spi.BeanManager##javax.enterprise.inject.Any(),#javax.enterprise.inject.Default(), bean:BeanManager, Name:null, WebBeans Type:MANAGER, API Types:[javax.enterprise.inject.spi.BeanManager,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default] com.ibm.ws.webcontainer.osgi.DynamicVirtualHost startWebApp" at ffdc_16.07.10_16.06.00.0.log
FFDC Log
------Start of DE processing------ = [7/10/16 16:06:00:732 IST]
Exception = org.apache.webbeans.exception.definition.DuplicateDefinitionException
Source = com.ibm.ws.webcontainer.osgi.DynamicVirtualHost
probeid = startWebApp
Stack Dump = org.apache.webbeans.exception.definition.DuplicateDefinitionException: PassivationCapable bean id is not unique: MANAGER#interface javax.enterprise.inject.spi.BeanManager##javax.enterprise.inject.Any(),#javax.enterprise.inject.Default(), bean:BeanManager, Name:null, WebBeans Type:MANAGER, API Types:[javax.enterprise.inject.spi.BeanManager,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
at org.apache.webbeans.container.BeanManagerImpl.addPassivationInfo(BeanManagerImpl.java:394)
at org.apache.webbeans.container.BeanManagerImpl.addInternalBean(BeanManagerImpl.java:367)
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:157)
at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:157)
at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:97)
at com.ibm.ws.webbeans.WebBeansInitializer.onStartup(WebBeansInitializer.java:70)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeServletContainerInitializers(WebApp.java:2486)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1038)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6463)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:446)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.createRunnableHandler(DynamicVirtualHost.java:248)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.createRunnableHandler(DynamicVirtualHost.java:313)
at com.ibm.ws.http.internal.VirtualHostImpl.discriminate(VirtualHostImpl.java:251)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:306)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:471)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:405)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:285)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:256)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:174)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:83)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:504)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:574)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:929)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1018)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.lang.Thread.run(Thread.java:780)
You have cross posted this on IBM DeveloperWorks, which several of us have answered your questions.
This is most likely do to a configuration conflict. Try enabling the features cdi-1.2 and jsf-2.2, and you should be using #Named and not #ManagedBean.
The FFDC here is saying that you have a duplicate field somewhere. Without seeing more of your project, it seems likely there's some issue with the mixing of JSF and CDI injection here. For example, you're using #ManagedBean on the code snippet, while trying to leverage CDI injection (#Named) elsewhere. A good starting point may be to convert your JSF-injected beans to CDI-injected beans.
Discussion on JSF vs CDI injection
Related
JakartaSever Faces application setup fails with java.lang.ClassNotFoundException: com.sun.faces.util.Util
I'm in the process of setting up a brand new JavaServer Faces project that uses Jakarta. I'm following this as a guide, and while I understand the problem with the stacktrace, I can't understand why (the new) Jakarta Faces implementation is asking me for an old dependency. This is what I have in the pom.xml file (simplified): <?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...> <packaging>war</packaging> <properties> <jakarta.platform.version>9.1.0</jakarta.platform.version> <java.version>11</java.version> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>jakarta.platform</groupId> <artifactId>jakarta.jakartaee-web-api</artifactId> <version>${jakarta.platform.version}</version> </dependency> <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>11.0.0</version> <classifier>jakarta</classifier> </dependency> </dependencyManagement> <dependencies> <dependency> <groupId>jakarta.platform</groupId> <artifactId>jakarta.jakartaee-web-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <classifier>jakarta</classifier> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>11.0.7</version> <dependencies> <dependency> <groupId>jakarta.platform</groupId> <artifactId>jakarta.jakartaee-web-api</artifactId> <version>${jakarta.platform.version}</version> </dependency> </dependencies> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> </plugin> </plugins> </build> </project> And the web.xml file looks like: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> <servlet> <servlet-name>faces-servlet</servlet-name> <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>faces-servlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.xhtml</welcome-file> </welcome-file-list> </web-app> TIP: I'm running the application with ./mvnw clean jetty:run. This is the entire stacktrace: java.lang.NoClassDefFoundError: com/sun/faces/util/Util at jakarta.faces.CurrentThreadToServletContext.getFactoryFinder (CurrentThreadToServletContext.java:52) at jakarta.faces.FactoryFinder.getFactory (FactoryFinder.java:260) at jakarta.faces.webapp.FacesServlet.acquireFacesContextFactory (FacesServlet.java:483) at jakarta.faces.webapp.FacesServlet.init (FacesServlet.java:328) at org.eclipse.jetty.servlet.ServletHolder$Wrapper.init (ServletHolder.java:1305) at org.eclipse.jetty.servlet.ServletHolder.initServlet (ServletHolder.java:633) at org.eclipse.jetty.servlet.ServletHolder.initialize (ServletHolder.java:415) at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$2 (ServletHandler.java:690) at java.util.stream.SortedOps$SizedRefSortingSink.end (SortedOps.java:357) at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:485) at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474) at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining (StreamSpliterators.java:312) at java.util.stream.Streams$ConcatSpliterator.forEachRemaining (Streams.java:735) at java.util.stream.ReferencePipeline$Head.forEach (ReferencePipeline.java:658) at org.eclipse.jetty.servlet.ServletHandler.initialize (ServletHandler.java:714) at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:392) at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1305) at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:896) at org.eclipse.jetty.servlet.ServletContextHandler.doStart (ServletContextHandler.java:306) at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:533) at org.eclipse.jetty.maven.plugin.MavenWebAppContext.doStart (MavenWebAppContext.java:294) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:121) at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:89) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:121) at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:89) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:171) at org.eclipse.jetty.server.Server.start (Server.java:469) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:89) at org.eclipse.jetty.server.Server.doStart (Server.java:414) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.maven.plugin.JettyEmbedder.doStart (JettyEmbedder.java:223) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.maven.plugin.JettyRunMojo.startJettyEmbedded (JettyRunMojo.java:97) at org.eclipse.jetty.maven.plugin.AbstractWebAppMojo.startJetty (AbstractWebAppMojo.java:441) at org.eclipse.jetty.maven.plugin.AbstractWebAppMojo.execute (AbstractWebAppMojo.java:419) at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute (JettyRunMojo.java:85) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39) at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122) at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:61) Caused by: java.lang.ClassNotFoundException: com.sun.faces.util.Util at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239) at jakarta.faces.CurrentThreadToServletContext.getFactoryFinder (CurrentThreadToServletContext.java:52) at jakarta.faces.FactoryFinder.getFactory (FactoryFinder.java:260) at jakarta.faces.webapp.FacesServlet.acquireFacesContextFactory (FacesServlet.java:483) at jakarta.faces.webapp.FacesServlet.init (FacesServlet.java:328) at org.eclipse.jetty.servlet.ServletHolder$Wrapper.init (ServletHolder.java:1305) at org.eclipse.jetty.servlet.ServletHolder.initServlet (ServletHolder.java:633) at org.eclipse.jetty.servlet.ServletHolder.initialize (ServletHolder.java:415) at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$2 (ServletHandler.java:690) at java.util.stream.SortedOps$SizedRefSortingSink.end (SortedOps.java:357) at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:485) at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474) at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining (StreamSpliterators.java:312) at java.util.stream.Streams$ConcatSpliterator.forEachRemaining (Streams.java:735) at java.util.stream.ReferencePipeline$Head.forEach (ReferencePipeline.java:658) at org.eclipse.jetty.servlet.ServletHandler.initialize (ServletHandler.java:714) at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:392) at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1305) at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:896) at org.eclipse.jetty.servlet.ServletContextHandler.doStart (ServletContextHandler.java:306) at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:533) at org.eclipse.jetty.maven.plugin.MavenWebAppContext.doStart (MavenWebAppContext.java:294) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:121) at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:89) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:121) at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:89) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:171) at org.eclipse.jetty.server.Server.start (Server.java:469) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:89) at org.eclipse.jetty.server.Server.doStart (Server.java:414) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.maven.plugin.JettyEmbedder.doStart (JettyEmbedder.java:223) at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:93) at org.eclipse.jetty.maven.plugin.JettyRunMojo.startJettyEmbedded (JettyRunMojo.java:97) at org.eclipse.jetty.maven.plugin.AbstractWebAppMojo.startJetty (AbstractWebAppMojo.java:441) at org.eclipse.jetty.maven.plugin.AbstractWebAppMojo.execute (AbstractWebAppMojo.java:419) at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute (JettyRunMojo.java:85) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39) at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122) at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:61) [INFO] Started ServerConnector#72b2c5ed{HTTP/1.1, (http/1.1)}{0.0.0.0:8080} [INFO] Started Server#57f8951a{STARTING}[11.0.7,sto=0] #2371ms [INFO] Scan interval sec = 10
You still need to include some Jakara Faces implementation, and in this case, the easiest one would be the Mojarra because you are using the standard Jakarta Faces API that already requires some classes from the Mojarra implementation. You can checkout all the required dependencies here: https://github.com/eclipse-ee4j/mojarra If you want to use the Myfaces, you'll need to replace the standard Jakarta Faces API for the Jakata Faces API provided by them.
404 on FacesServlet causes infinite loop with java.lang.NullPointerException at org.apache.myfaces.shared_impl.context.flash.FlashImpl.isKeepMessages
In WebSphere 8.5, accessing /myapp, /myapp/, /myapp/nosuchpage and /myapp/faces/nosuchpage will procude a 404, which is fine. But /myapp/faces and /myapp/faces/ causes instead of 404 an infinite loop with a NPE on MyFaces Flash scope as seen in the log. [3/6/15 16:58:03:391 CST] 000000f7 SystemOut O [PhaseListener:beforePhase] phase=RESTORE_VIEW(1) [3/6/15 16:58:03:391 CST] 000000f7 SystemOut O [PhaseListener:beforePhase] phase=RENDER_RESPONSE(6) [3/6/15 16:58:03:391 CST] 000000f7 SystemOut O [PhaseListener:beforePhase] fc.viewRoot.viewId=/faces/ fc.application.viewHandler.actionURL=/jsfTest2/faces//faces/ ... (repeats) [3/6/15 16:58:03:392 CST] 000000f7 SystemOut O [PhaseListener:beforePhase] phase=RESTORE_VIEW(1) [3/6/15 16:58:03:392 CST] 000000f7 SystemOut O [PhaseListener:beforePhase] phase=RENDER_RESPONSE(6) [3/6/15 16:58:03:392 CST] 000000f7 SystemOut O [PhaseListener:beforePhase] fc.viewRoot.viewId=/faces/ fc.application.viewHandler.actionURL=/jsfTest2/faces//faces/ [3/6/15 16:58:03:405 CST] 000000f7 ErrorPageWrit E An exception occurred java.lang.NullPointerException at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:107) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:186) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:119) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1111) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1385) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:194) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:367) at org.apache.myfaces.view.jsp.JspViewDeclarationLanguage.buildView(JspViewDeclarationLanguage.java:94) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:66) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:240) ... (repeats) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1111) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3901) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865) [3/6/15 16:58:03:429 CST] 000000f7 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception was thrown by one of the service methods of the servlet [Faces Servlet] in application [jsfTest2EAR]. Exception created : [java.lang.NullPointerException at org.apache.myfaces.shared_impl.context.flash.FlashImpl.isKeepMessages(FlashImpl.java:394) at org.apache.myfaces.shared_impl.context.flash.FlashImpl._saveMessages(FlashImpl.java:669) at org.apache.myfaces.shared_impl.context.flash.FlashImpl.doPostPhaseActions(FlashImpl.java:275) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:252) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1111) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1385) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:194) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:367) at org.apache.myfaces.view.jsp.JspViewDeclarationLanguage.buildView(JspViewDeclarationLanguage.java:94) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:66) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:240) ... (repeats) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1111) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3901) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865) ] [3/6/15 16:58:03:442 CST] 000000f7 LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called. ... (repeats) [3/6/15 16:58:04:523 CST] 000000f7 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse setStatus WARNING: Cannot set status. Response already committed. [3/6/15 16:58:04:523 CST] 000000f7 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader SRVE8094W: WARNING: Cannot set header. Response already committed. Adding <error-page> for 404 does not help. No such looping is observed in WebSphere 6.1. Perhaps a bug in MyFaces bundled in WebSphere 8.5? This is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>jsfTest2</display-name> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value></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>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <context-param> <param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP</param-name> <param-value>true</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>-1</load-on-startup> <enabled>true</enabled> <async-supported>false</async-supported> </servlet> <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> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
JBoss EAP 6.1 Oracle ADF 11
I'm trying to migrate JBoss EAP 5.1 application to JBoss EAP 6.1. My app uses JSF 1.2, MyFaces Trinidad and Oracle ADF 11 as jsf component libraries. The app was working fine on JBoss EAP 5.1. The deployment on JBoss EAP 6.1 is fine, but it seems that adf components seems are causing problems. The application generates exception when trying to open a page that uses ADF components. Here is the full stack trace: Failed to define class oracle.jbo.domain.Number in Module "deployment.MyAppServer.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link oracle/jbo/domain/Number (Module "deployment.MyAppServer.war:main" from Service Module Loader) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:427) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:75) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.Module.loadModuleClass(Module.java:526) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:188) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1] at oracle.adfinternal.view.rich.marshal.DefaultMarshalingService._registerDefaults(DefaultMarshalingService.java:244) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.rich.marshal.DefaultMarshalingService.<init>(DefaultMarshalingService.java:73) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.rich.marshal.DefaultMarshalingService.<clinit>(DefaultMarshalingService.java:334) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.faces.event.rich.ClientEventUtils._getEventParameters(ClientEventUtils.java:248) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.faces.event.rich.ClientEventUtils._parseEvents(ClientEventUtils.java:177) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.faces.event.rich.ClientEventUtils._getAndLoadEvents(ClientEventUtils.java:146) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.faces.event.rich.ClientEventUtils.decodeAndStoreClientEvents(ClientEventUtils.java:125) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.faces.context.RichPhaseListener.beforePhase(RichPhaseListener.java:249) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:258) [adf-richclient-impl-11.jar:] at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177) [adf-richclient-impl-11.jar:] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-b01-redhat-3.jar:1.2_15-b01-redhat-3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97) [adf-richclient-impl-11.jar:] at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) [trinidad-impl-1.2.12.1.jar:1.2.12.1-SNAPSHOT] at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) [adf-richclient-impl-11.jar:] at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) [trinidad-impl-1.2.12.1.jar:1.2.12.1-SNAPSHOT] at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) [trinidad-impl-1.2.12.1.jar:1.2.12.1-SNAPSHOT] at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) [trinidad-impl-1.2.12.1.jar:1.2.12.1-SNAPSHOT] at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) [trinidad-api-1.2.12.1.jar:1.2.12.1-SNAPSHOT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at com.edf.marketlab.web.filter.SessionActivityFilter.doFilter(SessionActivityFilter.java:67) [classes:] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam-2.2.2.EAP5.jar:2.2.2.EAP5] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1] at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25] Caused by: java.lang.NoClassDefFoundError: oracle/sql/ORAData at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_25] at java.lang.ClassLoader.defineClass(ClassLoader.java:792) [rt.jar:1.7.0_25] at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:344) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:422) [jboss-modules.jar:1.2.0.Final-redhat-1] ... 60 more Caused by: java.lang.ClassNotFoundException: oracle.sql.ORAData from [Module "deployment.MyAppServer.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1] I'm using the default JSF implementation (Mojorra) provided by JBoss. Here is my jboss-deployment-structure.xml: <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment> <exclusions> <module name="javax.faces.api" slot="main" /> <module name="com.sun.jsf-impl" slot="main" /> </exclusions> <dependencies> <module name="javax.faces.api" slot="1.2" /> <module name="com.sun.jsf-impl" slot="1.2" /> </dependencies> </deployment> </jboss-deployment-structure> Here is my pom.xml with the ADF dependencies : <dependency> <groupId>com.oracle.adf</groupId> <artifactId>adfm</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/adfm.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>adf-richclient-api</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/adf-richclient-api-11.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>adf-richclient-impl</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/adf-richclient-impl-11.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>adflogginghandler</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/adflogginghandler.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>adf-share-base</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/adf-share-base.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>adf-share-ca</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/adf-share-ca.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>adf-share-support</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/adf-share-support.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>dms</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/dms.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>mdsrt</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/mdsrt.jar </systemPath> </dependency> <dependency> <groupId>com.oracle.adf</groupId> <artifactId>xmlparserv2-distilled-9i</artifactId> <version>11.0</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/xmlparserv2-distilled-9i.jar </systemPath> </dependency> <dependency> <groupId>org.apache.myfaces.trinidad</groupId> <artifactId>trinidad-api</artifactId> <version>1.2.12.1</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/trinidad-api-1.2.12.1.jar </systemPath> </dependency> <dependency> <groupId>org.apache.myfaces.trinidad</groupId> <artifactId>trinidad-impl</artifactId> <version>1.2.12.1</version> <scope>system</scope> <systemPath> ${project.basedir}/src/main/webapp/WEB-INF/lib/trinidad-impl-1.2.12.1.jar </systemPath> </dependency>
Apache Shiro: redirect me to login page
When I try to access some protected page like the writerPage, Shiro keep redirecting me to the loging Page This is the shiro.ini file [users] admin = p mike = p, reader, writer joe = p, writer [urls] /success/** = authc /writer/** = authc And the server show some error: INFO: PWC1412: WebModule[/ShiroTest3_mvn] ServletContext.log():Cleaning up Shiro Environment INFO: PWC1412: WebModule[/ShiroTest3_mvn] ServletContext.log():Initializing Shiro environment GRAVE: 105 [http-thread-pool-4848-(1)] INFO org.apache.shiro.web.env.EnvironmentLoader - Starting Shiro environment initialization. GRAVE: 997 [http-thread-pool-4848-(1)] INFO org.apache.shiro.web.env.EnvironmentLoader - Shiro environment initialized in 882 ms. INFO: Loading application com.mycompany_ShiroTest3_mvn_war_1.0-SNAPSHOT at /ShiroTest3_mvn INFO: com.mycompany_ShiroTest3_mvn_war_1.0-SNAPSHOT was successfully deployed in 1 606 milliseconds. And this the web.xml file <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <session-config> <session-timeout> 30 </session-timeout> </session-config> <listener> <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class> </listener> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class> </filter> <filter-mapping> <filter-name>shiroFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> <dispatcher>ERROR</dispatcher> </filter-mapping> </web-app> Do i need to add/modify something? Though Shiro seems to be less complicated for a beginner compared to Spring Security, It seems it has less support :( UPDATE after adding the [main] code: I get this error server log error INFO: PWC1412: WebModule[null] ServletContext.log():Initializing Shiro environment GRAVE: 3155 [admin-thread-pool-4848(1)] INFO org.apache.shiro.web.env.EnvironmentLoader - Starting Shiro environment initialization. GRAVE: 4218 [admin-thread-pool-4848(1)] ERROR org.apache.shiro.web.env.EnvironmentLoader - Shiro environment initialization failed GRAVE: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:157) at org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:117) at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68) at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:153) at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:80) at org.apache.commons.beanutils.PropertyUtilsBean.getInstance(PropertyUtilsBean.java:114) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:460) at org.apache.shiro.config.ReflectionBuilder.isTypedProperty(ReflectionBuilder.java:248) at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:491) at org.apache.shiro.config.ReflectionBuilder.applySingleProperty(ReflectionBuilder.java:203) at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:164) at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:124) at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:170) at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:119) at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:97) at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:83) at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:41) at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123) at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47) at org.apache.shiro.web.env.IniWebEnvironment.createWebSecurityManager(IniWebEnvironment.java:203) at org.apache.shiro.web.env.IniWebEnvironment.configure(IniWebEnvironment.java:99) at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:92) at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45) at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40) at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:226) at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:138) at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366) at com.sun.enterprise.web.WebModule.start(WebModule.java:498) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 69 more GRAVE: PWC1306: Startup of context /ShiroTest3_mvn failed due to previous errors GRAVE: PWC1305: Exception during cleanup after start failed org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started at org.apache.catalina.session.StandardManager.stop(StandardManager.java:873) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5571) at com.sun.enterprise.web.WebModule.stop(WebModule.java:527) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5384) at com.sun.enterprise.web.WebModule.start(WebModule.java:498) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) GRAVE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.catalina.core.StandardContext.start(StandardContext.java:5389) at com.sun.enterprise.web.WebModule.start(WebModule.java:498) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:157) at org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:117) at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68) at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:153) at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:80) at org.apache.commons.beanutils.PropertyUtilsBean.getInstance(PropertyUtilsBean.java:114) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:460) at org.apache.shiro.config.ReflectionBuilder.isTypedProperty(ReflectionBuilder.java:248) at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:491) at org.apache.shiro.config.ReflectionBuilder.applySingleProperty(ReflectionBuilder.java:203) at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:164) at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:124) at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:170) at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:119) at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:97) at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:83) at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:41) at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123) at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47) at org.apache.shiro.web.env.IniWebEnvironment.createWebSecurityManager(IniWebEnvironment.java:203) at org.apache.shiro.web.env.IniWebEnvironment.configure(IniWebEnvironment.java:99) at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:92) at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45) at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40) at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:226) at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:138) at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366) ... 39 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 69 more ATTENTION: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) GRAVE: Exception while invoking class com.sun.enterprise.web.WebApplication start method java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) GRAVE: Exception while loading the app GRAVE: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
The authc filter is a FormAuthenticationFilter by default. Because it expects a form to exist, you must configure the form's url. But you have to configure that login URL in two places, one in [main] and another in [urls]: [main] authc.loginUrl = /login.jsp authc.successUrl = /success/successLogin.jsp [urls] /login.jsp = authc /success/** = authc /writer/** = authc The first line in [main] says "The authentication filter should use the following login URL when redirecting a user to login" The first line in [urls] says: "Whenever a request for the /login.jsp url comes in, I want the authc filter to handle the request". They are separate, but complementary config statements - both need to be specified for the FormAuthenticationFilter to work. when you changed to authcBasic, this worked because there is no form to process - the browser supplies the login dialog so Shiro doesn't have to look for form parameters.
Please include below jars in WEB-INF/lib commons-beanutils-1.6.1.jar commons-collections-2.1.jar commons-logging-1.0.3.jar log4j-1.2.14.jar slf4j-api-1.5.6.jar slf4j-log4j12-1.5.6.jar
JSF & Primefaces Fileupload exception
I keep getting the following error on my web application when trying to build an file upload system: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: PWC1243: Filter execution threw an exception root cause java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.0.1 logs. GlassFish Server Open Source Edition 3.0.1 My web.xml looks like this: <?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" version="2.5"> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> <filter-mapping> <filter-name>PrimeFaces FileUpload Filter</filter-name> <servlet-name>Faces Servlet</servlet-name> </filter-mapping> <filter> <filter-name>PrimeFaces FileUpload Filter</filter-name> <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class> </filter> </web-app> And my Maven pom.xml looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven- 4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>sentiment</groupId> <artifactId>sentiment</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <repositories> <repository> <id>prime-repo</id> <name>Prime Technology Maven Repository</name> <url>http://repository.primefaces.org</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <!-- <configuration> section added to pick up the WEB-INF/web.xml inside WebContent --> <configuration> <webResources> <resource> <directory>WebContent</directory> </resource> </webResources> </configuration> </plugin> </plugins> </build> <dependencyManagement> <dependencies> <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>3.5</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3</version> </dependency> </dependencies> </dependencyManagement> </project> start.xhtml includes the following form code: <h:form enctype="multipart/form-data"> <p:fileUpload fileUploadListener="#{sentimentAnalysis.analyse}" /> <p:commandButton value="submit" ajax="false"/> <h:messages /> </h:form> And my Bean contains the following code: #Named #ViewScoped public class SentimentAnalysis { private UploadedFile uploadedFile; public void analyse(FileUploadEvent event) throws IOException { uploadedFile = event.getFile(); readFile(uploadedFile); } I already tried putting the commons-fileupload and commons-io jars in the WEB-INF lib folder (which should not be necessary if running Maven), but to no avail. Commons-io is not mentioned in the pom.xml, but is mentioned in the 'dependency hierarchy' in Eclipse. BTW, I'm running Glassfish 3.0, JSF 2.0, primefaces and Eclipse Juno. Does anyone know what's wrong? Why doesn't it recognize the fileUploadFilter? Thanks in advance, Rory update: The complete stack trace is as follows: WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:722) WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:722) WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:722) WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:722) WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:722) WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:722)