eclipse - Java EE EAR debugging with source tree -
i've been assigned work on java project. don't have lot of experience kind of development, i'm kind of struggling.
typical development process project is:
- make changes in source code
- run ant build script create ear
- deploy ear development server (weblogic 12.1.2)
- run application , see if changes you've made fix issue you're working on.
so, taking personal goal make possible local development, debugging work , such.
after spending time googling , playing around, i'm able @ least part of way, having trouble towards end of process.
i've tried different methods try things working.
first, checked out source code via eclipse, shows project , correctly linked subversion. can bring build.xml file ant view , build target i'm interested in. gives me ear file (and war file). when try debug project, via right-click on project , selecting debug as... 3 options: java applet, java application, junit test.
if choose java applet, select java applet popup. after choosing think right applet errors exist in required project(s), proceed launch? if proceed, applet viewer , bajillion errors , nothing else. if don't proceed, error log fills bajillion other errors.
if choose java application list of bunch of different entries, none of i'm trying debug.
so, after trying that, decided see if import generated ear file , debug way. so, went through import wizard, found ear file build via ant. after selecting , proceeding through dialog, 2 projects in project explorer: application (we'll call appx) , appx_web project.
now, if select appx project , choose debug as, debug on server, promising. console tells me server listening on 127.0.0.1:7001, , built-in browser starts bringing page. i'm feeling pretty that.
the problem is, though, don't know how attach ear file source tree i've got can step through code.
and going deeper, how set can develop in source tree , have them automatically propagated ear file , redeployed?
or, better, can working without having build ear file , deploy it? meaning, can run straight source tree?
anyway, can give appreciated.
thanks!
you can start server in debug mode attach eclipse running instance , debug it.
for enable debug port in jvm configurations on server , launch remote application debugging in eclipse.
Comments
Post a Comment