我们正在尝试将seam2.2 + jboss4.2.3迁移到jboss7.1.1 + seam2.3,我们目前面临的问题是:
Caused by: java.lang.LinkageError: loader constraint violation:
when resolving overridden method
"org.jboss.seam.faces.DateConverter.getAsString
(Ljavax/faces/context/FacesContext;
Ljavax/faces/component/UIComponent;Ljava/lang/Object;)Ljava/lang/String;"
the class loader (instance of org/jboss/modules/ModuleClassLoader)
of the current class, org/jboss/seam/faces/DateConverter,
and its superclass loader (instance of org/jboss/modules/ModuleClassLoader),
have different Class objects for the type ext/FacesContext;
Ljavax/faces/component/UIComponent;
Ljava/lang/Object;)
Ljava/lang/String;
used in the signature根据我在google上找到的文章,似乎我们加载了2倍的jboss-seam jar。1个来自应用程序,1个来自JBoss,但我不能百分之百确定。
知道是什么导致了这个问题吗?
谢谢,
czetsuya
发布于 2013-03-17 13:41:37
有些jars是构建应用程序所必需的,但不应该与之一起部署。
检查Seam应用程序中的deployed-jars.list,确保您没有部署jboss已经加载的jars。
它不会是Seam jars,除非您添加它们,否则jboss加载器不会包含这些jboss jars。它可能是一个JSF jar。
https://stackoverflow.com/questions/15425781
复制相似问题