Hello Ankur,

sorry for not being able to reply earlier.

Steps for remote debugging lenya with eclipse.

1. Build lenya as usual

2. Start lenya with the servlet-debug parameter, so that remote debugging of 
the 
running application is enabled

3. Define a Remote Java application in Eclipse:

  Menu: Run -> Debug Configurations
  Select "Remote Java Application" in the left pane
  Click on the "New" button
  Choose a name and select your lenya project in the right hand pane
  Click on the Debug button

This will connect Eclipse to the running lenya. You can now set breakpoints 
etc. 
as usual.

 Rainer


On Sun, 18 Mar 2012 at 20:30 -0700, AnkurPSI wrote:

 > 
 > Hi Rainer, 
 > 
 > Can you please share the steps in brief like what you have done?
 > 
 > Thanks,
 > Ankur
 > 
 > Rainer Schöpf-5 wrote:
 > > 
 > > On Fri, 16 Mar 2012 at 03:19 -0700, AnkurPSI wrote:
 > > 
 > >  > I am able to build lenya from command prompt and then I imported the
 > > cocoon
 > >  > and lenya projects (build eclipse-project on the home dirs using
 > > command
 > >  > prompt) in Eclipse ide 
 > >  > 
 > >  > Cocoon Home : C:\apache\cocoon\branches\BRANCH_2_1_X
 > >  > Lenya Home : C:\apache\lenya\lenya_2.0.4
 > >  > 
 > >  > Now after importing I am facing few compilation errors in Ant Build
 > > files
 > >  > and I have no clue how to resolve these error:
 > > 
 > > I've never managed to do that from within Eclipse. Instead I build lenya
 > > as 
 > > usual (with the build script). Then I define a Remote Java Application
 > > within 
 > > Eclipse and run lenya as 
 > > 
 > >  lenya.sh servlet-debug 
 > > 
 > > (lenya.bat in your case, I believe).
 > > 
 > >   Rainer
 > > 
 > > ---------------------------------------------------------------------
 > > To unsubscribe, e-mail: [email protected]
 > > For additional commands, e-mail: [email protected]
 > > 
 > > 
 > > 
 > 
 > -- 
 > View this message in context: 
 > http://old.nabble.com/Facing-Error-while-building-Leyna---properties-build.xml%3A162%3A-taskdef-class-com.thaiopensource.relaxng.util.JingTask-cannot-be-found-tp29222190p33529029.html
 > Sent from the Lenya - Users mailing list archive at Nabble.com.
 > 
 > 
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: [email protected]
 > For additional commands, e-mail: [email protected]
 > 

   Rainer Schöpf
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to