Running Custom Deployer from Eclipse

橙三吉。 提交于 2019-12-12 09:37:37

问题


I've gone through Jaime's deployer tutorial.

I've successfully created my deployer extension, which when integrating with SDL Tridion, the functionality works exactly as required.

But, what i can't get to work is the local debugging / running with the deployer inside eclipse (documented here)

The eclipse based deployer does run. If I drop my zip file into my test incoming folder the zip is picked up and processed. However, the customdeployer code I have written is never entered or executed.

I don't get any errors in the 'eclipse' deployer logs, but it always stops on the following line:

2012-04-13 20:24:51,642 DEBUG QueueLocationHandler - Removing exclusive lock on Deployment package: tcm:0-1026-66560 with type: CONTENT.

As we've three developers here also stuck on the same problem on all their machines I was wondering (hoping!) that this was a common problem and someone knew what we're doing wrong.

Thanks


回答1:


Can you check which cd_deployer_conf.xml is it loaded by the Deployer? Just check the Deployer startup logs (in debug mode).

I suspect your Eclipse project at Debug/Run time doesn't load the the cd_*_config.xml files from the config folder in Eclipse. This will prevent your deployer module (which I supposed you configured in your cd_deployer_conf.xml) from being loaded and called.

What I normally do is to declare this config folder as an Eclipse Source Folder. Then at Debug/Run time, Eclipse will be included in the classpath automatically. This makes point #8 from http://www.sdltridionworld.com/articles/sdltridion2011/tutorials/Deployer_Extensions_With_Eclipse_3.aspx redundant.




回答2:


I ran into exactly the same problem after following the same deployer extension tutorial.

I managed to solve it by changing the name of the package that my module was in to be com.tridion.deployer.extensions

Previously my module had been in a package I had named com.yourcompany.tridion.deployer.extensions and this appeared to have the affect of preventing the deployer from loading my extension module.




回答3:


I had this issue, with a slight variation in that originally it worked, but then it stopped working. Turns out the deployment package was somehow getting corrupted(locked?) in the process, as when i tried with a backup of the deployment package from the previous day it worked just fine.



来源:https://stackoverflow.com/questions/10146490/running-custom-deployer-from-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!