struts-config.xml注释引发的启动异常
2009-02-20 11:04
369 查看
开始只注意到
Parsing error processing resource path jndi:/localhost/JOA/WEB-INF/struts-config.xml
网上搜索无果,后来看到一段:
严重: Parse Fatal Error at line 37 column 9: The string "--" is not permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within comments.
其实错在这个注释上:
<!---------------用户信息------------------>
正确写法:
<!-- 用户信息 -->
虽然启动正常,但注释语法的错误也得注意!
Parsing error processing resource path jndi:/localhost/JOA/WEB-INF/struts-config.xml
网上搜索无果,后来看到一段:
严重: Parse Fatal Error at line 37 column 9: The string "--" is not permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within comments.
其实错在这个注释上:
<!---------------用户信息------------------>
正确写法:
<!-- 用户信息 -->
虽然启动正常,但注释语法的错误也得注意!
相关文章推荐
- 5.Strut国际化动态文本(编程式处理异常)::struts-config.xml web.xml
- 5.Strut国际化动态文本(声明式处理异常,可以拥有多个占位符):struts-config.xml
- struts-config.xml中配置全局异常处理:global-exceptions元素
- TOMCAT-HOME/webapps/项目名/META-INF/context.xml的注释含有中文,启动报异常
- struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match
- TOMCAT-HOME/webapps/项目名/META-INF/context.xml的标签内部加注释(中文或是英文),启动报异常
- weblogic启动异常:Parsing Failure in config.xml: javax.xml.namespace.QName; local class incompatible
- 在struts-config.xml配置文件顺序异常的问题
- 启动JBoss出现“Unable to load configuration struts-default.xml”异常解决
- 6.Strut国际化动态文本(声明式处理异常):struts-config.xml(全局异常配置)
- 怎么样避免前面action = “123.do” 而struts-config.xml 中path = “/123” 的 404 异常
- 5.Strut国际化动态文本(声明式处理异常):struts-config.xml web.xml
- Struts登录,手动处理异常:struts-config.xml
- 启动struts 出现异常/WEB-INF/lib/struts2-gxp-plugin-2.3.1.jar!/struts-plugin.xml
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml
- (struts1)struts-config.xml
- strust2.2.3版本启动报错struts-plugin.xml:8:162
- myEclipse 打开struts-config.xml无法打开报错!--Error opening the editor
- struts2源码系列(1)--ActionConfig(对应struts.xml <action>标签)