我正在开发使用JSF2.2的新项目。我的工具id Netbeans 7.3 Bata1 + Mysql + EclipseLink。
我想在我的项目上使用标记,但是在我将JSF2.2库添加到项目并测试部署它之后,我收到了一些警告消息:
WARNING: Multiple [2] JMX MBeanServer instances exist, we will use the server at index [0] : [com.sun.enterprise.v3.admin.DynamicInterceptor@6054cd1b].
WARNING: JMX MBeanServer in use: [com.sun.enterprise.v3.admin.DynamicInterceptor@6054cd1b] from index [0]
WARNING: JMX MBeanServer in use: [com.sun.jmx.mbeanserver.JmxMBeanServer@235fe684] from index [1]
WARNING: WEB9052: Unable to load class javax.faces.render.RendererWrapper, reason: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/render/RendererWrapper
WARNING: WEB9052: Unable to load class javax.faces.component.UIViewAction, reason: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/component/UIViewAction
WARNING: WEB9052: Unable to load class javax.faces.component.html.HtmlInputFile, reason: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/component/html/HtmlInputFile当我插入页面并在浏览器上打开它时,我得到了以下错误:
/system/systemThemes.xhtml @188,102 <h:inputFile> Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: inputFile我怎样才能解决这个问题?我试着研究了几天,但没有找到任何解决办法。
发布于 2013-02-03 10:45:08
java.lang.ClassFormatError:类文件javax/faces/component/html/HtmlInputFile中不存在本机或抽象方法中的代码属性
您安装了包含API (javax.faces.*)的JAR文件,但没有安装包含impl的JAR文件(例如Mojarra、com.sun.faces.*)。基本上,您将从JSF获得几个抽象类/接口,而不需要具体的实现,这才是真正的工作。这类似于导入和使用JDBC代码,但不使用特定于供应商的JDBC驱动程序(这是JDBC的具体实现)。
请确保您安装的罐子与推动以及。从/jsf-api和/jsf-impl文件夹在Maven这里获取JAR文件。
https://stackoverflow.com/questions/14671025
复制相似问题