Chris wrote:
> I keep on getting this exception in the weblogic log:
> #### > '12' for queue: 'default'> <> <101195> <[ServletContext(id=5233587,name=mywebapp,context-path=/mywebapp)]
> Could not resolve TLD from the given location "\WEB-INF\lib\cjm_taglib.jar">
>
> and this in the command prompt:
> <101045> <[ServletContext(id=352077
> ,name=mywebapp,context-path=/mywebapp)] Could not load taglib from jar file C:\b
> ea\user_projects\portalDomain\.\portalServer\.wlno tdelete\portalApp_mywebapp_352
> 077\jarfiles\WEB-INF\lib\cjm_taglib19842.jar: this jarfile has no META-INF/tagli
> b.tld entry (JSP 1.1 spec, 5.2.1)>
>
> Here is my output from the jar utility:
>
> C:\projects\test>jar cv0f cjm_taglib.jar com meta-inf
> added manifest
> adding: com/(in = 0) (out= 0)(stored 0%)
> adding: com/cjm/(in = 0) (out= 0)(stored 0%)
> adding: com/cjm/PrintTest.class(in = 852) (out= 852)(stored 0%)
> adding: com/cjm/PrintTest.java(in = 622) (out= 622)(stored 0%)
> adding: com/cjm/taglib.tld(in = 399) (out= 399)(stored 0%)
> adding: meta-inf/(in = 0) (out= 0)(stored 0%)
> adding: meta-inf/taglib.tld(in = 399) (out= 399)(stored 0%)
>
> and my tld looks like this:
>
> > "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
>
> 1.0
> 1.2
> test
>
>
>
> PrintTest
> com.cjm.PrintTest
>
>

>
>

>
> and my web.xml contains this:
>
> test.tld
> /WEB-INF/lib/cjm_taglib.jar
>

>
>
> Any idea what I might be doing wrong?
> I've been at at this for at least 5 hours today trying to eliminate possible variables
> and I am stuck.
>
> If anybody has any suggestions at all, I'd appreciate it.
>
> thanks,


..jar files are case sensitive while reading resources. Which means that
meta-inf/taglib.tld is not the same as META-INF/taglib.tld

All you would need to do is to rename the meta-inf directory to META-INF
and then jar the file.. A good indicator to whether you jar is in the
required format is by testing

jar -tvf jar-name.jar

and making sure that you have META-INF/MANIFEST.MF (added by default)
and META-INF/taglib.tld your taglib.tld entry.

hope that helps
Nagesh