- This topic has 4 replies, 2 voices, and was last updated 21 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
snpeMemberHello,
I have error with jakarta-taglibs log taglib
I use log 1.0 tld from jakarta-taglibs project
Error is in file taglibs-log.tld :<?xml version=”1.0″ encoding=”utf-8″?>
<!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 xmlns:xalan=”http://xml.apache.org/xslt”>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>log</shortname>
<uri>http://jakarta.apache.org/taglibs/log-1.0</uri>
<info>
…error on line
<taglib xmlns:xalan=”http://xml.apache.org/xslt”>
is
Attribute “xmlns:xalan” must be declared for element type “taglib”.taglibs-log.tld work fine on tomcat 5.0
What is wrong ?
regards
March 1, 2004 at 7:23 pm #204121
Riyad KallaMembersnpe,
I’m not sure exactly what is wrong… I just tried the same thing and it worked fine here.
Here is what I did:
-
1) Create new web module project
2) Download jakarta-taglib-log file (jakarta-taglibs-log-current.zip)
3) Unzip file, drop JAR into /WEB-INF/jar package (it is automatically mounted)
4) Create a new default JSP page with MyEclipse (MyJsp.jsp)
5) Add the @taglib entry at top (see screenshot)
6) Start using taglib
**7) Recompile page gives a error because org.apache.log4j.Priority is missing, so I downloaded log4j (jakarta-log4j-1.2.8.zip), unzipped it and added JAR to /WEB-INF/lib
8) Everything works fine…I didn’t drop the TLD in my web-inf dir because it is not required and its already in the JAR file (under META-INF) I also didn’t add an entry to web.xml for the same reasons. I DID however try this (to make sure this wasn’t the problem) and this worked fine as well…
My setup is Windows XP, SP1, JDK 1.4.2_03, Eclipse 2.1.2, MyEclipse 2.7RC2.
When you reply, please hit “Insert” and fill out the system information for us so we can better troubleshoot your problem.
March 1, 2004 at 7:48 pm #204123
snpeMember– System Setup ——————————-
Operating System and version: linux 2.4.23
Eclipse version: 2.1.2 & 3.0M6
Eclipse build id:
Fresh Eclipse install (y/n): cvs
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 7 (in ecl 3.0 8)
MyEclipse version: 2.7rc2 & 2.7Rc3
Eclipse JDK version: 1.4.2
Application Server JDK version: tomcat 5.0.18
Are there any exceptions in the Eclipse log file ? no– Message Body ——————————-
I haven’t error with eclipse 3.0M6 and MyEclipse 3.7
Error is in eclipse 2.1.x * ME 2.7 RC2 – I have few plugins
(omondo uml, visual editor, ibm auiml, jfacedbc)My project is in cvs and eclipse 2 and eclipse 3 have same files
I set eclipse 2 for 2.7 GA and it isn’t important now – I will see Mar,05
regards
Haris PecoMarch 1, 2004 at 7:50 pm #204124
snpeMemberhello,
I change
<taglib xmlns:xalan=”http://xml.apache.org/xslt”>
to
<taglib>
and it is finethanks
March 1, 2004 at 7:52 pm #204125
Riyad KallaMemberHaris,
Is it alright if I close this thread? I’m still not sure why this didn’t work for you, but please let us know if it istill does not work for you after 2.7 GA comes out. -
AuthorPosts