I'm doing a web application in Java and I want to use Servlets with tomcat.
In my local environment with Netbeans on Windows and everything works perfectly. The problem is that the OS of my server is Ubuntu and when I copy the build folder generated by Netbeans, my web application doesn't work.
I have discovered that my problem is my web.xml file. When it's inserted inside the WEB-INF folder, the index.html doesn't display. Need I anything special to run it on Ubuntu?
Thank you!
My web.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
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://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<servlet>
<servlet-name>ServletManager</servlet-name>
<servlet-class>Servlets.ServletManager</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ServletManager</servlet-name>
<url-pattern>/ServletManager</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>