Quando vou conectar com o tomcat da esse erro:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
<?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://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<!-- General description of your web application -->
<display-name>Julien</display-name>
<description>Teste</description>
<!-- ################################################# -->
<servlet>
<servlet-name>Incluir</servlet-name>
<servlet-class>br.com.ppto.julien.atividades.Incluir</servlet-class>
<load-on-startup>6</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Incluir</servlet-name>
<url-pattern>/PaginaInicio</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Operacoes</servlet-name>
<servlet-class>br.com.ppto.julien.dao.Operacoes</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
<welcome-file-list>
<welcome-file>PaginaInicio.html</welcome-file>
</welcome-file-list>
<resource-ref>
<description>db connection</description>
<res-ref-name>jdbc/serverdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="Incluir" method="post">
Col1 : <input type ="text" name="col1" >
Col2: <input type ="text" name="col2" >
Col3:<input type ="text" name="col3" >
Col4:<input type ="text" name="col4" >
Col5:<input type ="text" name="col5" >
<input type="submit" value = "Enviar">
</form>
</body>
</html>
package br.com.ppto.julien.atividades;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.com.ppto.julien.beans.Tabela1;
import br.com.ppto.julien.dao.Operacoes;
public class Incluir extends HttpServlet{
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
Operacoes op = new Operacoes();
PrintWriter writer = resp.getWriter();
String col1 = req.getParameter("col1");
String col2 = req.getParameter("col3");
int col3 = Integer.parseInt(req.getParameter("col3"));
double col4 = Double.parseDouble(req.getParameter("col4"));
double col5 = Double.parseDouble(req.getParameter("col5"));
Tabela1 tabe = new Tabela1(col1,col2,col3,col4,col5);
try {
op.Inserir(req,resp,tabe);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}