JBoss and IDEA 7

Hi everyone,

I'm using Idea 7.0.5 with a JBoss 4 server. I have a servlet (see code below) that I continue to redeploy to the server. It seems, though, that somehow it's not getting through; whenever I go to the servlet's URL I get the same thing no matter what code I put in the servlet. That is, when the servlet was deployed originally it worked fine, but every time I redeployed after that I just get the same output that I got from the servlet's original code.

This has been an issue before and I think it either has to do with how IDEA is deploying or my code.
Please note I am deploying a .ear (JavaEE application) that uses another module's .war (I am not deploying the .war, just the .ear, but the .ear uses the other module's Web stuff)

You'll notice the servlet is supposed to display "testing testing 123", the result of gb.getAverage() which is 97.2, and the result of getServerInfo() which is described in the overridden function.
However, when I originally deployed the app, only the result of gb.getAverage() was displayed, and it was 97.210498 (not rounded). That, for some reason, continues to be what the app displays regardless of the changes in code, and that is my problem.

Here's the servlet:

import javax.servlet.http.*;
import java.io.*;
* Created by IntelliJ IDEA.
* Copyright Joe Stein. All Rights Reserved.
* Date: Feb 25, 2009
* Time: 9:11:20 PM
public class Online extends HttpServlet {
    GradeBook gb;
    public Online() {
        gb = new GradeBook();
    private void doRequest(HttpServletRequest req, HttpServletResponse resp) {
        try {
            PrintWriter pw = resp.getWriter();
            pw.println("testin testing 123");
        } catch (IOException e) {

    public void doGet(HttpServletRequest req, HttpServletResponse resp) {
    public void doPost(HttpServletRequest req, HttpServletResponse resp) {
    public String getServletInfo() {
        return "Author: Joe Stein\nCopyright 2009. All Rights Reserved.";


Here is my structure viewed as a project:
Picture 2.jpg
and here it is viewed as a JavaEE application:
Picture 1.jpg

1 comment
Comment actions Permalink

... I forgot to compile the .war again. OOPS.


Please sign in to leave a comment.