2012-05-08 56 views
0

我正面臨着我無法理解錯誤的問題。該項目運行在Mac不錯,但在Windows上正在發生的事情是:在Windows中使用Tomcat運行MyFaces項目的問題(java.lang.LinkageError)

GRAVE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener 
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V" the class loader (instance of com/springsource/insight/collection/tcserver/ltw/TomcatWeavingInsightClassLoader) of the current class, org/apache/myfaces/webapp/Jsp21FacesInitializer, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ELResolver used in the signature 
    at org.apache.myfaces.webapp.Jsp21FacesInitializer.configureResolverForJSP(Jsp21FacesInitializer.java:129) 
    at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:77) 
    at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:140) 
    at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) 
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) 
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
    at java.lang.Thread.run(Thread.java:662) 
08/05/2012 10:32:48 org.apache.catalina.core.ApplicationContext log 

我使用Eclipse SpringSource工具套件的版本相同的兩個平臺。

+0

如果您禁用服務器的Spring Insight查看此問題,問題是否消失? –

+0

我嘗試了啓用和禁用。沒有成功.. –

+0

所以我搬到了Tomcat 7.在源代碼和eclipse項目中沒有變化。它正在工作。我想可能是我的STS安裝被損壞了。我會解決這個問題。 –

回答

0

所以我轉移到了Tomcat 7.在源代碼和Eclipse項目沒有更改。它正在工作。

我想,也許我的STS安裝已經損壞。我會解決這個問題。