升级到 PrimeFaces 4.0-SNAPSHOT 后,每当我部署我的应用程序时,我都会得到这个堆栈跟踪:
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaContent, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaContent
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaOverlay, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaOverlay
WARNING: WEB9052: Unable to load class org.primefaces.component.submenu.Submenu, reason: java.lang.ClassNotFoundException: org.primefaces.component.submenu.Submenu
WARNING: WEB9052: Unable to load class org.primefaces.component.resources.Resources, reason: java.lang.ClassNotFoundException: org.primefaces.component.resources.Resources
WARNING: WEB9052: Unable to load class org.primefaces.component.sheet.Sheet, reason: java.lang.ClassNotFoundException: org.primefaces.component.sheet.Sheet
WARNING: WEB9052: Unable to load class org.primefaces.component.menuitem.MenuItem, reason: java.lang.ClassNotFoundException: org.primefaces.component.menuitem.MenuItem
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaContentRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaContentRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaOverlayRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaOverlayRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.sheet.SheetRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.sheet.SheetRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaContentRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaContentRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaOverlayRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaOverlayRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.sheet.SheetRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.sheet.SheetRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaContentRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaContentRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.galleria.GalleriaOverlayRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.galleria.GalleriaOverlayRenderer
WARNING: WEB9052: Unable to load class org.primefaces.component.sheet.SheetRenderer, reason: java.lang.ClassNotFoundException: org.primefaces.component.sheet.SheetRenderer
INFO: Initialisation de Mojarra 2.1.23 ( 20130613-1525 https://svn.java.net/svn/mojarra~svn/tags/2.1.23@11994) pour le contexte «/myapp»
INFO: Running on PrimeFaces 4.0-SNAPSHOT
INFO: Using OmniFaces version 1.6-SNAPSHOT-20130701
INFO: PWC1412: WebModule[null] ServletContext.log():org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
INFO: WEB0671: Loading application [myapp] at [/myapp]
INFO: myapp was successfully deployed in ~ 796 milliseconds.
我知道错误在于它正在寻找一个类(而不是找到它),但是这些类在 PrimeFaces 的较新版本中不存在。查看 jar 文件,很明显这些文件不会退出。
我的问题更侧重于为什么 PrimeFaces(或其他什么?)试图加载这些类。
我在 Glassfish 3.1.2.2 上运行。