473,385 Members | 1,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Tomcat 7 servlet problem

20
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:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3.  
  4.  <servlet>
  5.         <servlet-name>pvb</servlet-name>
  6.         <servlet-class>pvb</servlet-class>
  7. </servlet>
  8.  
  9.   <display-name>Pædagogisk VikarBureau</display-name>
  10.   <welcome-file-list>
  11.     <welcome-file>index.html</welcome-file>
  12.     <welcome-file>index.htm</welcome-file>
  13.     <welcome-file>index.jsp</welcome-file>
  14.     <welcome-file>default.html</welcome-file>
  15.     <welcome-file>default.htm</welcome-file>
  16.     <welcome-file>default.jsp</welcome-file>
  17.   </welcome-file-list>
  18. </web-app>
  19.  
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
Jun 28 '11 #1
1 3213
madshov
20
Ok, I think i have found a possible cause. Can somebody confirm that the invoker servlet is diabled in tomcat 7?
Jun 29 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Phil Powell | last post by:
I have a PHP script that will be doing an @fopen file open command to a Java servlet, sending content via a query string. Problem is that it appears the Java servlet does not receive anything...
2
by: kimbuba | last post by:
Hi all, i'm writing cause i'm not able to find any good resources about this topic. I'm programming on tomcat and i have my browser open to see changes i made. The problem is that i'd like to see...
6
by: alan | last post by:
Dear all, I have a servlet problem. When I modified my java servlet program and then uploaded it to my web hosting server, then I start my web browser(I.E) to see the result. But it loaded...
0
by: SubbaRao Karanam | last post by:
When I click the Button in Applet , I want it open a Dialog asking for the excel to open/save etc... It doesnt happen why... Now it doesnt create the excel file Why.... My Applet code is...
1
by: Hai Tran | last post by:
Any help is appreciated. Installed Tomcat 4.1 and Mysql on a WinXP. I've manage to get Tomcat up and was able to view my first application ( myhome ) simple home page. Tomcat was installed under...
2
by: Paul | last post by:
hi , i have started with "beginning JSP web development" and got stuck on extending classes. I'm getting the following error message: TechnicalBook.java:3: cannot resolve symbol symbol : class...
1
rohitrohitrohit
by: rohitrohitrohit | last post by:
hi i am rohit i am beginner i ma using tomcat 5.0.28 .how can i deploy my helloworld servlet? please explaine with examples? ...
2
by: dmstn | last post by:
Hey! I've got a little problem. I have to make a web site for a university essay. I curently have to create a search engine. Users can enter a hotel name in a search bar and results have to appear in...
2
by: Sundhas | last post by:
Hey! I have made a webpage in Servlet and now i want to add a stylesheet.css to it Where should i exactly put the .css file ? like in ROOT of tomcat or some where else and what exact path i have to...
1
by: commissioner wa | last post by:
Hi everyone, am developing servlet image upload app. when i run the programm, it displays an error below though i have apache common filesupoad and common i.o at my apache lib. what do i do, Is it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.