Apache Wicket 8 web.xml myproject示例
在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文件,我将其重新定位到: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-
<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问题
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: