Apache Wicket 8 web.xml myproject示例

Apache Wicket 8 web.xml myproject示例,apache,wicket,web.xml,Apache,Wicket,Web.xml,在Windows10上安装ApacheWicket 8.0.0-M8之前,我从未使用过Wicket。我还安装了apache-tomcat-9.0.7 我用wicket提供的文件替换了以下Tomcat conf文件夹文件: context.xml,server.xml 我使用EclipseNeon的Maven选项创建了一个名为myproject的项目。Eclipse生成了以下web.xml文件,我将其重新定位到: <TOMCAT_HOME>\webapps\myproject\WEB-

在Windows10上安装ApacheWicket 8.0.0-M8之前,我从未使用过Wicket。我还安装了apache-tomcat-9.0.7

我用wicket提供的文件替换了以下Tomcat conf文件夹文件:

context.xml,server.xml

我使用EclipseNeon的Maven选项创建了一个名为myproject的项目。Eclipse生成了以下web.xml文件,我将其重新定位到:

<TOMCAT_HOME>\webapps\myproject\WEB-INF

That web.xml file looks like this:

    <?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_4_0.xsd" version="4.0">
  <display-name>myproject</display-name>
  <!--
    There are three means to configure Wickets configuration mode and they 
    are tested in the order given.

    1) A system property: -Dwicket.configuration 
    2) servlet specific <init-param> 
    3) context specific <context-param>

    The value might be either "development" (reloading when templates change) or 
    "deployment". If no configuration is found, "development" is the default. -->
  <filter>
    <filter-name>wicket.myproject</filter-name>
    <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
    <init-param>
      <param-name>applicationClassName</param-name>
      <param-value>com.quantech.myproject.WicketApplication</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>wicket.myproject</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
</web-app>
\webapps\myproject\WEB-INF
该web.xml文件如下所示:
我的项目
wicket.myproject
org.apache.wicket.protocol.http.WicketFilter
应用程序类名
com.quantech.myproject.WicketApplication
wicket.myproject
/*
Eclipse发现此文件存在以下问题:

  • 引用的文件包含错误()。web.xml/myproject/src/main/webapp/web-INF第1行xml问题
TargetNamespace.1:应为命名空间“”,但架构文档的目标命名空间为“”

当我将web.xml加载到XMLSpy中时,我会收到以下消息:

此文件无效。DTD/架构中未定义根元素“web app”

有人知道这里出了什么问题吗

谢谢

特里

Wicket不提供这样的文件

 Eclipse generated the following web.xml file

 Eclipse found the following problems with this file:
糟糕的日食! 忽略这些错误/警告。雄猫不会抱怨的。 为了让Eclipse满意,您需要调整它的配置。不过我帮不了你。我使用不同的IDE

 Eclipse generated the following web.xml file

 Eclipse found the following problems with this file: