讨论区 » AAS-V10企业版 »
应用部署异常问题。关键词:tld,tags 标签库位置
异常信息:
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: org.apache.jasper.JasperException: PWC6336: Illegal TLD path /WEB-INF/tags/c-1_0-rt.tld, must not start with "/WEB-INF/tags"
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:112)
at com.apusic.aas.internal.data.EngineRef.start(EngineRef.java:98)
at com.apusic.aas.internal.data.ModuleInfo.start(ModuleInfo.java:267)
at com.apusic.aas.internal.data.ApplicationInfo.start(ApplicationInfo.java:358)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:479)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:197)
at com.apusic.aas.deployment.admin.DeployCommand.execute(DeployCommand.java:492)
at com.apusic.enterprise.v10.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:518)
at com.apusic.enterprise.v10.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:514)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
分析:根据JSP2.1规范,tld文件不能存放在/WEB-INF/classes或者/WEB-INF/lib目录中,特别不能放在/WEB-INF/tags目录或子目录中,否则会出现错误:可将tld文件放置在/WEB-INF/tld目录
解决方案:
sever-config 下配置vm参数 -Dapusic.jsp.tags.dir.notThrowException=true