找不到 tld 文件,tld 在共享库中
我正在尝试将应用程序发布到门户服务器上,发布失败,因为无法在 WEB-INF 目录中找到 .tld 文件。
tld 文件实际上并不存在于 WEB-INF 目录中,我们将 tld 文件用于另外 20 个应用程序,因此我们将其与其他一些 jar 放在共享库中。
当 RAD 尝试将共享库发布到我的服务器时,如何告诉 RAD 检查共享库?或者我如何告诉它忽略 tld 文件,因为我的应用程序在启动时加载 tld 文件。
任何帮助表示赞赏。
I am trying to publish applications onto portal server, the pu8blication fails as it is unable to find a .tld file in the WEB-INF dir.
The tld is file is actually not there in the WEB-INF dir, we use the tld file for 20 more applications, so we put that in a shared lib with some other jars.
How do I tell RAD to check the shared lib when it is trying to publish it to my server ? or How can i tell it to ignore the tld file, because my application loads the tld files when it starts up.
any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该将 .tld 文件放在 java 项目的 META-INF 文件夹下名为 tlds 的文件夹中。然后,应在 Web 应用程序项目的 Java EE 模块依赖项的 Web 库选项卡中检查该项目。
You should put your .tld files in a folder named tlds under the META-INF folder of your java project. Then the project should be checked in the Web libraries tab of the Java EE Module Dependencies of your web app project.
这可能不是您想要的答案,但它就在这里。
为了解决类似的问题(相同,但不是 servlet,不是 portlet),我在项目中创建了一个名为“.../WEB-INF/tld”的目录,并将 tld 文件从共享库复制到我的项目中。
虽然我不推荐将此作为解决方案,但它是我可以使用 WAS 6.1 的唯一解决方案
This is probabaly not the answer you want, but here it is.
To solve a similar problem (same, but not with servlets, not portlets) I created a directory named ".../WEB-INF/tld" in my project and copied the tld file out of the shared lib into my project.
While I do not recommend this as a solution, it is the only solution I could get to work with WAS 6.1