javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via ICEsoft JIRA Issue Tracker by Arran Mccullough, 1 year ago
Cannot add the same component twice: javax_faces_location_HEAD
via ICEsoft JIRA Issue Tracker by Arran Mccullough, 1 year ago
Cannot add the same component twice: javax_faces_location_HEAD
via ICEsoft JIRA Issue Tracker by Carmen Cristurean, 6 months ago
Cannot add the same component twice: j_idt477:paginatorfirst
via ICEsoft JIRA Issue Tracker by Carmen Cristurean, 6 months ago
Cannot add the same component twice: main:j_idt15:j_idt52first
via icesoft.org by Unknown author, 1 year ago
javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD
at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:748)
at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:664)
at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:347)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108)
at com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2218)
at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2036)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:290)
at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2253)
at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1934)
at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:447)
at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2993)
at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2953)
at javax.faces.component.UIViewRoot.getComponentResources(UIViewRoot.java:1818)
at org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.initializeFacetContainer(InitializeHeadAndBodyFacetContainers.java:49)
at org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.beforePhase(InitializeHeadAndBodyFacetContainers.java:34)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.