You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2004/08/27 09:02:24 UTC

Developing and debugging CForms

Does anyone have a useful approach for 
developing and debugging CForms - the
reason I ask is that I have just adapted a
set of forms from my first CForms project
(which *is* working) and now, to my
surprise, the new forms display OK but do 
not pick up any data from the XML files to 
which they are binding...

Thanks!
Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Developing and debugging CForms

Posted by Scott Yeadon <sc...@anu.edu.au>.
Andi,

I would assume your Cocoon breakpoints would still be intercepted. Since 
JBoss is open source you could probably make it a dependent project and 
debug that as well. Maybe someone who has done this before can post 
their thoughts?

Scott.

ANDI KUSNADI wrote:

> but if i use jboss as my application server is it can be debugged ?
> thank you
>
> */Scott Yeadon <sc...@anu.edu.au>/* wrote:
>
>     Derek,
>
>     I've tended to just use debugging statements in my code (since it's
>     mostly been me causing the problems!) but if you use Eclipse,
>     below is
>     an extract from a previous post that may help you (I haven't tried
>     it yet).
>
>     Scott.
>
>     ======== start =====================
>
>     More people here use Eclipse, as far as I can see.
>
>     Run:
>     build eclipse-project
>     That'll create an Eclipse project file.
>
>     Then, fire up Eclipse. Create a new project, pointing its workspace to
>     the Cocoon folder (not the webapp, the one containing build.bat).
>     Create another project that relates to your application, including the
>     source for your actions, etc. Make that project dependent upon the
>     Cocoon one.
>
>     For this new project, point the Eclipse compilation output to
>     WEB-INF/classes, so that your changes will show after a JVM restart.
>
>     R! un Cocoon with:
>     cocoon servlet-debug
>
>     In eclipse, start a remote debugging session, connecting to
>     localhost on
>     the default port, for your project. Once connected, you'll be able to
>     set breakpoints in your code.
>
>     Then, using a browser, request a page with http://localhost:8888/blah
>
>     If Cocoon hits a breakpoint in your code, Eclipse will catch it.
>
>     The rest is up to you.
>
>     Regards, Upayavira
>
>     ============ end ==============
>
>     Derek Hohls wrote:
>
>     >Does anyone have a useful approach for
>     >developing and debugging CForms - the
>     >reason I ask is that I have just adapted a
>     >set of forms from my first CForms project
>     >(which *is* working) and now, to my
>     >surprise, the new forms display OK but do
>     >not pick up any data from the XML files to
>     >which they are binding...
>     >
>     >Thanks!
>     >Derek
>     >
>     >
>     >
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>     For additional commands, e-mail: users-help@cocoon.apache.org
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now 
> <http://us.rd.yahoo.com/evt=26640/*http://promotions.yahoo.com/goldrush>. 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Developing and debugging CForms

Posted by ANDI KUSNADI <my...@yahoo.com>.
but if i use jboss as my application server is it can be debugged ? 
thank you

Scott Yeadon <sc...@anu.edu.au> wrote:
Derek,

I've tended to just use debugging statements in my code (since it's 
mostly been me causing the problems!) but if you use Eclipse, below is 
an extract from a previous post that may help you (I haven't tried it yet).

Scott.

======== start =====================

More people here use Eclipse, as far as I can see.

Run:
build eclipse-project
That'll create an Eclipse project file.

Then, fire up Eclipse. Create a new project, pointing its workspace to
the Cocoon folder (not the webapp, the one containing build.bat).
Create another project that relates to your application, including the
source for your actions, etc. Make that project dependent upon the
Cocoon one.

For this new project, point the Eclipse compilation output to
WEB-INF/classes, so that your changes will show after a JVM restart.

Run Cocoon with:
cocoon servlet-debug

In eclipse, start a remote debugging session, connecting to localhost on
the default port, for your project. Once connected, you'll be able to
set breakpoints in your code.

Then, using a browser, request a page with http://localhost:8888/blah

If Cocoon hits a breakpoint in your code, Eclipse will catch it.

The rest is up to you.

Regards, Upayavira

============ end ==============

Derek Hohls wrote:

>Does anyone have a useful approach for 
>developing and debugging CForms - the
>reason I ask is that I have just adapted a
>set of forms from my first CForms project
>(which *is* working) and now, to my
>surprise, the new forms display OK but do 
>not pick up any data from the XML files to 
>which they are binding...
>
>Thanks!
>Derek
>
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


		
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

Re: Developing and debugging CForms

Posted by Scott Yeadon <sc...@anu.edu.au>.
Derek,

I've tended to just use debugging statements in my code (since it's 
mostly been me causing the problems!) but if you use Eclipse, below is 
an extract from a previous post that may help you (I haven't tried it yet).

Scott.

======== start =====================

More people here use Eclipse, as far as I can see.

Run:
build eclipse-project
That'll create an Eclipse project file.

Then, fire up Eclipse. Create a new project, pointing its workspace to
the Cocoon folder (not the webapp, the one containing build.bat).
Create another project that relates to your application, including the
source for your actions, etc. Make that project dependent upon the
Cocoon one.

For this new project, point the Eclipse compilation output to
WEB-INF/classes, so that your changes will show after a JVM restart.

Run Cocoon with:
cocoon servlet-debug

In eclipse, start a remote debugging session, connecting to localhost on
the default port, for your project. Once connected, you'll be able to
set breakpoints in your code.

Then, using a browser, request a page with http://localhost:8888/blah

If Cocoon hits a breakpoint in your code, Eclipse will catch it.

The rest is up to you.

Regards, Upayavira

============ end ==============

Derek Hohls wrote:

>Does anyone have a useful approach for 
>developing and debugging CForms - the
>reason I ask is that I have just adapted a
>set of forms from my first CForms project
>(which *is* working) and now, to my
>surprise, the new forms display OK but do 
>not pick up any data from the XML files to 
>which they are binding...
>
>Thanks!
>Derek
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org