glassfish PWC6351: In TLD scanning 系统找不到指定的文件问题解决
来源:互联网 发布:通风管道计算软件 编辑:程序博客网 时间:2024/06/05 13:40
[2017-04-25T21:26:09.391+0800] [glassfish 4.1] [WARNING] [] [org.apache.jasper.runtime.TldScanner] [tid: _ThreadID=52 _ThreadName=admin-listener(4)] [timeMillis: 1493126769391] [levelValue: 900] [[
PWC6351: In TLD scanning, the supplied resource file:/F:/server/glassfish-4.1.2/glassfish/domains/domain1/applications/javaee-api-6.0.jar does not exist
java.io.FileNotFoundException: F:\server\glassfish-4.1.2\glassfish\domains\domain1\applications\javaee-api-6.0.jar (系统找不到指定的文件。)
PWC6351: In TLD scanning, the supplied resource file:/F:/server/glassfish-4.1.2/glassfish/domains/domain1/applications/javaee-api-6.0.jar does not exist
java.io.FileNotFoundException: F:\server\glassfish-4.1.2\glassfish\domains\domain1\applications\javaee-api-6.0.jar (系统找不到指定的文件。)
google以上问题,大多说是以上问题是警告,可以忽略。原因:It would be helpful if the warnings tell you which jars that has bad manifest class-path
日志的路径确实不对,然后又知道了原因出自has bad manifest class-path,于是打开war包下的META-INF/MANIFEST.MF,发现Class-Path的所有jar包都没有带路径,
于是手动加上试试,果真没有以上错误了。
然而不能每次去改这个路径,于是找到解决办法:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix>/${build.finalName}/WEB-INF/lib/</classpathPrefix> </manifest> </archive> </configuration> </plugin>
加上
<classpathPrefix>/${build.finalName}/WEB-INF/lib/</classpathPrefix>
MANIFEST.MF就都加上了这个前缀,问题就解决了。
0 0
- glassfish PWC6351: In TLD scanning 系统找不到指定的文件问题解决
- [问题解决]gradle编译失败系统找不到指定的文件
- 系统找不到指定的文件
- 系统找不到指定的文件
- 系统找不到指定的文件
- applicationContext.xml (系统找不到指定的文件)
- proguard.cfg 系统找不到指定的文件
- proguard.cfg 系统找不到指定的文件
- proguard.cfg 系统找不到指定的文件
- proguard.cfg 系统找不到指定的文件
- AndroidManifest.xml 系统找不到指定的文件
- applicationContext.xml (系统找不到指定的文件)
- hibernate 系统找不到指定的文件 问题
- RSACryptoServiceProvider.FromXmlString 系统找不到指定的文件。
- proguard.cfg 系统找不到指定的文件
- CheckOut系统找不到指定的文件
- proguard.cfg 系统找不到指定的文件
- VS2010系统找不到指定的文件
- Oracle中碰到的函数和关键字收集
- CAS单点登录(SSO)服务端的部署和配置---连接MySQL进行身份认证
- 使用JavaEE的ServerAuthModule模块和web.xml进行相应配置,实现对用户的权限控制
- nodejs querystring踩坑笔记----只能用于表单提交
- 配置web.xml和glassfish容器实现javaEE表单验证
- glassfish PWC6351: In TLD scanning 系统找不到指定的文件问题解决
- oracle高效分页查询总结
- 5-59 大笨钟 (10分)
- 华杰电气光伏无线数据终端接入说明
- 自定义video视频
- Linux ALSA指南(zz)
- javaScript中的设计模式(5)单例模式
- nginx集群 配置和js 和 css 文件的访问
- UVA