- This topic has 6 replies, 2 voices, and was last updated 21 years, 5 months ago by
support-michael.
-
AuthorPosts
-
myoungstromMemberIs it only possible to do jsp debugging if your web application is deployed using MyEclipse’s “Add and Remove Project Deployements”? I have my own ant build system that does a JMX deploy to a JBoss 3.2.2+Tomcat 5 application server and would like to be able to debug the JSPs.
What kind of connection is needed between the JSPs in the IDE and the deployed JSPs?
Mike
support-michaelKeymasterMike
While we have not tried a manual deployment with JSP debugging it is theoretically possible. You need to launch JBoss from within MyEclipse for Eclipse debugging to function properly. If you compile your app with Ant remember to set the compiler to include debug information or else no debugging will take place. Also refrain from precomiling the JSPs.
Good luck and let us know how it goes,
Michael
MyEclipse Support
myoungstromMemberWell, I gave it a try and I’m getting the following error.
Source not found for index_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 7
Does this help give you any ideas about what the problem might be? What information can I provide you with to help me through this?
Mike
myoungstromMemberI did a little more investigation and discovered that if I deploy just a .war using my JMX deploy ant script then everything works fine. However, if I custom deploy a .ear with a .war as a module of that .ear then I am unable to debug JSPs of that .war and I get the error I mentioned above.
So here is the complete set of information on how to duplicate this issue.
1. Using JBoss 3.2.2 + Tomcat 5. (if you need help making this configuration ask)
2. Create a directory structure of a .ear with a .war inside following the pattern of an exploded .ear.
3. Deploy the .ear to JBoss using one of many approaches. (such as copying the directory structure to the deploy directory, invoke a JMX deploy on the .ear directory, etc.).
4. Attempt to debug a JSP in the .war of the .ear.I’m using Eclipse 2.1.1 that was not cleaned specificly for MyEclipse. I’m using Sun JDK 1.4.2. in Windows XP.
Mike
myoungstromMemberOk….I’m sorry for all of the mis-information but I did a little more testing and it looks like I’m wrong again. 🙂
I renamed my project to test.ear and added the application.xml file and put in my project test.war and set the project’s Web-root folder to test.war. I then told jboss to deploy /test.ear/ and I attempted to debug a JSP in test.war and it worked!!!!!!
So, I don’t know what’s going on. Can anyone shed a little light on the relationships between JBoss, eclipse projects, Myeclipse Web Projects and the Web-root’s location within a project in the context of debugging JSPs?
Thanks,
Mike
myoungstromMemberI think I’ve narrowed the issue down to the following:
Cannot debugging of JSPs in a Web Projects with a “Web-root folder” not in the root of the project. Steps to duplicate issue.
1. Create a new Web Project.
2. Set as the “Web root folder” to WebRoot/test
3. Create a JSP in WebRoot/test
4. Add a project deployment for iether Tomcat 5 or JBoss 3.2.2+Tomcat 5
5. Attempt to debug the JSP.In Tomcat 5 the breakpoint in the JSP appears to be ignored.
In JBoss 3.2.2+Tomcat 5 the error “Source not found for index_jsp._jspService(HttpServletRequest, HttpServletResponse) line: X” appears.Mike
support-michaelKeymasterMike,
Thanks for the research. I was able to reproduce the JSP debugging problem you report. I have entered an issue in our tracking system.
Michael
MyEclipse Support -
AuthorPosts