Hello everyone,
I have spent a couple of days now trying to figure out why I can't serve my servlets through tomcat. I have no experience with tomcat, so I'm running out of ideas.
Basically I get a 404 error, saying that the requested resource can't be found. I have checked the log output in catalina.out, and there are no issues here. I know that tomcat is running. It reads the index.jsp which contains a redirect to /servlet/vservlets.Login . But this generates the 404 error.
My class files are located in catalina_home/webapps/pvb/WEB-INF/classes, and my web.xml looks like this:
All files have the correct permissions. I didn't make any changes to neither server.xml nor the default web.xml
Can anyone tell me what im missing or give me some hints? It would be very appreciated!
Regards Mads
I have spent a couple of days now trying to figure out why I can't serve my servlets through tomcat. I have no experience with tomcat, so I'm running out of ideas.
Basically I get a 404 error, saying that the requested resource can't be found. I have checked the log output in catalina.out, and there are no issues here. I know that tomcat is running. It reads the index.jsp which contains a redirect to /servlet/vservlets.Login . But this generates the 404 error.
My class files are located in catalina_home/webapps/pvb/WEB-INF/classes, and my web.xml looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<servlet>
<servlet-name>pvb</servlet-name>
<servlet-class>pvb</servlet-class>
</servlet>
<display-name>Pædagogisk VikarBureau</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
Can anyone tell me what im missing or give me some hints? It would be very appreciated!
Regards Mads
Comment