Jump to content

Tomcat 7 + Java EE 404 running project

So everyone at my school is using this just fine and in fact I was also able to run this but i've started a new project in a new workspace because the previous project was a little messy but now I can't get it to run no matter what I do.

 

I've tried settings in the web.xml (it's all lower case checked that too) and i've tried the properties of the tomcat server in eclipse and switching it form metadata to the tomcat location. And a bunch of other stuff but I basically feel like i've done everything I can do and it just doesn't work.

 

web.xml:

<?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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">    <welcome-file-list>    <welcome-file>login.html</welcome-file>  </welcome-file-list>    <listener>    <listener-class>ContextListener</listener-class>  </listener>    <servlet-mapping>         <servlet-name>saxion.opdracht1.LoginServlet</servlet-name>         <url-pattern>/LoginServlet</url-pattern>    </servlet-mapping>    </web-app>

When i delete everything from my web.xml i get a directory listing when I start up. It would previouly for some magical reason show my login.html... kinda lost here seems like the whole thing is messed up

Link to comment
https://linustechtips.com/topic/218164-tomcat-7-java-ee-404-running-project/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×