Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.render.RenderKitFactory' was not configured properly.
- <?xml version='1.0' encoding='UTF-8'?>
- <faces-config version="2.2"
- xmlns="http://xmlns.jcp.org/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
- http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
- <navigation-rule>
- <navigation-case>
- <from-outcome>login</from-outcome>
- <to-view-id>/Login.xhtml</to-view-id>
- </navigation-case>
- </navigation-rule>
- <managed-bean>
- <managed-bean-name>usuario</managed-bean-name>
- <managed-bean-class>MB.Usuario</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <navigation-rule>
- <from-view-id>/index.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>case1</from-outcome>
- <to-view-id>/Cadastro.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>case2</from-outcome>
- <to-view-id>/Login.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>case3</from-outcome>
- <to-view-id>/Contato.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>case4</from-outcome>
- <to-view-id>/Avaliacoes.xhtml</to-view-id>
- </navigation-case>
- </navigation-rule>
- </faces-config>
- <?xml version="1.0" encoding="UTF-8"?>
- <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
- http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
- <persistence-unit name="WebApplication3PU" transaction-
- type="RESOURCE_LOCAL">
- <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
- <class>Entity.TbUsuario</class>
- <class>Entity.ClienteWeb</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name="javax.persistence.jdbc.url"
- value="jdbc:postgresql://localhost:5432/postgres"/>
- <property name="javax.persistence.jdbc.password" value="123"/>
- <property name="javax.persistence.jdbc.driver"
- value="org.postgresql.Driver"/>
- <property name="javax.persistence.jdbc.user" value="postgres"/>
- </properties>
- </persistence-unit>
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
- <context-param>
- <param-name>javax.faces.PROJECT_STAGE</param-name>
- <param-value>Development</param-value><!--Developmente or Products-->
- </context-param>
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>/faces/*</url-pattern>
- </servlet-mapping>
- <session-config>
- <session-timeout>
- 30
- </session-timeout>
- </session-config>
- <welcome-file-list>
- <welcome-file>faces/index.xhtml</welcome-file>
- </welcome-file-list>
- <context-param>
- <param-name>primefaces.THEME</param-name>
- <param-value>afterdark</param-value>
- </context-param>
- </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement