현재 다음 스택에서 작업하고 있습니다. jboss7.1.3, javaee-api 및 jsf 2.1.19. 그리고이 오류를 해결할 수 없습니다 :팩토리에 대한 백업을 찾을 수 없습니다. javax.faces.application.ApplicationFactory
Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
내가 전쟁을 얇게하지 않으면 문제가 나타나지 않을 것이기 때문에 이상합니다. 내가 더 LinkageError가 없을 수 있도록 내 모든 병이 응용 프로그램/lib 폴더에 있어야 할
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
</manifest>
</archive>
</configuration>
: 전쟁을 엷게하는 것은 다음과 같은 구성을 추가하는 것은 전쟁 플러그인을 받는다는 것을 의미한다. 내 웹 프로젝트도 EJB 프로젝트에 의존하기 때문입니다. 그러나 문제는 내가 2 개 모듈에 의해 사용되고 있으며,이 오류를 던지고있다 메소드 서명 기본 클래스가 있습니다 :
java.lang.LinkageError: loader constraint violation: when resolving method "com.czetsuya.myApp.bean.MyManagedBean.getEntity()Lcom/czetsuya/myApp/model/MyEntity;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, com/czetsuya/myApp/util/view/composite/BackingBeanBasedCompositeComponent, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for resolved class, com/czetsuya/myApp/bean/MyManagedBean, have different Class objects for the type pship/model/MyEntity; used in the signature
내 생각은 lib에, 2 개 모듈 1 클래스 로더를하는 것입니다 폴더. 따라서 두 모듈 모두 상위 우선로드를 사용합니다.
아니면 내 접근 방식이 완전히 잘못 되었습니까? 어떠한 제안?
관련 http://stackoverflow.com/q/7957070/1530938 – kolossus