Loading...

javamail-interest@java.sun.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: Deployment Exception Bill Shannon Wed Jun 03 12:01:25 2009

This doesn't seem to have anything to do with JavaMail...


void_void wrote:
Hello i have following exception while deploying my webapp (which uses rich
faces).

    Exception while deploying the app : java.io.IOException:
org.xml.sax.SAXParseException: The content of element type "filter" must
match
"(icon?,filter-name,display-name?,description?,filter-class,init-param*)".



my web.xml is as follows
view plaincopy to clipboardprint?

1. <?xml version="1.0" encoding="UTF-8"?> 2. <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> 3. <web-app> 4. <display-name>Aplication1</display-name> 5. <listener> 6. <listener-class>com.sun.faces.config.ConfigureListener</listener-class> 7. </listener> 8. <context-param> 9. <param-name>com.sun.faces.verifyObjects</param-name> 10. <param-value>true</param-value> 11. </context-param> 12. <context-param> 13. <param-name>com.sun.faces.validateXml</param-name> 14. <param-value>true</param-value> 15. </context-param>z 16. <context-param> 17. <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 18. <param-value>.xhtml</param-value> 19. </context-param> 20. <context-param> 21. <param-name>facelets.DEVELOPMENT</param-name> 22. <param-value>false</param-value> 23. </context-param> 24. <context-param> 25. <param-name>facelets.SKIP_COMMENTS</param-name> 26. <param-value>true</param-value> 27. </context-param> 28. <context-param> 29. <param-name>contextConfigLocation</param-name> 30. <param-value>/WEB-INF/applicationContext.xml</param-value> 31. </context-param> 32. <listener> 33. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 34. </listener> 35. 36. <filter> 37. <display-name>RichFaces Filter</display-name> 38. <filter-name>richfaces</filter-name> 39. <filter-class>org.ajax4jsf.Filter</filter-class> 40. </filter> 41. <filter-mapping> 42. <filter-name>richfaces</filter-name> 43. <servlet-name>Faces Servlet</servlet-name> 44. <dispatcher>FORWARD</dispatcher> 45. <dispatcher>REQUEST</dispatcher> 46. <dispatcher>INCLUDE</dispatcher> 47. </filter-mapping> 48. 49. 50. 51. 52. <context-param> 53. <param-name>javax.faces.STATE_SAVING_METHOD</param-name> 54. <param-value>client</param-value> 55. </context-param> 56. <context-param> 57. <param-name>org.richfaces.SKIN</param-name> 58. <param-value>DEFAULT</param-value> 59. </context-param> 60. <listener> 61. <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> 62. </listener> 63. 64. 65. <servlet> 66. <servlet-name>Faces Servlet</servlet-name> 67. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 68. <load-on-startup>1</load-on-startup> 69. </servlet> 70. <servlet> 71. <servlet-name>dispatcher</servlet-name> 72. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 73. <load-on-startup>2</load-on-startup> 74. </servlet> 75. <servlet-mapping> 76. <servlet-name>Faces Servlet</servlet-name> 77. <url-pattern>*.jsf</url-pattern> 78. </servlet-mapping> 79. <servlet-mapping> 80. <servlet-name>dispatcher</servlet-name> 81. <url-pattern>*.htm</url-pattern> 82. </servlet-mapping> 83. <welcome-file-list> 84. <welcome-file>TemplateClients/forward.jsp</welcome-file> 85. </welcome-file-list> 86. <error-page> 87. <exception-type>javax.faces.application.ViewExpiredException</exception-type> 88. <location>/TemplateClients/LogoutPage.jsf</location> 89. </error-page> 90. <error-page> 91. <error-code>404</error-code> 92. <location>/TemplateClients/Error404.jsf</location> 93. </error-page> 94. <error-page> 95. <error-code>500</error-code> 96. <location>/TemplateClients/Error500.jsf</location> 97. </error-page> 98. <error-page> 99. <error-code>503</error-code> 100. <location>/TemplateClients/Error503.jsf</location> 101. </error-page> 102. <error-page> 103. <exception-type>java.lang.exception</exception-type> 104. <location>/TemplateClients/LogoutPage.xhtml</location> 105. </error-page> 106. <error-page> 107. <exception-type>java.net.UnknownHostException</exception-type> 108. <location>/TemplateClients/ErrorServerDown.xhtml</location> 109. </error-page> 110. <error-page> 111. <exception-type>javax.el.ELException</exception-type> 112. <location>/TemplateClients/ErrorServerDown.xhtml</location> 113. </error-page> 114. </web-app>

it is getting deployed in glassfishV3 prelude in rest all the app. server it
is giving the mentioned exception(jetty,jboss,glassfishV2)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".