how can I debug Sakai?

View: New views
3 Messages — Rating Filter:   Alert me  

how can I debug Sakai?

by 许恒 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    When I modify the code, I must do follow:
1. shut down the tomcat
2. mvn -o install
3.mvn sakai:deploy
4. restart tomcat

It's too elapsed time, how can I debug faster?

xjf
2008-7-25

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org//portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.

Re: how can I debug Sakai?

by Aaron Zeckoski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


You have 2 options to possibly speed this up:
1) Only redeploy the webapp you are working with - Sakai/tomcat can
redeploy a single webapp/tool/project as long as it contains no
component/shared code. If you are redeploying something with a webapp
only (like login) you can redeploy without restarting tomcat. If you
are redeploying something with a service (like site) you have to
restart tomcat. You can also only redeploy part of a project with
maven 2 by just rebuilding the part you changed. If the changed part
is a webapp then you can redeploy without a sakai restart.

2) Only use a minimal sakai distribution so startup takes less time -
If you use the cafe distribution or framework build or some other
distribution of Sakai that only includes a minimal set of projects
then it takes less time to restart. You can get the various cafe
(sakai core services + portal) distributions here:
https://source.sakaiproject.org/svn/cafe/

Instructions on setting up you development environment are here:
http://confluence.sakaiproject.org/confluence/display/BOOT/Development+Environment+Setup+Walkthrough

Instructions on setting up debugging for tomcat are here:
http://bugs.sakaiproject.org/confluence/display/BOOT/Setting+Up+Tomcat+For+Remote+Debugging

-AZ


On Fri, Jul 25, 2008 at 4:19 AM, 许恒 <xuhengjs@...> wrote:

>     When I modify the code, I must do follow:
> 1. shut down the tomcat
> 2. mvn -o install
> 3.mvn sakai:deploy
> 4. restart tomcat
>
> It's too elapsed time, how can I debug faster?
>
> xjf
> 2008-7-25
>
> ________________________________
> This automatic notification message was sent by Sakai Collab
> (https://collab.sakaiproject.org//portal) from the DG: Development (a.k.a.
> sakai-dev) site.
> You can modify how you receive notifications at My Workspace > Preferences.
>



-- Aaron Zeckoski (aaronz@...)
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org//portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.

Re: how can I debug Sakai?

by Mark Norton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


The simplest way is to strip unused tools out of your development
environment.  In the past, this was a bit tricky.  Fortunately, we have
a build now that creates a minimal Sakai environment called cafe.  See:

https://source.sakaiproject.org/svn/cafe/tags/2-5-0/

Aaron and others have put together some great documentation on how to
get this environment set up correctly at:

http://confluence.sakaiproject.org/confluence/display/BOOT/Sakai+development+getting+started

I recommend you look through this carefully.

- Mark Norton

许恒 wrote:

>     When I modify the code, I must do follow:
> 1. shut down the tomcat
> 2. mvn -o install
> 3.mvn sakai:deploy
> 4. restart tomcat
>
> It's too elapsed time, how can I debug faster?
>
> xjf
> 2008-7-25
>
> ------------------------------------------------------------------------
>
> This automatic notification message was sent by Sakai Collab
> (https://collab.sakaiproject.org//portal) from the DG: Development
> (a.k.a. sakai-dev) site.
> You can modify how you receive notifications at My Workspace >
> Preferences.
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.5.5/1570 - Release Date: 7/24/2008 6:59 AM

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org//portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.
LightInTheBox - Buy quality products at wholesale price