Cannot find tld file, tld is in shared lib

2k Views Asked by At

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.

2

There are 2 best solutions below

1
On

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

2
On

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.