JSP 2.0 has no .tld files any more. Neither do you need to edit your web.xml file. You need to copy your tags to WEB-INF/tags directory.

x1.tag file, must reside in WEB-INF/tags

The jsp pages will have the following change:

<%@ taglib prefix="someTag" tagdir="/WEB-INF/tags" %>

<someTag:x1>

</someTag:x1>


Hope this helps


Mufaddal.

On Feb 10, 2004, at 2:22 PM, Chanan Braunstein wrote:

Hello,
I am trying to use the client deployer to compile my web-app. There
is not much help on the issue, and for someone like me that never used ant
before it is hard to figure out what to do... However here is what I did so
far:


Download ant & tomcat 5 deployer. Copied the deployer lib files into ant
lib. Added ant\bin to my PATH (Windows) copied build.xml from the deployer
to my webapp directory. Copied the lib folder from ant to my webapp
directory (I guess I could have put the path in the command line for ant,
but I was too lazy and I wanted to see if it works first), edited the
build.xml to point to the name of my web-app. And then executed ant from the
command line.


Here is my output:

compile:
[copy] Copying 1965 files to C:\Tomcat 5.0\webapps\build\webapp\knovel2
[copy] Copied 33 empty directories to 1 empty directory under C:\Tomcat
5.0
\webapps\build\webapp\knovel2
[jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader
[jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib
[jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader
[jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib
[jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader
[jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib
[jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader
[jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib


BUILD FAILED
C:\Tomcat 5.0\webapps\build.xml:73: java.lang.ExceptionInInitializerError


So questions:

1) What is up with not putting tld files in the lib folder? Where is a
better location?
2) why did the build fail? And how do I fix it?

Thanks,

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to