在apusic下部署web应用,在启动时有时会启动失败,报一个类似的错误:
……
Caused by: com.apusic.xml.reader.ScanException: The URL pattern '
/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector
' cannot contains CR(#xD) or LF(#xA) characters
at com.apusic.deploy.runtime.WebModule.validateUrlPattern(Unknown Source)
……
造成这个错误的原因,一般是因为在web.xml文件里,某个叶子元素没有存放在一行上,比如在servlet2.3规范里,如下的写法是允许的,但是在servlet2.4规范里不允许:
<url-pattern>
/FCKeditor/editor/filemanager/upload/simpleuploader
</url-pattern>
servlet2.4规范下,如上的代码只能写在一行:
<url-pattern>/FCKeditor/editor/filemanager/upload/simpleuploader</url-pattern>
apusic目前遵循的servlet规范是2.4,所以就会报这样一个错误。
这个时候我们只要留意一下报错信息里面的“The URL pattern”后面的单引号里面的信息,然后到web.xml文件里找到跟单引号里面的信息(示例里是“/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector”),改到一行上错误就解决了。
分享到:
相关推荐
对Servlet技术中的web.xml部署,进行深入解析其中的url-pattern.
url-pattern的3种写法url-pattern的3种写法
前端开源库-url-patternurl模式,比regex字符串更容易匹配url和其他字符串的模式。将字符串转换为数据或将数据转换为字符串。
urlpattern 解析入门 使用以下命令安装模块: npm install li-urlpattern var pattern = require ( 'li-urlpattern' ) ; // -> /users/1000 pattern . parse ( '/users/:id' , { id : 1000 } ) ; 文档 (即将推出...
论文《A Pattern Tree_based Approach to Learning URL Normalization Rules》
-p or --pattern [pattern] #The pattern which is used to find the numbers -o or --output [output] #The output pattern of the new file -c or --copy #Instead of renaming copy the files ## Pattern变量...
5.5 关于url-pattern 1 匹配指定扩展名的url-pattern Servlet-mapping中的url-pattern可以指定什么样式的请求交由servlet处理,例如下面片段: 上面的写法,凡是结尾为.html的请求均会由spring mvc框架下的...
我的文章:http://blog.csdn.net/pengdongneng/article/details/66973587 的测试源码
Head.First设计模式中的The Factory Pattern(工厂模式)ppt
the-pattern-library, 精美的图案库,由天才设计师创作 Pattern 库一个设计简单,设计精美的画廊项目,用来展示和分享来自世界各地的简单图案和设计。 由 Tim的& Claudio Guglieri构建。! 客房管理当前通过站点( ...
07_Servlet_UrlPattern
在利用servlet或Filter进行url请求的匹配时,很关键的一点就是匹配规则。这篇文章主要介绍了servlet的url-pattern匹配规则详细描述(小结),非常具有实用价值,需要的朋友可以参考下
Inversion of Control Containers and the Dependency Injection pattern(中文版)
Rete: A Fast Algorithm for the Many Pattern/Many Object Pattern Match Problem*中文
The Book of F#: Breaking Free with Managed Functional Programming Paperback: 312 pages Publisher: No Starch Press; 1 edition (March 25, 2014) Language: English ISBN-10: 1593275528 ISBN-13: 978-...
servlet url-pattern的匹配问题 url-pattern中 / 和 /* 的区别 url-pattern的优先级问题 根路径 / 的匹配问题 1 servlet url-pattern 的匹配问题 url-pattern 有三种匹配模式,分别是路径匹配、精确匹配、后缀...
the model for the pattern grammar because of their descriptive power, which is due to their ability to handle syntactic as well as semantic information. This approach has been implemented and the ...
This is the first textbook on pattern recognition to present the Bayesian viewpoint. The book presents approximate inference algorithms that permit fast approximate answers in situations where exact ...
eclipse3.5汉化包安装完后,安装jad插件后反编译class时发生异常:Unmatched braces in the pattern. 问题出在汉化包里的资源文件汉化eclipse的资源文件出错,可以使用下面上传的jar,将此jar拷贝到汉化包中覆盖原来...