Taglib problem : can't parse DTD ?

Hi,
I'm running Tomcat 4.0.1.
I'm trying to use the custom tags, but the tomcat server outputs an XML parsing error : 'Element type "tlibversion" must be declared'.
It looks like tomcat is unable to read the DTD of my tld file (if I change the DTD url, nothing changes)...
Here is my tld file :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
     "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.2</jspversion>
<shortname>first</shortname>
<uri></uri>
<info>A simple tab library for the examples</info>
<tag>
<name>hello</name>
<tagclass>tags.CheckAddMessageTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Say Hi</info>
</tag>
</taglib>
Thank you for your help...
Xavier Bugaud

I think the issue is that your tld specifies the 1.2 DTD but then gives the 1.1 tag names such as "tlibversion" and "jspversion" instead of "tlib-version", "jsp-version". Either use the 1.1 DTD or change the tag names.

Similar Messages

  • Dom can't parse dtd reference in xml file

    Hi all,
    I am trying to parse a xml file (hibernate mapping file *.hbm.xml) using DOM. But itis getting timeout errorwhile parsing due to the external dtd reference in the xml file.
    <!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >I understand that the program is trying to access the document and is not being able to do so. But I don't have any clue to solve this problem. I don't want to remove the reference from the xml file.
    The following method is trying to parse the xml file:
    public void parseXML(String file) {
            factory = DocumentBuilderFactory.newInstance();
            System.out.println(file);
             try {
                 builder = factory.newDocumentBuilder();
                 document = builder.parse(file);
                 Element docEle = document.getDocumentElement();
                 NodeList n1 = docEle.getElementsByTagName("class");
                for(int i = 0; i < n1.getLength(); i++) {
                       Element e1 = (Element) n1.item(i);
                       String nm = e1.getAttribute("name");
                     System.out.println(nm);
            } catch(Exception e) {
                throw new RuntimeException(e);
        }Please help me on this....I am at no end....Please let me know if there is any method so that the parser will overlook this reference and will parse the xml file....or any other sort of solution....
    Thanks in advance...
    Anir

    Can you provide a working sample?  Upload to Onedrive and share it with us.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Can't convert oracle.xml.parser.DTD to oracle.xml.parser.v2.DTD.

    I am getting the following Error while trying
    to compile the SampleMain.java file(Generating an XML document from a given Employee.dtd).
    I have set my classpath to use xmlparser.jar.
    D:\XMls>javac SampleMain.java
    SampleMain.java:65: Can't convert oracle.xml.parser.DTD to oracle.xml.parser.v2.DTD.
    main(java.l
    ang.String[]).
    generator.generate(dtd, doctype_name);

    Would you check the java parser version you are using? If using java parser V2, the normal lib name is xmlparserv2.jar.
    null

  • Constant Problem: "Flash can not parse this document"

    Hi all,
    I have been having an issue with Flash cs5 over the last two weeks. I've tried the few "fixes" that are offered on some of the forums. Zipping the file up and taking apart the xml files, with no helpful results.
    Anyone have any ideas or solutions?
    I am losing lots of work at random times on many different files.
    I uusally get only this error message:
    Flash can not parse this document.
    But today I got this longer one:
    Flash can not parse this document.
    An error occurred opening file '/Users/brad/Desktop/mant episode 3-2c backup.fla'
    Failed to open document./Users/brad/Desktop/mant episode 3-2c backup.fla.
    The following JavaScript error(s) occurred:
    In file "/Users/brad/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl":
    Cannot find file /Users/brad/Desktop/mant episode 3-2c backup.fla.
    Flash can not parse this document.
    An error occurred opening file '/Users/brad/Desktop/mant episode 3-2c backup.fla'
    Failed to open document./Users/brad/Desktop/mant episode 3-2c backup.fla.
    The following JavaScript error(s) occurred:
    In file "/Users/brad/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl":
    Cannot find file /Users/brad/Desktop/mant episode 3-2c backup.fla.

    You may have already seen this, but there was another forum posting of a similar issue here:
    http://forums.adobe.com/message/2816038#2816038

  • Can't parse WSDL when useProxy=true

    Hello everyone.
    I'm using Flex since 1.5 and now try to migrate Flex2.0.
    Most of our application need to access data via WebService,
    and we use <mx:WebService> tag to access them.
    In our Flex1.5 environment, we also use Proxy service of Flex
    (with specifying useProxy=true), and it works fine.
    But in Flex2.0, our mxml application can't parse the same
    WSDL when useProxy=true!
    On the other hand, our application can parse correctly when
    not using proxy service. (useProxy=false and set crossdomain.xml on
    the root of datasource Web server.)
    I'was so confusing that I captured HTTP traffic between
    client application and server( both FlexDataService and Data source
    Web Server), with ServiceCapture.
    When useProxy=true, at first, client application sent request
    to Flex Data Service to get not only calling the SOAP operations
    but also calling WSDL itself. After that, Flex Data Service
    returned the response message as WSDL data, and I found the WSDL
    data was broken.
    When useProxy=false, of cource, the WSDL was passed
    datasource Web Server correctly and application could parse it
    without problem.
    These parse error depends on the WebService.
    I wonder this is some bug of Flex Data Service or not.......

    Hello, everyone.
    After that, I tried to change the encoding of WSDL, which was
    broken when useProxy=true, from UTF-16 to UTF-8.
    And I could get correct WSDL data from Flex Data Service's
    proxy.....
    It seems when the encoding of WSDL is UTF-16, the parse is
    failed, but I'm not sure this problem is happened commonly and this
    is some of the bug of Flex Data Services.

  • Can't parse configuration  jsf-ri-runtime.xml

    When I try to do the Example about JSF in (How To Use JSF with JDeveloper 10g) and run it I found this problem
    SEVERE: Can't parse configuration file:classloader:/com/sun/faces/jsf-ri-runtime.xml
    and I have jDeveloper ver 9.0.5.2
    and java ver 1.4.2.04
    Plz Help
    Alaa

    I installed the 9.052 build of JDeveloper and it solved the problem. Per forum thread: Re: JSF Configuration error in JDeveloper10g

  • Can't parse configuration file

    hi i'm trying to deploy an application on oc4j 10.1.3.1.0. i use Eclipse IDE and ant for deploy.
    i have this:
    [java] java.rmi.RemoteException: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Can't parse configuration file:code-source:/C:/JDeveloper/j2ee/home/applib/adf-faces-impl.jar!/META-INF/faces-config.xml
    [java] at com.evermind.server.administration.DefaultApplicationServerAdministrator.bindWebApp(DefaultApplicationServerAdministrator.java:420)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:585)
    [java] at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    [java] at java.lang.Thread.run(Thread.java:595)
    [java] Caused by: oracle.oc4j.admin.internal.DeployerException: Can't parse configuration file:code-source:/C:/JDeveloper/j2ee/home/applib/adf-faces-impl.jar!/META-INF/faces-config.xml
    [java] at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1224)
    [java] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:321)
    [java] at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1130)
    [java] at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738)
    [java] at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
    [java] at com.evermind.server.Application.getHttpApplication(Application.java:545)
    [java] at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
    [java] at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1909)
    [java] at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606)
    [java] at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
    [java] at com.evermind.server.administration.DefaultApplicationServerAdministrator.bindWebApp(DefaultApplicationServerAdministrator.java:418)
    [java] ... 7 more
    [java] Error: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Can't parse configuration file:code-source:/C:/JDeveloper/j2ee/home/applib/adf-faces-impl.jar!/META-INF/faces-config.xml

    I had similar problems with jsf-impl.jar.
    Sun do provide the xsd schemas locally inside the jar files so internet connection
    should not be required if parser is configured right.
    In my case I removed commons-digester-1.6.jar from my application and replaced it
    with commons-digester.jar supplied by JDeveloper builtin library named Commons Digester 1.5.
    Digester was configuring the (oracle) xerces parser.

  • Why I'm getting the jxls Error : Can't parse an expression rm.exec

    Hi,
    I used the RowSet in JXLS and it's working perfectly, but I'm getting Error when I use the SQL Reporting in JXLS
    Error : java.lang.RuntimeException: Can't parse an expression rm.exec('select name from Designer' )
    My Java File :
    package net.sf.jxls.report;
    import net.sf.jxls.exception.ParsePropertyException;
    import net.sf.jxls.transformer.XLSTransformer;
    import net.sf.jxls.report.ReportManager;
    import net.sf.jxls.report.ReportManagerImpl;
    import java.sql.*;
    import java.util.Map;
    import java.util.HashMap;
    public class QReport {
    private static String templateFileName = "examples/Report/QReport.xls";
    private static String destFileName = "examples/Report/QReport_Out.xls";
    public static void main(String[] args) throws Exception, ClassNotFoundException, SQLException {
    if (args.length >= 2) {
    templateFileName = args[0];
    destFileName = args[1];
    try {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
         Connection con = DriverManager.getConnection("jdbc:odbc:NewDB");
         Map beans = new HashMap();
         ReportManager reportmanager = new ReportManagerImpl(con, beans);
         beans.put("rm", reportmanager);
         XLSTransformer transformer = new XLSTransformer();
         transformer.transformXLS(templateFileName, beans, destFileName);
    }catch(Exception e){
         System.out.println("Error : "+e);
    The Excel file as follows
    <jx:forEach items="${rm.exec('select name from Designer' )}" var="design">
    ${design.name}
    </jx:forEach>
    Thanks in advance.

    Hi,
    I don't know JXLS and this for sure is the wrong forum to ask this question (I suggest to discuss problems with the source code originator at Sourceforge), however
    ${rm.exec('select name from Designer' )}"
    can't work because by definition, Expression language doesn't take arguments. There is only one option to pass an argument to Expression Language and this is when the method you access in fact is a wrapped hashmap. So my assumption is that the exception occurs because of the wrong use of EL.
    If you looked at the sample on SourceForge you could see that I am right
    http://jxls.sourceforge.net/samples/tagsample.html
    Frank

  • Migration CAN´T PARSE BIG PROCEDURES!!!!

    Migration can´t parse Procedures bigger than 250kb!!
    How can i resolve this problem???
    Tks,
    Paulo Portugal.

    What are you doing? Are you using AMA or OMWB? Not sure where the ceiling limit is coming from?

  • Problem with SimpleDateFormat.parse()

    Hello
    I have a problem with the parse-function in SimpleDateFormat.
    When i try to parse the date Fri Jul 15 17:23:41 2005 with this pattern EEE MMM d HH:mm:ss yyyy i get the exception java.text.ParseException: Unparseable date: "Fri Jul 15 17:23:41 2005".
    This is my code:
    SimpleDateFormat df=new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy");
    try {
      df.parse(strDate);
    } catch (ParseException e) {
      e.printStackTrace();
    }Can someone explain me what i did wrong?
    Thanks
    Matthias

    Since your name is "Matthias" it is possible that your locale is one that does not use the English language. If that is the case then your problem is that "Fri" or "Jul" are not correct abbreviations in your language.
    Easiest way to test this idea is to format a date (such as now) using that SimpleDateFormat object and see what the output looks like.

  • Maximum number of characters that can be parsed by javacc parser

    I'm a newbie to Javacc.
    Can any one please let me know if there is any limitations with respect to the number of characters that can be parsed by a Javacc parser?
    I have done with a simple javacc parser. I'm getting some stackoverflow exception when the number of characters exceeeds more than 10000 characters.
    Please help me in resolving this issue.
    Thanks in advance

    snr_anand wrote:
    I have done with a simple javacc parser. I'm getting some stackoverflow exception when the number of characters exceeeds more than 10000 characters.
    Presumably what is really happening is that you have a source file that is now 10,000 (or so in length.) You run your parser on that and it blows up.
    That suggests that your syntax and the combination of the input, rather than javacc, has a problem. The source and the syntax together are producing a never ending recursion.

  • Flash can not parse this document

    I have just had a Flash CS5 file corrupt on me. It comes up with this error message: 'Flash can not parse this document'. This is the second time this has happened to one of my  Flash CS5 files. My colleagues have had problems with their files too and we bought a bit of software called 'Sothink SWF decompiler'. This has been a useful way of getting Flash files back from swf's however this has not worked with my file today. It doesn't work perfectly with other files anyway as it looses all of the library names and layer names, a big problem with a complex file.
    So my questions are
    1. can you help me get my file back?
    2. I don't recall having any problems with SC3 so what has happened in these later version to cause this dreadful problem? One of my colleaguse has had 40% of her files corrupt sinse using CS5.
    3. Then can you tell me whether this problem, that has exsisted in Flash since CS4, will be fixed in CS6 as we will be upgrading when it becomes available?
    4. When is Flash CS6 going to become available?
    Many thanks

    You're all very unlucky to get this problem. I don't know why you guys got the error when transitioning from Flash CS4 to CS5. My transition went perfectly fine, and the game I was developing went through perfectly clean.
    Sorry about your problems
    dikuno <><
    P.S. By the way, that file that was mentioned "textLayout_1.0.0.595.swz", is created whenever you put in TLF text that is edited at runtime via ActionScript and use Runtime Shared Library (RSL) preloading. Did you leave all your text boxes be, or convert them all to TLF?
    P.P.S.S. I was very lucky that I didn't lose my project when I transitioned, as my current game is actually due in around a week. Hoepfully none of your projects that you lost are due in a week.
    P.P.P.S.S.S. Imagine if this happened to Alan Becker while he was working on Animator vs. Animation II (it took him five months).
    P.P.P.P.S.S.S.S. I feel especially sorry for the guy who spent three months on his online multiplayer real-time game. Must be a real shame to lose all your work after all those late nights and sore backs...
    P.P.P.P.P.S.S.S.S.S. If you don't know what Animator vs. Animation is, you should watch the animations. You can find them on YouTube - just look up "Animator vs. Animation" and "Animator vs. Animation 2".
    P.P.P.P.P.P.S.S.S.S.S.S. Sorry about all the PostScripts.

  • Flash can not parse this document. - Tried everything: Searching online, Calling Adobe, Online Help

    I have tried everything in fixing this problem. I have searched online with no help. And Google does not fix everything.
    I have tried calling the phone number on the help site numerous times only to be uselessly helped once. I was on hold for a long time with each one only to be unsuccessful in fixing my problem.
    I tried submitting the form on the page when you sign in and 3 times so far I was told to go to this extremely unhelpful devnet, which was all the phone support told me to do which was no help, and they closed all of the support requests.
    Does anyone know how to fix these errors:
    Flash can not parse this document.
    An error occurred opening file '.fla'
    Failed to open document..fla.
    I have converted it to a zip and went through all the files and did not see any error. The only one I did was MobileSettings.xml, which is blank and a new CS5 made file is blank and gives the error as well.
    Does anyone know how to fix this?

    you may have a corrupt fla.  try creating a new directory that has no subdirectories.  move that fla to the new directory.  try and open the fla from the new directory.  if it fails, you have a corrupt fla and, in that situation, i believe the best you can do is to take your last working swf and decompile it to create a working fla.

  • Reproducible Error: Flash can not parse this document.

    I have a reproducible error: I am being forced to fix corrupted flash files that give the "Flash can not parse this document" error. But shortly after I fix the problem, the files are re-corrupted.
    Here is how the problem is reproduced: when I update a custom component that is used in other symbols in the library. When a new version of a custom component symbol added to the library, replacing an older version, the symbols that contained the old symbol are corrupted in the XML. This is tedious and time consuming to work around.
    Is there a way to avoid the problem?
    Has this BUG been reported in this context before?
    How do I report this problem?
    Kevin

    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • [CS5] Flash can not parse this document..

    I sat with my flash document open for 12 hours straight actually.. and when I closed it and opened it again I got "Flash can not parse this document".
    So I googled for a solution, found that I could rename the .fla to .zip and unzip it and after 2 hours I found the XML-file that caused the problem, and I even commented out the lines in that XML-file, so I could re-zip it and rename it to .fla again and open it.
    Anyway this happened again and again.. and I got frustrated.
    I think I found out why this happened to me, I copied text from Photoshop into Flash CS5, and this made the document unable to open again after I closed it. It appears that the text I copied contained a "line break" or something, so I copied the text to notepad removed that character and then into flash, and this seems to have worked for.
    Anyone else had this problem?

    Hi,
    We had another user report about this issue where an ETX character in a TLF TextField was causing Flash to corrupt the FLA on save.  I will contact you privately to see if I can get your FLA file to investigate if it's the same issue.
    Thanks,
    Nivesh

Maybe you are looking for