I'm trying to set up DWR, direct web remoting, and they had me put in the web.xml this piece of code here,
<servlet>
<display-name>DWR Servlet</display-name>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
but I get the error the markup in the document following the root element must be well-formed, and it is at the servlet-mapping part. I tried putting the servlet mapping inside of servlet and it got rid of the error but the webpage http://localhost:8081/WebProject01/dwr/
still wouldn't come up. The dwr.xml didn't have any errors so that looked good. Is there another way to fix the error message?
Thanks for your time.