2011-07-26 118 views
0

我試圖將一個WAR文件(來自Ext GWT項目)部署到Tomcat 7中,我得到一個我不明白的錯誤。我玩過Tomcat Manager的權限,WAR文件似乎沒問題(至少我可以用zip應用程序解壓縮它)。任何人都可以幫助我理解這一點嗎?在Tomcat中部署WAR時出現嚴重錯誤7

謝謝你!

這裏從 「catalina.log」 錯誤:

INFO: Undeploying context [/CampaignManager] 
26/Jul/2011 14:32:45 org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive gestaoApolices.war 
26/Jul/2011 14:32:52 org.apache.catalina.startup.HostConfig deployWAR 
SEVERE: Error deploying web application archive gestaoApolices.war 
java.lang.NullPointerException 
    at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:407) 
    at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:138) 
    at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:735) 
    at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:861) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:340) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379) 
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:136) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) 
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932) 
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:529) 
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1377) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) 
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source) 
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) 
    at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1436) 
    at org.apache.catalina.manager.HTMLManagerServlet.upload(HTMLManagerServlet.java:334) 
    at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:211) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) 
    at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:187) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) 
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) 
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) 
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:572) 
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) 
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) 
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:851) 
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) 
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) 
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:278) 
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) 
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 

26 /七月/ 2011 14點43分34秒org.apache.catalina.startup.HostConfig checkResources

+0

是否可以部署其他(簡單)WAR? – home

+0

............... – cleonf

回答

0

我只是發現,這個問題在戰爭中的特定文件:

「Cliente-TextExtractRules-Açoreana.properties」

文件名中有葡萄牙重音符號的字符「C」。

在該文件中用「c」替換char後,部署完成。

(我要離開這個答案跳躍,可能是別人有用)

不知道閹這個問題將是固定的,但我已經報Tomcat7隊(Bugzilla的ID錯誤: 51580)

2

只是分享多一點這方面的信息。畢竟這不是Tomcat7中的一個bug,這是椅子和鍵盤之間的問題:/。

我正在使用「zip」的Ant任務來生成WAR文件。因此與Tomcat7的專家:

「WAR文件是無效的,我懷疑它是用壓縮工具,而 比罐子創建的默認字符集是不同的,需要說明 你有文件名使用的jar。這是使用非ASCII字符。「

順便說一句,我正在開發一個基於谷歌GWT的應用程序,「build.xml」是由框架自動生成的。 「戰爭」目標是我沒有成功的唯一目標。