Results 1 to 6 of 6

Thread: [SOLVED] Howto deploy small changes to ZimbraServer on Binary Install?

  1. #1
    kbaker is offline Active Member
    Join Date
    Jan 2006
    Posts
    33
    Rep Power
    9

    Default [SOLVED] Howto deploy small changes to ZimbraServer on Binary Install?

    I have some small changes to the "com.zimbra.cs.store.StoreManager" Class I would like to build and deploy on a binary install I have setup. Just for testing.

    Is there a way I can do a build of the ZimbraServer, java only, from ant ZimbraServer/build.xml and just copy the updated jar files to an existing binary install.... then restart for testing?

    I was having some issues getting the dev enviroment running. It would save a good bit of time if it were possible to take this approach.

    Any information would be appreciated.

    Thank you,

    Kevin

  2. #2
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    You should be able to generate the new WAR and deploy it over the existing war. Obviously don't do this on a production server. I have not tried it myself.

  3. #3
    kbaker is offline Active Member
    Join Date
    Jan 2006
    Posts
    33
    Rep Power
    9

    Default

    Great!

    So which ant build item would I user to do this? "war"?

    Where would the jar files be built if I take this approach?

  4. #4
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by kbaker View Post
    Great!

    So which ant build item would I user to do this? "war"?

    Where would the jar files be built if I take this approach?
    I beleive a dev-sync will overwrite it. Again, this is dangerous, but I think possible.

  5. #5
    kbaker is offline Active Member
    Join Date
    Jan 2006
    Posts
    33
    Rep Power
    9

    Default

    So I went ahead and did this the other day.

    It worked great! and was really easy to setup.

    1. Install binary install of Zimbra on a box. This is *only* *ONLY* for development. Even though binary it is not for production.

    1. Install source on another machine, or in another directory. Do not deploy all of Zimbra with this.

    1. Make change in Java source. I am working in Frank, not trunk.

    1. Build using ANT. Make sure to use "dev-sync"

    1. Copy all jar files to dev binary Zimbra install

    1. Restart Zimbra


    I'm not sure how this would be risky at all. Maybe I'm missing something, but this seems like a *much* easier way to setup a dev environment for updating Java code.

    Let me know if you have any further thoughts. Thanks for your help on this.

    - Kevin

  6. #6
    vasa is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    16
    Rep Power
    6

    Default

    Hi Kevin,

    I have been searching for similar info given above. I need to know how to deploy simple java code changes.Right now I have added few lines in server code using eclipse and could build jar files. I tried repalcing zimbrastore.jar in the existing/running zimbra app. But I could not launch web page? Am I missing something? which all files I should be replacing for the changes to take effect? Appreciate any help with this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 16
    Last Post: 11-29-2006, 10:36 AM
  2. SUSE Linux Enterprise Server 9 NAT Install HOWTO
    By LMStone in forum Installation
    Replies: 0
    Last Post: 11-03-2006, 02:31 PM
  3. Replies: 3
    Last Post: 09-24-2006, 08:28 AM
  4. Replies: 4
    Last Post: 01-18-2006, 11:58 AM
  5. OS X Server 10.4.3 install issues
    By jono in forum Installation
    Replies: 10
    Last Post: 11-22-2005, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •