`
浴盆儿
  • 浏览: 80492 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

Element type "web-app" must be declared

阅读更多

造成错误的原因:web.xml文件中引入的web-app_2_3.dtd文件和jboss支持的不匹

 

org.xml.sax.SAXParseException: Element type "web-app" must be declared. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1737) at org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java:3552) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1159) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:949) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.mortbay.xml.XmlParser.parse(XmlParser.java:125) at org.mortbay.xml.XmlParser.parse(XmlParser.java:140) at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:387) at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85) at org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.java:89) at org.jboss.jetty.Jetty.deploy(Jetty.java:331) at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:357) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272) at org.jboss.Main.boot(Main.java:150) at org.jboss.Main$1.run(Main.java:388) at java.lang.Thread.run(Thread.java:534)

分享到:
评论

相关推荐

    ORACLE DBMS STATS ERROR

    - `PLS-00302: component 'IS_STATS_FROM_UPGRADE' must be declared` - `ORA-04063: package body "SYS.DBMS_REGISTRY_SYS" has errors` - `ORA-04063: package body "SYS.DBMS_STATS" has errors` 这些错误表明`...

    delphi编译错误.txt

    47. **Default values must be of ordinal, pointer or small set type** - **含义**: 默认值必须是序数、指针或小型集合类型。 - **解决办法**: 使用允许的类型定义默认值。 48. **Destination cannot be ...

    ibatis与spring的整合

    在整合iBATIS和Spring的过程中,主要目标是利用Spring的IOC(Inversion of Control)容器来管理和协调数据访问层(DAO)以及事务处理,同时利用iBATIS作为SQL映射框架,提供灵活的数据库操作。以下将详细阐述整合的...

    AlphaControl 8.13 Source

    For support in the project, a required 3rd-party controls must be declared in the SkinManager.ThirdParty property. Use a special design-time editor for handy adding of required controls. ------------...

    Compiling-Java-for-Embedded-Systems.rar_ARGUMENT!

    The tests must be declared as "private slots", so that QtTest can automatically recognize and execute them. The macro QCOMPARE verifies that the two objects passed as arguments are identical and ...

    AlphaControls_13.12_Stable

    For support in the project, a required 3rd-party controls must be declared in the SkinManager.ThirdParty property. Use a special design-time editor for handy adding of required controls.

    recipe-app-api:配方应用程序API源代码

    在"recipe-app-api"这个项目中,Python是主要的开发语言,它允许开发者快速构建功能丰富的应用程序。 1. **Flask框架** "recipe-app-api"很可能基于Flask框架构建。Flask是Python的一个轻量级Web服务器网关接口...

    C++出错提示英汉对照表

    Must be addressable ----------------------必须是可以编址的 Must take address of memory location ------------------必须存储定位的地址 No declaration for function ''xxx'' -------------------没有函数...

    vueeslintparservue文件的ESLint自定义解析器

    Vue.js 是一个流行的前端框架,它使用单文件组件(Single File Components, SFCs)来组织代码,其中包含了HTML、CSS和JavaScript。ESLint 是一个静态代码分析工具,用于检查代码质量并确保遵循一定的编码规范。...

    Python使用cx_Oracle调用Oracle存储过程的方法示例

    本文实例讲述了Python使用cx_Oracle调用Oracle存储过程的方法。分享给大家供大家参考,具体如下: 这里主要测试在Python中通过cx_Oracle调用PL/SQL。 首先,在数据库端创建简单的存储过程。 create or replace ...

    burpsuite_v1.01

    Implementations must be called BurpExtender, must be declared public, and must provide a default (public, no-argument) constructor. On startup, burp searches its classpath for a class called ...

    Turbo C++ 3.0[DISK]

    You MUST use the INSTALL program to install Turbo C++. The files on the distribution disks are all archived and have to be properly assembled. You cannot do this by hand! IMPORTANT! If you want...

    Turbo C++ 3.00[DISK]

    You MUST use the INSTALL program to install Turbo C++. The files on the distribution disks are all archived and have to be properly assembled. You cannot do this by hand! IMPORTANT! If you want...

    汇编错误编号解释.txt

    Must be declared during pass 1 - **含义**:必须在第一遍编译时声明。 - **解决方法**:确保所有必要的声明都在第一遍编译前完成。 #### 14. Illegal public declaration - **含义**:非法的公共声明。 - **解决...

    MASM报错速查表(很好很强大)

    Must be declared during pass 1 - **描述**:某些声明必须在第一次编译过程中进行。 - **解决方法**:确保所有必要的声明都在第一次编译时完成。 #### 14. Illegal public declaration - **描述**:非法的公共...

    acpi控制笔记本风扇转速

    (Region must be of type SystemMemory, see below.) Fixed the Load ASL operator for the case where the source operand is a region field. A buffer object is also allowed as the source operand. BZ 480 ...

    Programming dynamic ALV in WebDynpro for ABAP

    stru_param TYPE if_v_main=>element_param. *navigate from <CONTEXT> to <PARAM> via lead selection node_param = wd_context->get_child_node(name=if_v_main=>wdctx_param). * get element via lead ...

    IOS5 Programming Cookbook

    - **Error Handling**: Compilation errors are common and must be addressed before your app can run. Common issues include syntax errors, missing imports, and type mismatches. ### 4. Running iOS Apps ...

    gba 开发文档 ads gba模板

    includes typecasting for direct c writes. example: R_DISPCNT = value; MEN_ --> MEMORY address V_ --> Value A register related value used by macros and functions. Register Masks are also ...

Global site tag (gtag.js) - Google Analytics