Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.render.RenderKitFactory' was not configured properly.
  2.  
  3. <?xml version='1.0' encoding='UTF-8'?>
  4. <faces-config version="2.2"
  5. xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  6. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
  8. http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
  9.  
  10.  
  11. <navigation-rule>
  12. <navigation-case>
  13. <from-outcome>login</from-outcome>
  14. <to-view-id>/Login.xhtml</to-view-id>
  15. </navigation-case>
  16. </navigation-rule>
  17.  
  18. <managed-bean>
  19. <managed-bean-name>usuario</managed-bean-name>
  20. <managed-bean-class>MB.Usuario</managed-bean-class>
  21. <managed-bean-scope>request</managed-bean-scope>
  22. </managed-bean>
  23.  
  24. <navigation-rule>
  25. <from-view-id>/index.xhtml</from-view-id>
  26. <navigation-case>
  27. <from-outcome>case1</from-outcome>
  28. <to-view-id>/Cadastro.xhtml</to-view-id>
  29. </navigation-case>
  30. <navigation-case>
  31. <from-outcome>case2</from-outcome>
  32. <to-view-id>/Login.xhtml</to-view-id>
  33. </navigation-case>
  34. <navigation-case>
  35. <from-outcome>case3</from-outcome>
  36. <to-view-id>/Contato.xhtml</to-view-id>
  37. </navigation-case>
  38. <navigation-case>
  39. <from-outcome>case4</from-outcome>
  40. <to-view-id>/Avaliacoes.xhtml</to-view-id>
  41. </navigation-case>
  42. </navigation-rule>
  43. </faces-config>
  44.  
  45. <?xml version="1.0" encoding="UTF-8"?>
  46. <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"
  47. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  48. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
  49. http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  50. <persistence-unit name="WebApplication3PU" transaction-
  51. type="RESOURCE_LOCAL">
  52. <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
  53. <class>Entity.TbUsuario</class>
  54. <class>Entity.ClienteWeb</class>
  55. <exclude-unlisted-classes>false</exclude-unlisted-classes>
  56. <properties>
  57. <property name="javax.persistence.jdbc.url"
  58. value="jdbc:postgresql://localhost:5432/postgres"/>
  59. <property name="javax.persistence.jdbc.password" value="123"/>
  60. <property name="javax.persistence.jdbc.driver"
  61. value="org.postgresql.Driver"/>
  62. <property name="javax.persistence.jdbc.user" value="postgres"/>
  63. </properties>
  64. </persistence-unit>
  65.  
  66. <?xml version="1.0" encoding="UTF-8"?>
  67. <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
  68. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  69. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  70. http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
  71. <context-param>
  72. <param-name>javax.faces.PROJECT_STAGE</param-name>
  73. <param-value>Development</param-value><!--Developmente or Products-->
  74. </context-param>
  75. <servlet>
  76. <servlet-name>Faces Servlet</servlet-name>
  77. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  78. <load-on-startup>1</load-on-startup>
  79. </servlet>
  80. <servlet-mapping>
  81. <servlet-name>Faces Servlet</servlet-name>
  82. <url-pattern>/faces/*</url-pattern>
  83. </servlet-mapping>
  84. <session-config>
  85. <session-timeout>
  86. 30
  87. </session-timeout>
  88. </session-config>
  89. <welcome-file-list>
  90. <welcome-file>faces/index.xhtml</welcome-file>
  91. </welcome-file-list>
  92.  
  93. <context-param>
  94. <param-name>primefaces.THEME</param-name>
  95. <param-value>afterdark</param-value>
  96. </context-param>
  97.  
  98. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement