Application fail to run

UI Components for JSF
Post Reply
shmu80
Posts: 8
Joined: 21 Apr 2015, 07:04

21 Apr 2015, 15:18

I just newly create a PrimeFaces web application. When I run the project it throw the exception below. May I know what problem I am facing?
Apr 21, 2015 8:45:53 PM com.sun.faces.context.ExceptionHandlerImpl log
FATAL: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
at org.primefaces.config.ConfigContainer.initConfigFromWebXml(ConfigContainer.java:283)
at org.primefaces.config.ConfigContainer.<init>(ConfigContainer.java:88)
at org.primefaces.context.DefaultApplicationContext.<init>(DefaultApplicationContext.java:35)
at org.primefaces.context.DefaultRequestContext.getApplicationContext(DefaultRequestContext.java:227)
at org.primefaces.metadata.transformer.MetadataTransformerExecutor.processEvent(MetadataTransformerExecutor.java:50)
at javax.faces.event.SystemEvent.processListener(Unknown Source)
at javax.faces.event.ComponentSystemEvent.processListener(Unknown Source)
at com.sun.faces.application.ApplicationImpl.processListeners(Unknown Source)
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(Unknown Source)
at com.sun.faces.application.ApplicationImpl.publishEvent(Unknown Source)
at com.sun.faces.application.ApplicationImpl.publishEvent(Unknown Source)
at javax.faces.component.UIComponentBase.publishAfterViewEvents(Unknown Source)
at javax.faces.component.UIComponentBase.doPostAddProcessing(Unknown Source)
at javax.faces.component.UIComponentBase.setParent(Unknown Source)
at javax.faces.component.UIComponentBase$ChildrenList.add(Unknown Source)
at javax.faces.component.UIComponentBase$ChildrenList.add(Unknown Source)
at com.sun.faces.facelets.tag.jsf.ComponentSupport.addComponent(Unknown Source)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.addComponentToView(Unknown Source)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.addComponentToView(Unknown Source)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(Unknown Source)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(Unknown Source)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(Unknown Source)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(Unknown Source)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(Unknown Source)
at com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
at com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
at com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(Unknown Source)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(Unknown Source)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(Unknown Source)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(Unknown Source)
at com.sun.faces.facelets.impl.DefaultFacelet.apply(Unknown Source)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(Unknown Source)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
at javax.faces.webapp.FacesServlet.service(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

erainformatica
Posts: 5
Joined: 04 Apr 2015, 11:15

28 Apr 2015, 22:31

hi, in my case the issue was created by the library jcaptcha-all that has xercesImpl as dependency (that cause the issue). I remove the library reference and all was ok (no problem instead using primefaces 5.1, only with 5.2).

Check your pom.xml to check your dependency and find the one that cause the problem.

Regards, Roberto De Domenico.

shmu80
Posts: 8
Joined: 21 Apr 2015, 07:04

29 Apr 2015, 09:43

erainformatica wrote:hi, in my case the issue was created by the library jcaptcha-all that has xercesImpl as dependency (that cause the issue). I remove the library reference and all was ok (no problem instead using primefaces 5.1, only with 5.2).

Check your pom.xml to check your dependency and find the one that cause the problem.

Regards, Roberto De Domenico.
I found it is not working if i define the code below in web.xml, so i have to remove it.
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

29 Apr 2015, 10:49

shmu80 wrote:I found it is not working if i define the code below in web.xml, so i have to remove it.
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
This configuration won't create the issue.The JSF configuration is required for any JSF based application.Just follow as OP suggested above.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

techleadindia
Posts: 2
Joined: 22 Jun 2015, 13:19

25 Jun 2015, 14:45

javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V

Same error faced by me... Any successful solutions?

capablanca
Posts: 5
Joined: 09 Nov 2012, 17:52

10 Jul 2015, 14:48

Same error faced by me... Any successful solutions ?

zeroeye
Posts: 16
Joined: 14 Jan 2013, 20:20

30 Jul 2015, 12:29

Same error faced by me...

Code: Select all

java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
	at org.primefaces.config.ConfigContainer.initConfigFromWebXml(ConfigContainer.java:283)
        ....
Using newest PF 5.2.6.
xerces-problem??

mightylababo
Posts: 3
Joined: 11 Jul 2013, 14:02

27 Aug 2015, 16:00

somehow xerces suddenly had conflicts. I added this to my war's pom.xml


Code: Select all

<dependency>
  <groupId>xerces</groupId>
  <artifactId>xerces</artifactId>
  <version>2.4.0</version>
  <scope>provided</scope>
</dependency>

fisco7486
Posts: 1
Joined: 08 Jan 2016, 19:53

08 Jan 2016, 19:55

Any solution for this problem????

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests