facebook

JSP/Servlet Debugging

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #247418 Reply

    Tulsi Rai
    Member

    Hello Folks,
    I am having very wierd problem of not being able to do the debugging which I used to able a week or so. I don’t seem to hit the break points at all for some reaon. Here’s my environment:

    Win XP
    eclipse 3.1.2
    myeclipse 4.1.0 GA
    tomcat 5.0.28
    Ant

    Suggested here at one of the threads here, I even did debug=”true” with javac. but didn’t help. Can some one help me with it please? thanks.

    #247445 Reply

    Riyad Kalla
    Member

    Is this a Web Project you are building and deploying with MyEclipse, or are you building/deploying it with Ant? Did you upgrade your JDK recently? What JDK do you have set to run Tomcat.

    #247467 Reply

    Tulsi Rai
    Member

    Yes, It is web project. I have jdk1.4.x. Also, Yes, I do use Ant to compile and deploy. I have used <javac …. debug=”true”> to make sure that it would compile with debugging capability on. i would appreciate your response and help. thanks.

    #247474 Reply

    Riyad Kalla
    Member

    Are you launching your app server using MyEclipse, or are you launching it externally? Is there a reason you need to use Ant and not MyEclipse?

    #247485 Reply

    Tulsi Rai
    Member

    I HAVE to run tomcat externally as i have to get the tomcat start JAVA_OPT paramter when it starts. this parameter does not get read running tomcat internally from within myeclipse. Let me know if there’s a way that i am missing to get this done. I dont have to use Ant but just wanted to use it from myeclise as a standard build process. it should not matter however though. I have even tried just a simple JSP page and setting a break point in it, i could not get the debugger hit that point. please let me know. thanks.

    #247488 Reply

    Riyad Kalla
    Member

    Well if you are starting Tomcat externally you need to make sure to run it in debug mode, MyEclipse normally does this for you. Please check the Tomcat docs on how to do this, I do not know how to off the top of my head.

    Can you even debug a normal Java class?

    #247490 Reply

    Tulsi Rai
    Member

    Yes. I can debug the normal class. The debugger hits the breakpoint just the jsp and servlet is problem.

    #247492 Reply

    Riyad Kalla
    Member

    Do me a favor. Shut down your app server, remove your deployment using Ant. Now go into MyEclipse and rebuild your project (Project > Clean). Now create a deployment to Tomcat, you may need to configure Tomcat from within MyEclipse (Window > Prefs > MyEclipse > Application Servers > Tomcat). Then deploy it, then start Tomcat from MyEclipse and now set break points and try and hit them, does that work?

    #247506 Reply

    Tulsi Rai
    Member

    Now I tried to follow what you have said here and all the JSP pages under Webroot would not get copied to my Web context in tomcat. this is very wierd indeed!!!!

    #247522 Reply

    Riyad Kalla
    Member

    Please go to File > Export > To Archive, export your project to an archive and send it to support@genuitec.com ATTN Riyad.

    #247606 Reply

    Riyad Kalla
    Member

    Ok you sent me an incomplete project which made it a little tricker for me to test-debug this, but I was able to deploy this project to tomcat and debug the login.jsp page just fine. I stopped on the element starting:

    
    <c:if test="${requestScope.loginStatus == 'failed'}">
                    <center>
                        <font color="#ff0000">Invalid login, please try again.</font>
                    </center>
                </c:if>
    

    and stepped through the page.

    Please paste the result of MyEclipse > About > Configuration Summary for me to see what versions of everything you are using. I know you stated them above, but seeing as how everything is working fine for me, I want to run down the possibility that this is an install error.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: JSP/Servlet Debugging

You must be logged in to post in the forum log in