`

The processing instruction target matching "[xX][mM][lL]" is not allowed.

阅读更多

The processing instruction target matching "[xX][mM][lL]" is not allowed.
Exception:org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

这个异常解释为:xml文件不能被解析,一般出现这样的问题在于xml格式上,并且问题多出现在xml文件的头部。我就是出现了这个问题。昨天还可 以正常运行的,今天来了就运行不了了,很奇怪,查看了下错误信息,找到了原因。这是因为我的xml文件头部有两行空行,第三行才开始写


<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd ">
的。

总结:<?xml version="1.0" encoding="UTF-8"?>前面不要有任何其他字符,如空格、回车、换行这些否则就会出现上面的异常。

 

如果上面的问题都不能解决问题,还是有问题,就先将web.xml中的内容清空,重新拷贝个头

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

 

</web-app>

然后将内容考回来,这下上面的问题就没有了,据分析可能是eclipse缓存没有及时刷新导致的。

分享到:
评论

相关推荐

    cc2530_user_guide

    2.4 Instruction Set Summary .................................................................................................. 36 2.5 Interrupts ..........................................................

    ti dsp tms2802芯片资料

    Describes the architecture, registers, and primary functions of the TMS320C28x CPU. 2.1 CPU Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    Sherlock7264.rar

    After the last instruction is executed, the investigation stops (but does not terminate). When Sherlock executes an investigation Continuously (run continuously), each instruction in the Main ...

    The RISC-V Instruction Set Manual

    伯克利大学开源处理器 http://riscv.org/ The RISC-V Instruction Set Manual

    RH850F1L用户手册:软件

    2.3.3 Pausing a thread by executing the SNOOZE instruction.............................................15 2.4 Instruction Execution........................................................................

    Microprocessor Simulation

    Each instruction requires at least one word to store the code that specifies the instruction. Four instructions have arguments and require an additional two words. Each 4 bit number can have the ...

    Digital Signal Processing An Experimental Approach

    "Digital Signal Processing" is a mathematically rigorous but accessible treatment of digital signal processing that intertwines basic theoretical techniques with hands-on laboratory instruction....

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Note that this guide is not a C++ tutorial: we assume that the reader is familiar with the language. Header Files In general, every .cc file should have an associated .h file. There are some common ...

    80486 System Architecture [3rd Edition] [1995]

    The Instruction Pipeline/Decode Unit ...........................................................................16 Instruction Prefetch ...................................................................

    The Only Astrology Book You'll Ever Need (pdf)

    However, Woolfolk compensates for this by teaching a simplified method that is about 90 percent accurate enough to get a beginner started and includes a bibliography for further instruction....

    The instruction of RFQ module check list.pdf

    The instruction of RFQ module check list.pdf

    SmartCarII_5_1.rar_HCS12_Modified_freescale can_full chip simula

    This project stationery is designed to get you up and running ... In case Full Chip Simulation for the selected derivative is not available, a basic Full Chip Simulation is available.

    The MIPS64 Instruction_IIA

    MIPS® Architecture For Programmers Volume II-A: The MIPS64® Instruction Set

    Using the New PPC4xx Indexed DCR Access Instructions

    These instructions provide indexed DCR accesses where the address of the DCR is taken from the contents of a specified register rather than being hard coded in the instruction. This permits DCR ...

    Bit Twiddling Hacks

    When totaling the number of operations for algorithms here, any C operator is counted as one operation. Intermediate assignments, which need not be written to RAM, are not counted. Of course, this ...

    Learning Processing: A Beginner’s Guide to Programming Images

    style manual, the book gives graphic and web designers, artists, and illustrators of all stripes a jumpstart on working with the Processing programming environment by providing instruction on the ...

    Intel IA-32 Instruction

    Intel IA-32 Intel JUMP It's for me to download. If anyone need .I'll approve it. It is just the JUMP Instruction

    The Art of Assembly Language Programming

    The 80x86 MOV Instruction 4.8 - Some Final Comments on the MOV Instructions &lt;br&gt;4.9 Laboratory Exercises 4.9.1 The UCR Standard Library for 80x86 Assembly Language Programmers 4.9.2 ...

    Processing: An Introduction to Programming

    Given its origins, Processing enables a multimodal approach to programming instruction, well suited to students with interests in computer science or in the arts and humanities. The book uses ...

    Domas-Breaking-The-x86-Instruction-Set-wp.pdf

    Domas-Breaking-The-x86-Instruction-Set-wp.pdf

Global site tag (gtag.js) - Google Analytics