Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Proxy issue when using Zimbra Desktop for development

  1. #1
    asacchetto is offline Banned
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    0

    Default Proxy issue when using Zimbra Desktop for development

    Hi,

    I followed all the instructions on the wiki to use Zimbra Desktop as a development environment: I donwloaded the zimlet called com_zimbra_openalldomains. I tried to make the deploy manually. I tried to deploy manually the zimlet Im developing since using a config_template.xml on the _dev folder is useless. But for any reason, it appears the steps on the wiki dont work. I can't deploy any zimlet using Zimbra Desktop. I suppose that's the reason why Im getting the 403 forbidden error when I try to use my zimlet.

    I found also that other people had this issue and asked for help on the forum. But I wasnt able to find any response. Somebody knows what could be the problem? Im running Zimbra Desktop 1.0.3 build 1691 on Windows XP.

    This is the output I get when I try to deploy a zimlet:

    [] INFO: Deploying on localhost
    [] INFO: Deploy initiated. (check the servers mailbox.log for the status)

    Thanks,

  2. #2
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    A few things to check:

    ZIMLET DEPLOYED?

    You can confirm the zimlet is deployed by checking the {zd-install-dir}/jetty/webapps/service/zimlet to see if com_zimbra_openalldomains folder is present after you run the deploy command.

    Double-check your deploy command syntax. The section of Zimlet Developer's Guide on deploying zimlets to Zimbra Desktop on Windows had a type-o (some letters were caps when they needed to be lowercase). I've corrected the problem and deploy syntax on the wiki page is correct now.

    Zimlet Developers Guide: Dev Environment Setup

    java -cp {required-jar-files} -Dzimbra.config=conf/localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy c:\tmp\com_zimbra_openalldomains.zip

    ZIMLET WORKING?
    You can test what domains your proxy is allowing by accessing the proxy directly. By default, Yahoo! can get thru so the following would work:

    http://127.0.0.1:7633/service/proxy?.../www.yahoo.com

    And the following will give a 403 error:

    http://127.0.0.1:7633/service/proxy?...www.google.com

    After you deploy the com_zimbra_openalldomains zimlet, you should be able to access Google or whatever other domains you need.

    To get the correct server and port to use in this URL for your instance of Zimbra Desktop, checkout the following section:

    Zimbra Developer's Guide: Accessing Zimbra Desktop via Browser

    This section of the Zimlet Developer's Guide talks about accessing the proxy directly for testing as described above:

    ZCS 6.0:Zimlet Developers Guide:Proxy Servlet Setup - Zimbra :: Wiki

  3. #3
    asacchetto is offline Banned
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    0

    Default Re: Proxy issue when using Zimbra Desktop for development

    Thanks for your reply,

    As you explained, the zimlet is not installed. I already checked the folder you mentioned to see if the zimlets I tried to deploy where there, but none of them appears there (my custom zimlet nor com_zimbra_openalldomains).

    That's must be the root of the problem. But I dont know how to fix it. Any idea?

    I used this command to do the deploy, executed on the folder where zdesktop is installed:

    java -cp jetty\lib\log4j-1.2.8.jar;jetty\common\lib\commons-httpclient-3.0.jar;jetty\common\lib\mail.jar;jetty\common\lib \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib \dom4j-1.5.jar;jetty\common\lib\zimbracommon.jar;jetty\we bapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy e:\Com_zimbra_openalldomains.zip

    And this is the output:

    [] INFO: Deploying on localhost
    [] INFO: Deploy initiated. (check the servers mailbox.log for the status)

    Thanks,

  4. #4
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    java -cp jetty\lib\log4j-1.2.8.jar;jetty\common\lib\commons-httpclient-3.0.jar;jetty\common\lib\mail.jar;jetty\common\lib \commons-logging.jar;jetty\common\lib\commons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib \dom4j-1.5.jar;jetty\common\lib\zimbracommon.jar;jetty\we bapps\service\WEB-INF\lib\zimbrastore.jar -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy e:\Com_zimbra_openalldomains.zip


    Double check that you are using lower-case com_zimbra_openalldomains.zip for the Zimlet Package name. That name of the zimlet is case-sensitive and is "com_zimbra_openalldomains" (lower-case), which goes in a package "com_zimbra_openalldomains.zip" (lower-case). You deploy command looks good except for the path the package, where you have a "capital Com...".

  5. #5
    asacchetto is offline Banned
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    0

    Default

    You were right, the file I downloaded from the wiki is called "Com_zimbra_openalldomains.zip". When I lower-case the name, it was promptly installed to /jetty/webapps/service/zimlet. It also passed the test using http://127.0.0.1:7633/service/proxy?.../www.yahoo.com as your recommended.

    Thanks for your advise,

  6. #6
    asacchetto is offline Banned
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    0

    Default

    Partially solved, now the zimlet is installed, but the problem of the allowed domain still persist.

    It seems yahoo.com was already an allowed domain, the openalldomains zimlet is installed, but I still get a 403 forbidden error when I try to access other domain, like google. Im testing the domain permission using http://127.0.0.1:7633/service/proxy?...www.google.com

    Thanks,

  7. #7
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    OK. Confirm you did a desktop service restart "Control Panel > Admin Tools > Services > Yahoo! Zimbra Desktop Service" and see if that helps?
    Last edited by sposetti; 01-14-2010 at 06:20 AM.

  8. #8
    asacchetto is offline Banned
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    0

    Default

    Confirmed. I also restarted Windows XP to see if that helps. No luck so far. The 403 Forbidden error still persist. The openalldomain zimlet appears now on the panel item.

    Thanks,

  9. #9
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    Let's turn DEBUG logging on for zimlets.

    1. Browse to {zd-install-dir}/config/log4j.properties
    2. Open the file for edit (for example, with notepad.exe).
    3. Add the following line to the bottom of the file:

    log4j.logger.zimbra.zimlet=DEBUG

    4. Save the file.
    5. Restart the Yahoo! Zimbra Desktop service (on Windows)

    Now if you look in the zdesktop log in {zd-install-dir}/log/zdesktop.log, you'll start to see log messages that start with:

    2010-01-14 09:08:18,163 DEBUG [btpool0-2] [] zimlet -....
    2010-01-14 09:09:08,284 INFO [Thread-22] [] zimlet - ....

    When you deploy a zimlet, you'll see:

    2010-01-14 09:12:33,862 INFO [Thread-23] [] zimlet - Deploying Zimlet com_zimbra_openalldomains in LDAP.
    2010-01-14 09:12:33,869 INFO [Thread-23] [] zimlet - Installing Zimlet com_zimbra_openalldomains on this host.
    2010-01-14 09:12:33,924 INFO [Thread-23] [] zimlet - Installing Zimlet config for com_zimbra_openalldomains
    2010-01-14 09:12:33,936 INFO [Thread-23] [] zimlet - Adding Zimlet com_zimbra_openalldomains to COS default
    2010-01-14 09:12:33,951 INFO [Thread-23] [] zimlet - Enabling Zimlet com_zimbra_openalldomains

    When you undeploy a zimlet, you'll see:

    2010-01-14 09:12:55,209 INFO [Thread-24] [] zimlet - Uninstalling Zimlet com_zimbra_openalldomains from LDAP.
    2010-01-14 09:12:55,210 INFO [Thread-24] [] zimlet - Removing Zimlet com_zimbra_openalldomains from COS default

    Since the com_zimbra_openalldomains zimlet is appearing in your panel, and the com_zimbra_openalldomains zimlet directory is being created under the {zd-install-dir}/jetty/webapps/service/zimlet directory, we are fairly confident the zimlet is being deployed. If you want, you can undeploy and re-deploy just to confirm logging is working.

    Now with all that squared away, when you hit the proxy directly for a known working domain (like yahoo.com), you should see the following log output:

    http://127.0.0.1:7633/service/proxy?.../www.yahoo.com

    Log output:

    2010-01-14 09:15:11,105 DEBUG [btpool0-0] [] zimlet - incoming: Host: 127.0.0.1:7633
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20091221 YFF35 Firefox/3.5.7
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - outgoing: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20091221 YFF35 Firefox/3.5.7
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Accept-Language: en-us,en;q=0.5
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Accept-Encoding: gzip,deflate
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Keep-Alive: 300
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Connection: keep-alive
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Cookie: ZM_AUTH_TOKEN=0_a5f1e6a34e08febc9bf9215c8e02b52dbb fb2d11_69643d33363a66666666666666662d666666662d666 666662d666666662d6666666666666666666666663b6578703 d31333a313239353031323438353138313b747970653d363a7 a696d6272613b
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Cache-Control: no-cache
    2010-01-14 09:15:11,106 DEBUG [btpool0-0] [] zimlet - incoming: Pragma: no-cache

    Please confirm all of that is working. When you hit a domain that isn't configured, no log output is created:

    http://127.0.0.1:7633/service/proxy?...www.google.com

  10. #10
    asacchetto is offline Banned
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    0

    Default

    It happens exactly as you described.
    1) I undeployed com_zimlet_openalldomains

    java -cp jetty\lib\log4j-1.2.8.jar;jetty\common\lib\commons-httpclient-3.0.jar;je
    tty\common\lib\mail.jar;jetty\common\lib\commons-logging.jar;jetty\common\lib\co
    mmons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib \dom4j-1.5.jar;jet
    ty\common\lib\zimbracommon.jar;jetty\webapps\servi ce\WEB-INF\lib\zimbrastore.jar
    -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil undeploy c
    om_zimbra_openalldomains

    2) Restarted the service Yahoo! Zimbra Desktop Service
    3) I deployed again com_zimlet_openalldomains

    java -cp jetty\lib\log4j-1.2.8.jar;jetty\common\lib\commons-httpclient-3.0.jar;je
    tty\common\lib\mail.jar;jetty\common\lib\commons-logging.jar;jetty\common\lib\co
    mmons-codec-1.3.jar;jetty\common\lib\json.jar;jetty\common\lib \dom4j-1.5.jar;jet
    ty\common\lib\zimbracommon.jar;jetty\webapps\servi ce\WEB-INF\lib\zimbrastore.jar
    -Dzimbra.config=conf\localconfig.xml com.zimbra.cs.zimlet.ZimletUtil deploy e:\
    com_zimbra_openalldomains.zip

    4) Restarted the service Yahoo! Zimbra Desktop Service
    5) Tried http://127.0.0.1:7633/service/proxy?.../www.yahoo.com

    The page loaded correctly and it was logged.

    6) Tried http://127.0.0.1:7633/service/proxy?...www.google.com

    403 Forbidden. Nothing on the log.

    Here is the log:

    2010-01-14 11:34:16,000 INFO [Thread-20] [] zimlet - Uninstalling Zimlet com_zimbra_openalldomains from LDAP.
    2010-01-14 11:34:16,000 INFO [Thread-20] [] zimlet - Removing Zimlet com_zimbra_openalldomains from COS default
    2010-01-14 11:34:56,968 INFO [Shutdown] [] log - Shutdown hook executing
    2010-01-14 11:34:57,562 INFO [Shutdown] [] log - Shutdown hook complete
    2010-01-14 11:35:04,640 DEBUG [main] [] offline - Loading 6 folder mappings for service 'yahoo.com'
    2010-01-14 11:35:04,640 DEBUG [main] [] offline - Loading 2 attrs for service 'yahoo.com'
    2010-01-14 11:35:04,640 DEBUG [main] [] offline - Loading 19 folder mappings for service 'gmail.com'
    2010-01-14 11:35:04,640 DEBUG [main] [] offline - Loading 2 attrs for service 'gmail.com'
    2010-01-14 11:35:04,640 DEBUG [main] [] offline - Loading 5 folder mappings for service 'aol.com'
    2010-01-14 11:35:04,640 DEBUG [main] [] offline - Loading 8 folder mappings for service '.msexchange'
    2010-01-14 11:35:04,640 DEBUG [main] [] offline - Loading 9 folder mappings for service 'hotmail.com'
    2010-01-14 11:35:07,703 DEBUG [main] [] zimlet - Loading zimlets from E:\Documents and Settings\Agus\Local Settings\Application Data\Zimbra\zdesktop\jetty\webapps\service\zimlet
    2010-01-14 11:35:07,828 INFO [main] [] zimlet - Loaded class com.zimbra.cs.zimlet.handler.NANPHandler
    2010-01-14 11:35:07,859 INFO [main] [] zimlet - Loaded class com.zimbra.cs.zimlet.handler.RegexHandler
    2010-01-14 11:35:09,078 INFO [main] [] log - No Transaction manager found - if your webapp requires one, please configure one.
    2010-01-14 11:35:09,671 INFO [main] [] log - Opened E:\Documents and Settings\Agus\Local Settings\Application Data\Zimbra\zdesktop\jetty\logs\access_log.2010-01-14
    2010-01-14 11:35:09,718 INFO [main] [] log - Started SelectChannelConnector@127.0.0.1:7633
    2010-01-14 11:35:09,906 INFO [service-port-ping] [] offline - service port is ready.
    2010-01-14 11:36:27,953 WARN [btpool0-2] [] system - shared-mime-info file error java.io.FileNotFoundException: E (El sistema no puede hallar el archivo especificado)
    2010-01-14 11:36:27,984 INFO [Thread-18] [] zimlet - Deploying Zimlet com_zimbra_openalldomains in LDAP.
    2010-01-14 11:36:28,031 INFO [Thread-18] [] zimlet - Installing Zimlet com_zimbra_openalldomains on this host.
    2010-01-14 11:36:28,078 INFO [Thread-18] [] zimlet - Installing Zimlet config for com_zimbra_openalldomains
    2010-01-14 11:36:28,093 INFO [Thread-18] [] zimlet - Adding Zimlet com_zimbra_openalldomains to COS default
    2010-01-14 11:36:28,140 INFO [Thread-18] [] zimlet - Enabling Zimlet com_zimbra_openalldomains
    2010-01-14 11:38:04,859 INFO [Shutdown] [] log - Shutdown hook executing
    2010-01-14 11:38:05,390 INFO [Shutdown] [] log - Shutdown hook complete
    2010-01-14 11:38:12,109 DEBUG [main] [] offline - Loading 6 folder mappings for service 'yahoo.com'
    2010-01-14 11:38:12,109 DEBUG [main] [] offline - Loading 2 attrs for service 'yahoo.com'
    2010-01-14 11:38:12,109 DEBUG [main] [] offline - Loading 19 folder mappings for service 'gmail.com'
    2010-01-14 11:38:12,109 DEBUG [main] [] offline - Loading 2 attrs for service 'gmail.com'
    2010-01-14 11:38:12,109 DEBUG [main] [] offline - Loading 5 folder mappings for service 'aol.com'
    2010-01-14 11:38:12,109 DEBUG [main] [] offline - Loading 8 folder mappings for service '.msexchange'
    2010-01-14 11:38:12,109 DEBUG [main] [] offline - Loading 9 folder mappings for service 'hotmail.com'
    2010-01-14 11:38:14,265 DEBUG [main] [] zimlet - Loading zimlets from E:\Documents and Settings\Agus\Local Settings\Application Data\Zimbra\zdesktop\jetty\webapps\service\zimlet
    2010-01-14 11:38:14,359 INFO [main] [] zimlet - Loaded class com.zimbra.cs.zimlet.handler.NANPHandler
    2010-01-14 11:38:14,375 INFO [main] [] zimlet - Loaded class com.zimbra.cs.zimlet.handler.RegexHandler
    2010-01-14 11:38:15,421 INFO [main] [] log - No Transaction manager found - if your webapp requires one, please configure one.
    2010-01-14 11:38:15,906 INFO [main] [] log - Opened E:\Documents and Settings\Agus\Local Settings\Application Data\Zimbra\zdesktop\jetty\logs\access_log.2010-01-14
    2010-01-14 11:38:15,937 INFO [main] [] log - Started SelectChannelConnector@127.0.0.1:7633
    2010-01-14 11:38:16,140 INFO [service-port-ping] [] offline - service port is ready.
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Host: 127.0.0.1:7633
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - outgoing: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Accept-Language: es-ar,es;q=0.8,en-us;q=0.5,en;q=0.3
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Accept-Encoding: gzip,deflate
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Keep-Alive: 300
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Connection: keep-alive
    2010-01-14 11:39:04,421 DEBUG [btpool0-1] [] zimlet - incoming: Cookie: ZM_AUTH_TOKEN=0_3891b1dfd7a52142494aa6efd18b6a292e 5cbdf3_69643d33363a66666666666666662d666666662d666 666662d666666662d6666666666666666666666663b6578703 d31333a313239353031343436383030303b747970653d363a7 a696d6272613b

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  2. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 09:56 PM
  3. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 AM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  5. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 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
  •