Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. apply plugin: 'eclipse'
  2.  
  3. apply plugin: 'war'
  4. apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'
  5.  
  6. gretty {
  7. port = 8080
  8. servletContainer = 'jetty9'
  9. }
  10.  
  11. repositories {
  12. mavenCentral()
  13. }
  14.  
  15. dependencies {
  16. compile group: "com.sun.faces", name: "jsf-api", version: "2.2.8"
  17. compile group: "com.sun.faces", name: "jsf-impl", version: "2.2.8"
  18. }
  19.  
  20. <?xml version="1.0" encoding="UTF-8"?>
  21. <web-app
  22. xmlns="http://java.sun.com/xml/ns/javaee"
  23. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  24. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  25. version="3.0">
  26.  
  27. <display-name>JavaServerFaces</display-name>
  28.  
  29. <!-- Change to "Production" when you are ready to deploy -->
  30. <context-param>
  31. <param-name>javax.faces.PROJECT_STAGE</param-name>
  32. <param-value>Development</param-value>
  33. </context-param>
  34.  
  35. <!-- JSF mapping -->
  36. <servlet>
  37. <servlet-name>Faces Servlet</servlet-name>
  38. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  39. <load-on-startup>1</load-on-startup>
  40. </servlet>
  41.  
  42. <!-- Map these files with JSF -->
  43. <servlet-mapping>
  44. <servlet-name>Faces Servlet</servlet-name>
  45. <url-pattern>/faces/*</url-pattern>
  46. </servlet-mapping>
  47. <servlet-mapping>
  48. <servlet-name>Faces Servlet</servlet-name>
  49. <url-pattern>*.jsf</url-pattern>
  50. </servlet-mapping>
  51. <servlet-mapping>
  52. <servlet-name>Faces Servlet</servlet-name>
  53. <url-pattern>*.faces</url-pattern>
  54. </servlet-mapping>
  55. <servlet-mapping>
  56. <servlet-name>Faces Servlet</servlet-name>
  57. <url-pattern>*.xhtml</url-pattern>
  58. </servlet-mapping>
  59.  
  60. </web-app>
  61.  
  62. <faces-config
  63. xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  64. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  65. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
  66. version="2.2">
  67. </faces-config>
  68.  
  69. Caused by: java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
  70. at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:500) ~[na:na]
  71. at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:287) ~[na:na]
  72. at javax.faces.webapp.FacesServlet.init(FacesServlet.java:350) ~[na:na]
  73. at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) ~[jetty-servlet-9.2.10.v20150310.jar:9.2.10.v20150310]
  74. ... 46 common frames omitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement