1 2 Previous Next 15 Replies Latest reply on Mar 4, 2005 1:52 AM by lowhm

    Step debugging JSP pages

    mjdinsmore

      I now can debug JSP code. Hope I did not waste anybody's time. It had to do with both Lomboz and JBossIDE plug-ins were installed. This kind of mistake tends to be made easily by a newbie like myself having a couple of days of experience with J2EE and trying to go through a sea of information to get a development environment set up. It sure was not a walk in the park, but I finally got the tutorial example (with my own JSP experiment) working! Quite frankly, I have been spoiled by M$'s Visual IDE and was trying to check out J2EE/JBoss, and man, I'm impressed. Hats off to people who worked on JBoss and Eclipse coz they rock!

      Jim

        • 1. Re: Step debugging JSP pages
          mjdinsmore

          I figured I'd mention a big "thank you" since I started this thread a while back. I recently moved my development team to Eclipse 3.x from the 2.x version because many of our useful plig-ins have been ported to the 3.x series by now -- and -- most importantly -- we can now easily step debug our JSPs with the JBossIDE.

          I tried it out. Seemed simple enough to setup/install/configure to run. Just had to remember to run the Ant script to move the tomcat5 service archive into the JBoss instance (we're using JBAS 3.2.3) and then turn on JSP compilation Support for the Eclipse project.

          Once again, THANKS!

          • 2. Re: Step debugging JSP pages

            Hi,

            Yes it is planned. See the JBoss-IDE wiki and the roadmap. It is in the next release.

            Laurent.

            • 3. Re: Step debugging JSP pages
              p_saville1

              Excellent news.

              Looking forward to seeing this feature. KUDOS on the current functionality.

              • 4. Re: Step debugging JSP pages

                Hi,

                Well, I think this feature is in the 1.4.0 release. I don't remember if it has been tested extensively.

                Laurent

                • 5. Re: Step debugging JSP pages
                  cdhough

                  I didn't see anything about JSP debugging in the 1.4 release notes so I assumed it was not included. I am eagerly awaiting this feature so if somebody knows how to use it with the 1.4 release, please let us know.

                  I think we will learn more about these features once the JBoss IDE roadmap is updated.

                  - Charley

                  • 6. 3854142

                    Hi,

                    I have just checked : JSP Debugging is available in JBoss-IDE 1.4.0.

                    Here are the steps to debug :
                    - In the project properties, be sure to enable JSP compilation support
                    - Add the breakpoints in the JSP Files
                    - Deploy your application to the server if necessary
                    - If you have launch JBoss inside Eclipse, the Eclipse Debugger is ready. When executing the JSP, the debugger will stop on breakpoints.

                    You can connect the Eclipse Debugger to a remote server through JPDA interface. This allows to debug JSP inside Tomcat for example.

                    Laurent.

                    • 7. Re: Step debugging JSP pages
                      cdhough

                      Thank you for the instructions Laurent.

                      By the way, if anyone wants to debug with JBoss 3.2.3, you can integrate tomcat 5 very easily. See the instructions near the bottom of the thread:

                      http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-1026.html

                      - Charley

                      • 8. Re: Step debugging JSP pages
                        jlu1202

                        I've just created an environment with Eclipse 3.0.1 and JBoss 4.0/JBoss-IDE 1.4. I am trying to follow Laurent's 11/04/04 reply and running into problems where I can see the JSP files and the generated Java files but can't set break points in either the JSP or the genereated Java files. BTW, the application I created by following the JBossIDE tutorial 1.3 is running correctly and JSP Compilation Support property is set on the Tutorial project.

                        Any insight would be highly appreciated.

                        Jim

                        • 9. Re: Step debugging JSP pages
                          jlu1202

                          I now can debug JSP code. Hope I did not waste anybody's time. It had to do with both Lomboz and JBossIDE plug-ins were installed. This kind of mistake tends to be made easily by a newbie like myself having a couple of days of experience with J2EE and trying to go through a sea of information to get a development environment set up. It sure was not a walk in the park, but I finally got the tutorial example (with my own JSP experiment) working! Quite frankly, I have been spoiled by M$'s Visual IDE and was trying to check out J2EE/JBoss, and man, I'm impressed. Hats off to people who worked on JBoss and Eclipse coz they rock!

                          Jim

                          • 10. Re: Step debugging JSP pages
                            dx_ei

                             

                            "jlu1202" wrote:
                            I now can debug JSP code.

                            I can't :(

                            I have installed the JBoss IDE according to the tutorial instructions in http://www.devx.com/opensource/Article/20242/0/page/1. I can debug the HelloWorldServlet, but no additional helloworld.jsp page within the same project.

                            - I'm using Eclipse 3.0.1 and JBoss IDE 1.4.0 and local JBoss 4.0.0.
                            - I have checked the JBoss compilation support on.
                            - When triggering Compile JSP, nothing happens. Something just flashes in the Progress view.
                            - The JBoss IDE doesn't seem to be able to compile the JSP pages at all. At least there are no errors detected. The JSP page was added from the JBoss-IDE Web Components
                            - The IDE doesn't allow me to put any breakpoints in the JSP. It just seems that it considers the file as ordinary text file, with no compilation support at all.
                            - I've also tried Lomboz on top of the JBoss IDE, but I'm not sure have they planned to work together.

                            Any advices or sources where to look for help?

                            • 11. Re: Step debugging JSP pages
                              mikek753

                              JSP support doesn't work for me

                              Do I need to install any extra plugins to be able use JSP with coding support as it work in java files (Ctrl-mouse and etc.) and tag support? What else I need to be able step debuggin JSP?

                              thanks.

                              Michael

                              • 12. Re: Step debugging JSP pages
                                cdhough

                                I cannot get the jsp debugging to work either. At one point I could set breakpoints and the debugger would even stop at them but it would not recognize my source code. I could not get the code assist to work in the jsp either.

                                - Charley

                                • 13. Re: Step debugging JSP pages
                                  nidget

                                   

                                  "dx_ei@hotmail.com" wrote:
                                  "jlu1202" wrote:
                                  I now can debug JSP code.

                                  I can't :(

                                  I have installed the JBoss IDE according to the tutorial instructions in http://www.devx.com/opensource/Article/20242/0/page/1. I can debug the HelloWorldServlet, but no additional helloworld.jsp page within the same project.

                                  - I'm using Eclipse 3.0.1 and JBoss IDE 1.4.0 and local JBoss 4.0.0.
                                  - I have checked the JBoss compilation support on.
                                  - When triggering Compile JSP, nothing happens. Something just flashes in the Progress view.
                                  - The JBoss IDE doesn't seem to be able to compile the JSP pages at all. At least there are no errors detected. The JSP page was added from the JBoss-IDE Web Components
                                  - The IDE doesn't allow me to put any breakpoints in the JSP. It just seems that it considers the file as ordinary text file, with no compilation support at all.


                                  I have exactly the same behaviour. I'm also using Eclipse 3.0.1 and JBoss IDE 1.4.0, but JBoss AS 4.0.1RC2

                                  • 14. Re: Step debugging JSP pages
                                    garu1gsr

                                    I am having the same problem anyone out there who got the jsp debug work successfully with...
                                    jbosside 1.4
                                    jboss 3.2.6
                                    eclipse 3.0.1


                                    Thanks

                                    1 2 Previous Next