- This topic has 21 replies, 3 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
debutantMemberHello,
I downloaded and installed the myeclipse plugin and followed the tutorial to create a web app and debug the helloWorld.jsp.everything seems to be fine and I can see the source code of the jsp when I am in the debug mode.
BUT, when I create a sub-folder at the same level as WEB-INF and put a jsp there and put a breakpoint inside of it, when I target the jsp it launches the debugger but it gives me “Source not found for __hella._jspService(HttpServletRequest, HttpServletResponse)“.
Having the source code when debugging is great but not being able to organize my jsps in folders to use this feature does not serve me at all.
Any ideas please. 🙁
Riyad KallaMemberI was not able to reproduce this… here is what I did:
1) Created Web Module Project
2) Added an index.jsp page that did a html:forward to a Struts Tile named “home.jsp”
3) Created a “home.jsp” file in my WEB-INF/jsp directory (and even a few levels deeper as a test)
4) I put a scriplet that said “<%= “Hello!” %>” in the home.jsp page and set a breakpoint
5) I deployed and ran the app to Tomcat 5.0.27 and connected to it, when index.jsp was hit it forwarded to home.jsp and Eclipse come up, stopped at that breakpoint.What are the Build IDs of Eclipse (Help > About) and MyEclipse (Window > Preferences > MyEclipse) that you have? Also what application server are you deploying to?
debutantMemberHello,
Here are the information about my environment you requested:1 – operating system : windows XP.
2 – Application Server : Weblogic 8.1
3 – Eclipse Build id: 200408122000
4 – MyEclipse Build Id : 200408201200-3.8.1+QF20040825.I hope this helps
Riyad KallaMemberWe don’t currently support integration/nightly builds of Eclipse 3.1 (which it looks like you are running) so I can’t really go much further with this. I know it works locally for me but I’m using Eclipse 3.0 GA. Since the development builds of Eclipse are moving targets, its not something we can support right now.
If you are willing to do a parallel install of Eclipse 3.0 GA and MyEclipse 3.8.1 GA along side your current Eclipse 3.1 install, I would be more than happy to help.
debutantMemberHi,
I uninstalled this version of eclipse and re-installed the Eclipse 3.0, here is the version of eclipse I have now installed.1- Eclipse Version: 3.0.0
2 – Eclipse Build id: 200406251208.I recreated the folder docs at the same level as the WEB-INF folder and created the jsp in it, deployed the web application and tried to debug, it still does not give me the souce for the jsp page.
any idea?
Riyad KallaMemberCan you try and create a new Web module project and do EXACTLY the steps that I outlined above to see if that atleast works?
debutantMemberHi,
I did what you requested exactly, the problem now is how to access the home.jsp page,I use this url to access it “http://serverIP:Port/cscom/WEB-INF/jsp/toto/home.jsp”, but the server tells me, page not found.Any idea on how to access the page correctly.
Here is the layout of my project:
cscom
|__>src
|__>JRE
|__>J2EE
|__>META-INF
|__>WEB-INF
| |__>jsp
| | |__>toto
| | |__>home.jsp
| |__>lib
| |__>web.xml
|__test.jspThanks for your help
[/img]
Riyad KallaMemberYou can’t access the page directly, everything under WEB-INF is protected, you can setup a jsp:forward or html:redirect in the index.jsp page to point to the home.jsp like I did, that should fix it.
Riyad KallaMemberP.S.> To use the html:forward (or redirect, I forget the exact tag) add Struts capabilities to your project, its a Struts tag.
debutantMemberHi,
I did like you asked, I modified the test.jsp you see in my project layout above and added this tag “<jsp:forward page=”/WEB-INF/jsp/toto/home.jsp”></jsp:forward>”, and added a breakpoint to home.jsp.I restarted the weblogic server and accessed the test.jsp, it indeed started the debugger at the breakpoint in home.jsp, but here is what I got in the source page”Source not found for __home._jspService(HttpServletRequest, HttpServletResponse) line: 6″, so it did not change a thing, probably there is some extra config I need to do that you already have done in your eclipe, I don’t really know as I’m new to eclipse.
Thanks for your help.
Riyad KallaMemberOne last thing, did you do this already to configure weblogic correctly: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-18.html#97
debutantMemberI have what is exactly described in the document you linked to it above, that is how I can start weblogic properly and debug the test.jsp, so yes I have the same info as the one described.
Riyad KallaMemberI have asked someone else with more WL experience to hvae a look at this for you.
debutantMemberThank you, waiting for a solution.
Riyad KallaMemberdebutant,
Scott has gotten back to me on this and aparently its a bug with ME not knowing how WebLogic will name the compiled JSP files for proper source lookups. I have filed a high priority bug for this and we will *try* and squeeze it into the 3.8.2 release comming out in a couple of weeks.Thank you for all the help running this down.
-
AuthorPosts