Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory  RSS feed

 
Dave Alexander
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
I'm using Netbeans 8, glassfish 8 and jsf 2 but i've got an error message.
Grave: Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?
Grave: Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
Grave: Critical error during deployment:
com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'bundle://196.0:1/com/sun/faces/jsf-ri-runtime.xml': DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

Thanks in advance!
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JEE-compliant versions of Glassfish contain a copy of the JSF runtime libraries within themselves. This can cause problems in 2 ways:

1. If you're attempting to port something over from Tomcat - which isn't JSF-compliant - Tomcat apps have to include their own private copy of JSF and you have to exclude that when building for servers such as Glassfish

2. If you've built a WAR (or EAR) that expects to be using a different version of JSF than the one that the Glassfish server supplies, you might have problems. Specifically, if you're looking for newer JSF features.

The Glassfish docs tell more about this. For actual Glassfish-specific help on the Ranch, we have a forum where the Glassfish experts hang out.
 
Dave Alexander
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!