Why the environment says that I have no mapping servlet?

0 like 0 dislike
48 views
I have the app on WildFly. I ordered the EJB (service layer), have created a JSF (xhtml page) and now I want in the deployment descriptor (web.xml) to specify the mapping from the servlet. Moreover, there are Faces-servlets:
<!DOCTYPE web-app PUBLIC"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"http://java.sun.com/dtd/web-app_2_3.dtd" >EmployeeApphello.xhtmlfacesServletjavax.faces.webapp.FacesServlet1facesServlet*.xhtml


Here is the EJB:
@Stateless public class HelloWorldBean { public String f() { return "bean Hello World!"; } public String view() { return "hello.xhtml"; } }


Here's the JSF:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


But in the end the Idea says that I have no mapping:
5bb8f53850fe5326666820.jpeg

What's wrong?
by | 48 views

1 Answer

0 like 0 dislike
Understood.

Project Structure -> Modules -> Add deployment descriptor web.xml

\rhttps://stackoverflow.com/questions/43153904/servl...
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users