Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem on web.xml when deploying GWT into JBoss
    primarykey
    data
    text
    <p>I have developed a simple application in GWT. After that, I generate war file and deploy it into JBoss. However, when I do this, I get an error message like:</p> <blockquote> <p>The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".</p> </blockquote> <p>On the other hand, my web.xml is the following:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"&gt; &lt;web-app&gt; &lt;context-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt;/WEB-INF/resources/spring.xml&lt;/param-value&gt; &lt;/context-param&gt; &lt;!-- Servlets --&gt; &lt;servlet&gt; &lt;servlet-name&gt;greetServlet&lt;/servlet-name&gt; &lt;servlet-class&gt;main.java.com.gwt.app.server.GreetingServiceImpl&lt;/servlet-class&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;greetServlet&lt;/servlet-name&gt; &lt;url-pattern&gt;/zb_app/greet&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;listener&gt; &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener- class&gt; &lt;/listener&gt; &lt;!-- Default page to serve --&gt; &lt;welcome-file-list&gt; &lt;welcome-file&gt;ZB_app.html&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;/web-app&gt; </code></pre> <p>It is to say, the web-app tag contains some mandatory tags. I do not what is the problem, could someone help me with the problem?</p> <p>Thank you in advance!</p> <p>Regards!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload