Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Basic question with Eclipse  RSS feed

Frederik Ericsson
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!