打好的war包,放到resin webapps目录,启动resin,报如下错误:
java.lang.IllegalArgumentException
[11:59:57.679] at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:293)
[11:59:57.679] at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:247)
[11:59:57.679] at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:74)
[11:59:57.679] at com.caucho.server.deploy.ExpandDeployController.expandArchiveImpl(ExpandDeployController.java:390)
[11:59:57.679] at com.caucho.server.deploy.ExpandDeployController.expandArchive(ExpandDeployController.java:189)
[11:59:57.679] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:661)
[11:59:57.679] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[11:59:57.679] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[11:59:57.679] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[11:59:57.679] at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
[11:59:57.679] at com.caucho.server.host.Host.start(Host.java:450)
[11:59:57.679] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[11:59:57.679] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[11:59:57.679] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[11:59:57.679] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[11:59:57.679] at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
[11:59:57.679] at com.caucho.server.cluster.Server.start(Server.java:1319)
[11:59:57.679] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
[11:59:57.679] at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
[11:59:57.679] at com.caucho.server.resin.Resin.start(Resin.java:703)
[11:59:57.679] at com.caucho.server.resin.Resin.initMain(Resin.java:1162)
[11:59:57.679] at com.caucho.server.resin.Resin.main(Resin.java:1365)
意思是说resin在解压war包到应用目录时,发生了错误,有错误参数。
经过调试,发现war里有一个中文命名的文件,于是修改中文文件名为英文的,再打war包启动resin成功!
看来resin对中文支持的还不是很好。
--转自