- This topic has 4 replies, 2 voices, and was last updated 19 years, 5 months ago by
andy-baldwin.
-
AuthorPosts
-
andy-baldwinMemberHi there MyEclipse experts 🙂
So I’ve just bought myself a licence to MyEclipse because I think it absolutely rocks, and I’m tyring to get the JSP debugging going so I can demonstrate it to a colleague (this would be the deal-clincher for him to buy a copy too…)
But I can’t get it to work. All the docs seem to gloss over the details (or maybe I’m misunderstanding something very trivial 🙂
I’m using Eclipse 3.1.0 on FC4, MyEclipse 4.0.3 GA, JDK 5.0 and WLS 9.0
I’ve got WLS integrated with MyEclipse and I can now start and stop it just fine…I’ve checked the little box in the app server settings of MyEclipse that says start WLS in debug mode, and sure enough when I do a ps -aux I can see the -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:34481 on the process list…
All good so far…
I get one of my really noddy JSPs, right click, toggle breakpoint on, deploy the app, right click, Debug As…
Debug As what ? Hm….Remote Java Application ? Maybe. I set it up, put in the port gleaned from the process list (34481 for example), click Debug, and always, without fail, get a connection refused error.
I’ve read the thread on updating the weblogic.xml to allow JSP debugging, but I can’t seem to find a weblogic.xml for this application…when I created the project I used the New->MyEclipse->WebProject wizard, and then the MyEclipse deploy app button – should it be generated for me ? Or do I have to create my own and ensure it gets included in the deployment ? (seems a bit app server specific for my portable app, if I have to do that…?)
What gives ? I’m sure I’m missing something really obvious but I can’t see what it is.
Thanks in advance !
Andrew
December 21, 2005 at 6:10 pm #243562
Scott AndersonParticipantAndrew,
Looks like you’re likely missing the magic incantation in your web app’s weblogic.xml file to turn on debugging. We covered what that looks like in this thread, among others:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-84-highlight-weblogic+xml+webinf+debug.htmlThat should get you going!
December 22, 2005 at 2:24 am #243580
andy-baldwinMemberThanks for the quick reply – I gave the magic incantation a try and I’m afraid it didn’t work for me 🙁
I checked the autodeploy directory and the webapp is exploded and the weblogic.xml is there, in the correct place…but still connection refused…I forgot to mention – I do not have f/w running on the machine (in case that might interfere)
December 23, 2005 at 3:51 pm #243655
Scott AndersonParticipantAndy,
When I reread your intial post it seems like you’re trying to launch WebLogic twice.
I’ve got WLS integrated with MyEclipse and I can now start and stop it just fine…I’ve checked the little box in the app server settings of MyEclipse that says start WLS in debug mode, and sure enough when I do a ps -aux I can see the -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:34481 on the process list…
Good. So WebLogic is now running.
I get one of my really noddy JSPs, right click, toggle breakpoint on, deploy the app, right click, Debug As…
This is where it goes awry. Deploying the app is fine, but you *do not* do a Debug As….
.but still connection refused.
The Debug As.. is causing this issue.
Once your application is deployed on WebLogic, you simply need to open a browser (like the internal one accessed with the ‘globe’ icon from the toolbar) and type in the URL to your JSP page. When the browser loads the page, the JSP should be hit.
To see a simple example on how to deploy and debug on Tomcat (WebLogic is very similar) please see our Working with Web Projects tutorial in the Documentation section. That should bring you up to speed on the basic steps and concepts to deploy a webapp to a server, start the server, and get debugging working.
January 3, 2006 at 5:17 am #243892
andy-baldwinMemberWoohoo ! I’ve got it working 🙂 🙂
I had a read of the working with web projects tutorial, and it was a combination of trying to start WLS twice as you pointed out from the Debug As menu option, and also my breakpoints not being registered with the JVM, which I discovered by reading the tutorial (the little tick was missing from the breakpoint blob).
Once I’d got the tick, I refreshed the page and bang – breakpoint hit. Nice.
Many thanks for your help and patience Scott !
-
AuthorPosts