In your /WEB-INF/ directory, you do have a file called taglib.tld that matches
http://www.orionserver.com/tutorials/taglibs/lesson1/taglib.tld.txt ?
 
In your web.xml, do you have an entry like:
 
...
<taglib>
  <taglib-uri>mytags</taglib-uri>
  <taglib-location>/WEB-INF/taglib.tld</taglib-location>
</taglib>
...
 

In your JSP page, do you reference the taglib as:
...
<%@ taglib uri="mytags" prefix="mt" %>
...
 
in your /web-inf/classes/com/acme/tag/ directory, do you have the .class files according to the tutorial?
-----Ursprungligt meddelande-----
Fr�n: srinivas [mailto:[EMAIL PROTECTED]]
Skickat: den 13 mars 2001 02:25
Till: Orion-Interest
�mne: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !!

 
No No I named it correctly in the reference. That is not the problem.
 
I think the  Problem is different which iam not getting it . Please help me !!
Thanks...
 
 
----- Original Message -----
Sent: Tuesday, March 13, 2001 3:40 PM
Subject: SV: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !!

I noticed that lesson 1 says 'mytags.tld' at one location and 'taglib.tld' at another.
I will fix this this evening.
Could this be the source to your problems?
If you have named your taglib file 'taglib.tld' make sure that you use that name when referencing it too.
WR
-----Ursprungligt meddelande-----
Fr�n: srinivas [mailto:[EMAIL PROTECTED]]
Skickat: den 12 mars 2001 17:49
Till: Orion-Interest
�mne: Re: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !!

Hi Magnus Rydin,
Here is the file which u want to have a look on it.
Here is the taglib.tld file , Please check whether it has any errors.
 
Taglib.tld file
 
 
<?xml version="1.0" encoding="ISO-8859-1" ?>
  <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
   "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
 

  <taglib>
  <tlibversion>1.0</tlibversion>
  <jspversion>1.1</jspversion>
  <shortname>mt</shortname>
  <uri>http://www.orionserver.com/tutorials</uri>
  <info>My first Tag library</info>
 
  <tag>
  <name>helloWorld</name>
  <tagclass>com.acme.tag.HelloWorldTag</tagclass>
  <bodycontent>empty</bodycontent>
  <info>A Hello world Tag</info>
  </tag>
 
  </taglib>
 
 
------ end of file--------------------
 
 
CH.Srinivas Babu
Java Application Developer
Ph: 006027189333 Extn - 8224
Mobile : 0060173837232
----- Original Message -----
Sent: Monday, March 12, 2001 3:50 PM
Subject: SV: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !!

It sounds like your tag library descriptor has faults. Please include your taglib.tld and we can have a look at it.
WR
-----Ursprungligt meddelande-----
Fr�n: srinivas [mailto:[EMAIL PROTECTED]]
Skickat: den 11 mars 2001 20:34
Till: Orion-Interest
Kopia: [EMAIL PROTECTED]
�mne: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !!

Hi,
 
I have downloaded the Helloworld.jsp, taglib.tld and helloworld .java compiled and got helloworld.class .
and created the same directory structure as mentioned in the documentation of taglib-tutorial. I could able to compile HelloWorld.java
when i run the HelloWorld.jsp , it produces the following error :

500 Internal Server Error

java.lang.IllegalArgumentException: Error parsing tag-library file:/D:/orion/applications/nbizdev/niagabiz-web/Web-inf/taglib.tld: XML declaration may only begin entities.

at javax.servlet.jsp.tagext.TagLibraryInfo.<init>(TagLibraryInfo.java)
at com.evermind.server.http.TagLibraryArchive.<init>(JAX)
at com.evermind.server.http.TagLibraryArchive.r9(JAX)
at com.evermind.server.http.d_.r3(JAX)
at com.evermind.server.http.HttpApplication.r3(JAX)
at com.evermind.server.http.eg.tn(JAX)
at com.evermind.server.http.eg.sm(JAX)
at com.evermind.server.http.JSPPage.sm(JAX)
at com.evermind.server.http.HttpApplication.v4(JAX)
at com.evermind.server.http.HttpApplication.w5(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d1.si(JAX)
at com.evermind.server.http.d1.forward(JAX)
at com.evermind.server.http.ed.sp(JAX)
at com.evermind.server.http.ed.so(JAX)
at com.evermind.util.f.run(JAX)
I tried a lot to find out the cause of this problem. But could not succeed. I wasted 2 full days in 
rectifying this problem. Please help me. this Problem is making me mad...
thanks 
a lot.
Srinivas
 
 
 
 
 
 
 

Reply via email to