JSF/Context initialization failure - jsf-2
I am migrating an application (JSF 2.0/openJPA/primeFaces, EJB 3.0 & JPA 2.0) from WAS v7 to Liberty 8.5.5.9.The application has been deployed and started successfully however I am getting context initialization failure error while opening the page. The error detail is given below. Could anyone help me to resolve the issue? Thanks in advance. I further add the ffdc log that is created whenever I am trying to open any page. It shows it's caused by java.lang.NullPointerException. I have changed the static initialization block with #PostConstruct & public void init(). So now I am not getting this error. But now I am facing a different NPE from filter that is added below at rhe end. Could you please have a look?
----------------------------------------------------------------------------
CONSOLE LOG
----------------------------------------------------------------------------
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/rest/*, wrapper-->ServletWrapper[RESTService:[/rest/*]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/abb_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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] 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.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/imageServlet/*, wrapper-->ServletWrapper[ImageServlet:[/imageServlet/*]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/*, wrapper-->ServletWrapper[Faces Servlet:[*.xhtml, /gsar/*]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/login/login_check, wrapper-->ServletWrapper[GSARLogin:[/gsar/login/login_check]], application-->GSAR-WebEAR.
[WARNING ] More than one managed bean w/ the name of 'solutionPopupCodePageController' - only keeping the last
[ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.NoClassDefFoundError: com.ibm.gsar.bean.SiteNavBean (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:181)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1505)
at com.ibm.ws.jsf.config.annotation.WebSphereAnnotationLifecycleProvider.newInstance(WebSphereAnnotationLifecycleProvider.java:63)
at [internal classes]
[ERROR ] SRVE0315E: An exception occurred: java.lang.Throwable: java.lang.NullPointerException
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4913)
at [internal classes]
Caused by: java.lang.NullPointerException
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChainContents(WebAppFilterManager.java:829)
... 1 more
[ERROR ] SRVE0095I: Servlet has become temporarily unavailable for service: /services/gsar/gsar.xhtml
----------------------------------------------------------------------------
**FDDC.LOG**
----------------------------------------------------------------------------
Exception = java.lang.ExceptionInInitializerError
Source = com.ibm.ws.webcontainer.osgi.DynamicVirtualHost
probeid = startWebApp
Stack Dump = java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:263)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:208)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:176)
at com.ibm.ws.webcontainer.osgi.webapp.WebApp.addClassToHandlesTypesStartupSet(WebApp.java:1096)
at com.ibm.ws.webcontainer.osgi.webapp.WebApp.scanForHandlesTypesClasses(WebApp.java:959)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeServletContainerInitializers(WebApp.java:2473)
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)
Caused by: java.lang.NullPointerException
at pagecode.PageCodeBase.<clinit>(PageCodeBase.java:42)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:241)
... 26 more
---------------------------------------------------------------------------------
CONSOLE LOG - Filter Error
---------------------------------------------------------------------------------
Error Page Exception
SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below.
Original Exception:
Error Message: java.lang.NullPointerException
Error Code: 500
Target Servlet: Faces Servlet
Error Stack:
java.lang.NullPointerException
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChainContents(WebAppFilterManager.java:829)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:385)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:985)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1143)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:928)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:262)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:955)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:341)
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)
Error Page Exception:
Error Message: java.lang.NullPointerException
Error Code: 0
Target Servlet:
Error Stack:
java.lang.NullPointerException
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChainContents(WebAppFilterManager.java:829)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:385)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:988)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1143)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1378)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:186)
at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:4212)
at com.ibm.ws.webcontainer.webapp.WebApp.handleException(WebApp.java:4944)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:97)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:928)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:262)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:955)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:341)
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)
FacesContext.getCurrentInstance() has returned null. It is somewhat questionable that WebSphere Application Server is initializing your class in this context (likely using 1-arg Class.forName rather than 3-arg no-init Class.forName or ClassLoader.loadClass), but it is extremely fragile for you to try to access the JSF context from a static initializer. My recommendation would be to use a ServletContextListener to obtain ServletContext.getContextPath rather than hoping your class is initialized in the right context.
Related
Nifi instances in docker containers doesn't start
I have a gcp so i had made two dockers to look them like instances in a cluster with nifi installed on it. I'm able to run them individually but as soon as i run them as complete cluster by changing zookeeper and nifi properties it stops working gives me the below error. I had already cleared my provenance repo but still getting the same error . I was following the link from here Logs from one the instance 2018-08-24 05:45:20,296 INFO [main] o.a.n.p.PersistentProvenanceRepository Created new Provenance Event Writers for events starting with ID 0 2018-08-24 05:45:20,309 INFO [main] o.a.n.c.repository.FileSystemRepository Maximum Threshold for Container default set to 108218562150 bytes; if volume exceeds this size, archived data will be deleted until it no longer exceeds this size 2018-08-24 05:45:20,310 INFO [main] o.a.n.c.repository.FileSystemRepository Initializing FileSystemRepository with 'Always Sync' set to false 2018-08-24 05:45:20,652 INFO [main] org.wali.MinimalLockingWriteAheadLog org.wali.MinimalLockingWriteAheadLog#5a8ef07 finished recovering records. Performing Checkpoint to ensure proper state of Partitions before updates 2018-08-24 05:45:20,652 INFO [main] org.wali.MinimalLockingWriteAheadLog Successfully recovered 4288 records in 38 milliseconds 2018-08-24 05:45:20,677 INFO [main] org.wali.MinimalLockingWriteAheadLog org.wali.MinimalLockingWriteAheadLog#5a8ef07 checkpointed with 4288 Records and 0 Swap Files in 24 milliseconds (Stop-the-world time = 6 milliseconds, Clear Edit Logs time = 2 millis), max Transaction ID 1475996 2018-08-24 05:45:20,746 INFO [main] o.apache.nifi.controller.FlowController Not enabling RAW Socket Site-to-Site functionality because nifi.remote.input.socket.port is not set 2018-08-24 05:45:20,779 WARN [main] org.eclipse.jetty.webapp.WebAppContext Failed startup of context o.e.j.w.WebAppContext#477b1fca{/nifi-api,file:///nifi/nifi-1.6.0/work/jetty/nifi-web-api-1.6.0.war/webapp/,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-1.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-api-1.6.0.war} org.apache.nifi.web.NiFiCoreException: Unable to start Flow Controller. at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:88) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:290) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.server.Server.start(Server.java:452) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.server.Server.doStart(Server.java:419) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:777) at org.apache.nifi.NiFi.<init>(NiFi.java:157) at org.apache.nifi.NiFi.<init>(NiFi.java:71) at org.apache.nifi.NiFi.main(NiFi.java:292) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: ./state/zookeeper/myid file is missing at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1084) at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:55) ... 33 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: ./state/zookeeper/myid file is missing at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1084) at org.apache.nifi.spring.StandardFlowServiceFactoryBean.getObject(StandardFlowServiceFactoryBean.java:48) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 39 common frames omitted Caused by: java.lang.IllegalArgumentException: ./state/zookeeper/myid file is missing at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:350) at org.apache.nifi.controller.state.server.ZooKeeperStateServer.<init>(ZooKeeperStateServer.java:55) at org.apache.nifi.controller.state.server.ZooKeeperStateServer.create(ZooKeeperStateServer.java:189) at org.apache.nifi.controller.FlowController.<init>(FlowController.java:608) at org.apache.nifi.controller.FlowController.createClusteredInstance(FlowController.java:445) at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:63) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 46 common frames omitted 2018-08-24 05:45:21,495 INFO [main] o.e.j.a.AnnotationConfiguration Scanning elapsed time=445ms 2018-08-24 05:45:21,498 INFO [main] o.e.j.C./nifi-content-viewer No Spring WebApplicationInitializer types detected on classpath 2018-08-24 05:45:21,535 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext#49c45057{/nifi-content-viewer,file:///nifi/nifi-1.6.0/work/jetty/nifi-web-content-viewer-1.6.0.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-content-viewer-1.6.0.war} 2018-08-24 05:45:21,563 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.s.h.ContextHandler#2c85c878{/nifi-docs,null,AVAILABLE} 2018-08-24 05:45:21,616 INFO [main] o.e.j.a.AnnotationConfiguration Scanning elapsed time=33ms 2018-08-24 05:45:21,619 INFO [main] o.e.jetty.ContextHandler./nifi-docs No Spring WebApplicationInitializer types detected on classpath 2018-08-24 05:45:21,668 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext#47287357{/nifi-docs,file:///nifi/nifi-1.6.0/work/jetty/nifi-web-docs-1.6.0.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-docs-1.6.0.war} 2018-08-24 05:45:21,717 INFO [main] o.e.j.a.AnnotationConfiguration Scanning elapsed time=31ms 2018-08-24 05:45:21,751 INFO [main] org.eclipse.jetty.ContextHandler./ No Spring WebApplicationInitializer types detected on classpath 2018-08-24 05:45:21,757 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext#aa8284e{/,file:///nifi/nifi-1.6.0/work/jetty/nifi-web-error-1.6.0.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-error-1.6.0.war} 2018-08-24 05:45:21,785 INFO [main] o.eclipse.jetty.server.AbstractConnector Started ServerConnector#727b060{HTTP/1.1,[http/1.1]}{0.0.0.0:8051} 2018-08-24 05:45:21,785 INFO [main] org.eclipse.jetty.server.Server Started #61390ms 2018-08-24 05:45:21,786 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down. org.apache.nifi.web.NiFiCoreException: Unable to start Flow Controller. at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:88) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:290) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.server.Server.start(Server.java:452) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.server.Server.doStart(Server.java:419) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:777) at org.apache.nifi.NiFi.<init>(NiFi.java:157) at org.apache.nifi.NiFi.<init>(NiFi.java:71) at org.apache.nifi.NiFi.main(NiFi.java:292) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: ./state/zookeeper/myid file is missing at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1084) at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:55) ... 33 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: ./state/zookeeper/myid file is missing at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1084) at org.apache.nifi.spring.StandardFlowServiceFactoryBean.getObject(StandardFlowServiceFactoryBean.java:48) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 39 common frames omitted Caused by: java.lang.IllegalArgumentException: ./state/zookeeper/myid file is missing at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:350) at org.apache.nifi.controller.state.server.ZooKeeperStateServer.<init>(ZooKeeperStateServer.java:55) at org.apache.nifi.controller.state.server.ZooKeeperStateServer.create(ZooKeeperStateServer.java:189) at org.apache.nifi.controller.FlowController.<init>(FlowController.java:608) at org.apache.nifi.controller.FlowController.createClusteredInstance(FlowController.java:445) at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:63) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 46 common frames omitted 2018-08-24 05:45:21,788 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2018-08-24 05:45:21,794 INFO [Thread-1] o.eclipse.jetty.server.AbstractConnector Stopped ServerConnector#727b060{HTTP/1.1,[http/1.1]}{0.0.0.0:8051} 2018-08-24 05:45:21,795 INFO [Thread-1] org.eclipse.jetty.server.session Stopped scavenging Zookeeper properties clientPort=2181 initLimit=10 autopurge.purgeInterval=24 syncLimit=5 tickTime=2000 dataDir=./state/zookeeper autopurge.snapRetainCount=30 # # Specifies the servers that are part of this zookeeper ensemble. For # every NiFi instance running an embedded zookeeper, there needs to be # a server entry below. For instance: # # server.1=nifi-node1-hostname:2888:3888 # server.2=nifi-node2-hostname:2888:3888 # server.3=nifi-node3-hostname:2888:3888 # # The index of the server corresponds to the myid file that gets created # in the dataDir of each node running an embedded zookeeper. See the # administration guide for more details. # server.1=<server-ip>:2888:3888 server.2=<server-ip>:2888:3888
Google Cloud Dataflow jobs failing, inaccessible jars & 410 gone errors
A number of my Google Cloud Dataflow jobs failed yesterday, reporting internal errors that I have not seen before. Here are two examples: Job ID 2016-01-31_12_14_47-10166346951693629111 failed with the following error: Jan 31, 2016, 10:15:25 PM (bc20d8395f1f7459): Staged package jetty-servlet-9.2.10.v20150310-3EcW9gR7xsTM1TnqPH__rQ.jar at location 'gs://XXXXXXXXX/jetty-servlet-9.2.10.v20150310-3EcW9gR7xsTM1TnqPH__rQ.jar' is inaccessible. and job ID 2016-01-31_12_22_11-15290010907236071290 failed with this error: Jan 31, 2016, 11:13:58 PM (56214ba1d51ca7d6): java.io.IOException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 410 Gone { "code" : 500, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" } ], "message" : "Backend Error" } at com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel.waitForCompletionAndThrowIfUploadFailed(AbstractGoogleAsyncWriteChannel.java:431) at com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel.close(AbstractGoogleAsyncWriteChannel.java:289) at com.google.cloud.dataflow.sdk.runners.worker.TextSink$TextFileWriter.close(TextSink.java:243) at com.google.cloud.dataflow.sdk.util.common.worker.WriteOperation.finish(WriteOperation.java:100) at com.google.cloud.dataflow.sdk.util.common.worker.MapTaskExecutor.execute(MapTaskExecutor.java:77) at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorker.executeWork(DataflowWorker.java:254) at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorker.doWork(DataflowWorker.java:191) at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorker.getAndPerformWork(DataflowWorker.java:144) at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorkerHarness$WorkerThread.doWork(DataflowWorkerHarness.java:180) at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorkerHarness$WorkerThread.call(DataflowWorkerHarness.java:161) at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorkerHarness$WorkerThread.call(DataflowWorkerHarness.java:148) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 410 Gone { "code" : 500, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" } ], "message" : "Backend Error" } at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145) at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:432) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469) at com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel$UploadOperation.call(AbstractGoogleAsyncWriteChannel.java:357) ... 4 more Was there any maintenance or other work occurring on the Dataflow service that might have caused these errors?
Solr Initialization failure in production environment with ruby on rails
I am using Solr V5.3.1 with rails 4.2.2 and sunspot-solr are the rails gem on ubuntu 15.04 I have as Solr initialisation failure: SolrCore Initialization Failures production: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core production: Error loading solr config from /var/solr/data/production/conf/solrconfig.xml Please check your logs for more information The logs are as follows (solr.log): 2015-12-09 14:29:28.634 ERROR (qtp1450821318-17) [ ] o.a.s.c.SolrCore org.apache.solr.common.SolrException: Error CREATEing SolrCore 'production': Unable to create core [production] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/var/solr/data/production/conf' at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:662) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:214) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:194) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143) at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:675) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:443) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:214) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.solr.common.SolrException: Unable to create core [production] at org.apache.solr.core.CoreContainer.create(CoreContainer.java:737) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:697) at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:629) ... 27 more Caused by: org.apache.solr.common.SolrException: Could not load conf for core production: Error loading solr config from /var/solr/data/production/conf/solrconfig.xml at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:80) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:721) ... 29 more Caused by: org.apache.solr.common.SolrException: Error loading solr config from /var/solr/data/production/conf/solrconfig.xml at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:186) at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:94) at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:74) ... 30 more Caused by: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'solrconfig.xml' in classpath or '/var/solr/data/production/conf' at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:363) at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:309) at org.apache.solr.core.Config.<init>(Config.java:122) at org.apache.solr.core.Config.<init>(Config.java:92) at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:201) at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:178) ... 32 more 2015-12-09 14:29:28.635 INFO (qtp1450821318-17) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/cores params={schema=schema.xml&dataDir=data&name=production&indexInfo=false&action=CREATE&collection=&shard=&wt=json&instanceDir=production&config=solrconfig.xml&_=1449671367929} status=400 QTime=674 2015-12-09 14:29:39.624 INFO (qtp1450821318-19) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/info/properties params={wt=json&_=1449671379587} status=0 QTime=8 2015-12-09 14:29:41.793 INFO (qtp1450821318-18) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/info/logging params={wt=json&since=0&_=1449671381576} status=0 QTime=188 2015-12-09 14:29:52.103 INFO (qtp1450821318-14) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/info/logging params={wt=json&since=1449671368634&_=1449671392070} status=0 QTime=0 2015-12-09 14:30:02.145 INFO (qtp1450821318-17) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/info/logging params={wt=json&since=1449671368634&_=1449671402114} status=0 QTime=0 2015-12-09 14:30:05.817 INFO (qtp1450821318-15) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/cores params={wt=json&_=1449671405761} status=0 QTime=24 2015-12-09 14:40:20.780 INFO (qtp1450821318-17) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/cores params={indexInfo=false&wt=json&_=1449672020748} status=0 QTime=1 2015-12-09 14:40:20.839 INFO (qtp1450821318-12) [ ] o.a.s.s.SolrDispatchFilter [admin] webapp=null path=/admin/info/system params={wt=json&_=1449672020806} status=0 QTime=5 The error suggests it cannot find solrconfig.xml in /var/solr/data/production/conf/solrconfig.xml - and indeed, that file does not exist. Infact /var/solr/data exists, but /var/solr/data/production does not! /var/solr/data contains one file which is solr.xml Can somebody please help me understand which piece of the solr setup I have missed out on - and a guide to help me finalise the configuration.
The problem was I had simply installed and started solr, without actually creating a collection called 'production'. I did this by executing /opt/solr/bin/solr create -c production as user solr and it now works exactly as I expected it to !
Error in creating bean security Chain in spring
I'm just new to spring using spring security with struts 2.0. As of my knowledge i configured everything but getting BeanCreation Exception. Here is My complete log Jan 07, 2015 10:47:29 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChainProxy': Cannot create inner bean '(inner bean)' of type [org.springframework.security.web.access.ExceptionTranslationFilter] while setting bean property 'filterChainMap' with key [Root bean: class [org.springframework.security.web.util.AnyRequestMatcher]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with key [8]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#26': Cannot create inner bean '(inner bean)' of type [org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint] while setting bean property 'authenticationEntryPoint'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#28': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: loginFormUrl must be specified and must be a valid redirect URL at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:351) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:376) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:162) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4544) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5016) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:570) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:594) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:487) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1322) at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1467) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:842) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:355) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:561) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#26': Cannot create inner bean '(inner bean)' of type [org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint] while setting bean property 'authenticationEntryPoint'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#28': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: loginFormUrl must be specified and must be a valid redirect URL at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:269) ... 55 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#28': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: loginFormUrl must be specified and must be a valid redirect URL at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:269) ... 61 more Caused by: java.lang.IllegalArgumentException: loginFormUrl must be specified and must be a valid redirect URL at org.springframework.util.Assert.isTrue(Assert.java:65) at org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.afterPropertiesSet(LoginUrlAuthenticationEntryPoint.java:87) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ... 64 more Jan 07, 2015 10:47:29 AM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext
Thanks for your reply guys. Actually it was a jar conflict i had two struts config jars of version 3.0.0 and 3.0.1 when i removed the 3.0.0 my application runs smoothly.
Struts2 Configuration file name in web.xml
http://struts.apache.org/2.3.1.2/docs/webxml.html According to above link we can specify configuration file name in web.xml. so I have added config param in following mapping. <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> <init-param> <param-name>config</param-name> <param-value>struts.xml</param-value> </init-param> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.action</url-pattern> </filter-mapping> Now I am unable to start web application. Following log is printed on console. SEVERE: Dispatcher initialization failed com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory). at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:144) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:113) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:90) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:86) at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:71) at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:67) at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:150) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:76) at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:116) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:483) at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:523) at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:521) at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:521) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:203) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory). at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:235) at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:225) at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(ContainerImpl.java:287) at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:117) at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:114) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:141) ... 39 more Dec 12, 2012 4:32:43 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory). - Class: com.opensymphony.xwork2.inject.ContainerImpl File: ContainerImpl.java Method: addInjectorsForMembers Line: 144 - com/opensymphony/xwork2/inject/ContainerImpl.java:144:-1 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:449) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory). at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:144) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:113) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:90) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:86) at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:71) at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:67) at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:150) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:76) at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:116) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:483) at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:523) at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:521) at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:521) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:203) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436) ... 20 more Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory). at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:235) at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:225) at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(ContainerImpl.java:287) at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:117) at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:114) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:141) ... 39 more Dec 12, 2012 4:32:43 PM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Dec 12, 2012 4:32:43 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/theStruts2] startup failed due to previous errors Dec 12, 2012 4:32:43 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: The web application [/theStruts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10#104e104e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;#1fb61fb6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. Dec 12, 2012 4:32:43 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: The web application [/theStruts2] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10#10281028]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;#13d013d0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
You need to define struts-default.xml and struts-plugin.xml as well inside <init-param>. <init-param> <param-name>config</param-name> <param-value>struts-default.xml,struts-plugin.xml,struts.xml</param-value> </init-param> Without it Struts2 cannot find necessary beans/results/interceptors/etc. defined in struts-default.xml file. Of course you could copy all declarations from default file to your configuration file.