This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Basic question with Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Basic question with Eclipse" Watch "Basic question with Eclipse" New topic

Basic question with Eclipse

Frederik Ericsson
Ranch Hand

Joined: Apr 27, 2005
Posts: 128
Hello Guys,

I am beginner in this.

I have installed Tomcat, once I created new project i got these folders by default.


I have created this folder

WEB_INF/classes(using prject-> prop->) and web.xml file by my self

I have created index.jsp, started the server, it was working fine.

when am writing new servlet

package UnderDevelop;

* @author Administrator
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
import javax.servlet.*;
import javax.servlet.http.*;
public class Test extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
java.util.Date d = new java.util.Date();
PrintWriter out = response.getWriter();
out.println("Hello World..........");


<?xml version="1.0" encoding="ISO-8859-1"?>

< !DOCTYPE web-app<br /> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"<br /> "">

<display-name>Welcome to Tomcat</display-name>
Welcome to Tomcat

I could nt find the Test.class file in the WEB-INF/classes.

when I type this http://localhost:8080/TomcatProject/ssss
says Status 500 - error.

Please do help me, since am a beginner, u guys will encourage me to fix it.

with regards,
kp sm

Joined: Apr 24, 2006
Posts: 3

There is a free plugin for tomcat-eclipse (sysdeo I guess). You can get the plugin and save it under plugins directory of eclipse.

Then you will get some tomcat related buttons and settings in eclipse. Using them you can configure your classes files.

I agree. Here's the link:
subject: Basic question with Eclipse
It's not a secret anymore!