- This topic has 10 replies, 2 voices, and was last updated 18 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
Tulsi RaiMemberHello 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
AntSuggested 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.
Riyad KallaMemberIs 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.
Tulsi RaiMemberYes, 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.
Riyad KallaMemberAre 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?
Tulsi RaiMemberI 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.
Riyad KallaMemberWell 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?
Tulsi RaiMemberYes. I can debug the normal class. The debugger hits the breakpoint just the jsp and servlet is problem.
Riyad KallaMemberDo 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?
Tulsi RaiMemberNow 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!!!!
Riyad KallaMemberPlease go to File > Export > To Archive, export your project to an archive and send it to support@genuitec.com ATTN Riyad.
Riyad KallaMemberOk 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.
-
AuthorPosts