File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Want a brain teaser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Want a brain teaser?" Watch "Want a brain teaser?" New topic
Author

Want a brain teaser?

vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
I ve been getting continuous erro in using my own tags in Tomcat3.2.1.I am tired to post this query again and again.
Now the erro I m geeting is
------------------------------------------------------
org.apache.jasper.compiler.CompileException: E:\jakarta-tomcat-3.2.1\webapps\upload1\uploadtag.jsp(60,0) Unable to open taglibrary /WEB-INF/lib/exetag.jar : in is null
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
---------------------------------------------
Please I ve tried it uot everything I could.Got a sick of it.Pleass help.
main points-----
1)taglib-uri:http://localhost:8080/upload1(upload1 is my web-app)
2)taglib-location:/WEB-INF/lib/exetag.jar
3).tld file is in /meta-inf folder.I tried it putting everywhere.
4)It is the way in which I ve defined in ExeTag.java file:
<tag>
<name>ExeTag</name>
<tagclass>upload1.ExeTag</tagclass>
<info> Display JSP sources </info>

</tag>
</taglib>
Anybody who can help.Where are you all java-gurus?

VAIBHAV <BR>SCJP
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
vaibhav,
I think before going to .jar file , we can make a simple test to go one step at a time.
Used Tomcat 3.1 on win98 platform. Tomcat3.1 supports Tag Libraries,Servlet2.2 and Jsp1.1.
Did a small test and able to compile and view jsp pages which use .tld files.
The tag used in this test uses optional attributes as needed in your case.
Please follow the procedure to get the results. Once we able to pass this test,
then we should be able to figure out how to go for .jars step.
with best wishes,
maha anna
Here are the steps.
***************************************************************
Step 1. There are 3 basic files for for using tag libraries.
***************************************************************

***************************************************************
Step 2. Where to place all these files :
***************************************************************

***************************************************************
Step 3: Here are the sources:
***************************************************************

***************************************************************
Step 4: Where to copy .tld , .jsp and .class files ?
***************************************************************


***************************************************************
Step 5: How to test?
***************************************************************

***************************************************************
Step 5: See the Results in browser!
***************************************************************

I am able to view the results. Please check this procedure.
regds
maha anna

[This message has been edited by maha anna (edited March 30, 2001).]
 
Consider Paul's rocket mass heater.
 
subject: Want a brain teaser?
 
Similar Threads
problem in Custom Tags
please help,Custom tags In Tomact3.2.1
taglibs error
Cannot resolve symbol
Internal Servlet Error with Custom tag