版本AEM 6.3,这是我的本地实例。
每次我进入AEM在本地安装软件包时都说exec.json丢失了,我发现了一个手动替代此问题的方法,但是集成软件包的时间却翻了一倍。
错误
创建程序包
Failed to load resource: the server responded with a status of 404 (Not Found)
service/exec.json?cmd=create:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Dialog.js:191 Uncaught TypeError: Cannot read property 'msg' of undefined
at constructor.CRX.ide.Dialog.DEFAULT_ERROR_HANDLER (Dialog.js:191)
at Object.callback (ext-base-debug.js:1443)
at Ext.form.BasicForm.afterAction (ext-all-debug.js:56465)
at Ext.form.Action.Submit.failure (ext-all-debug.js:58865)
at Ext.data.Connection.handleFailure (ext-all-debug.js:8564)
at handleTransactionResponse (ext-base-debug.js:2517)
at ext-base-debug.js:2552
安装软件包
ext-all-debug.js:8665 POST http://localhost:4502/crx/packmgr/service/exec.json?cmd=upload&jsonInTextarea=true 404 (Not Found)
doFormUpload @ ext-all-debug.js:8665
request @ ext-all-debug.js:8853
(anonymous) @ ext-base-debug.js:751
run @ ext-all-debug.js:59008
(anonymous) @ ext-base-debug.js:831
setTimeout (async)
defer @ ext-base-debug.js:864
doAction @ ext-all-debug.js:56328
submit @ ext-all-debug.js:56384
doSubmit @ UploadPackageDialog.js:56
submit @ Dialog.js:128
onClick @ ext-all-debug.js:41008
h @ ext-all-debug.js:2463
VM420:2 Uncaught SyntaxError: Unexpected token <
at doDecode (ext-all-debug.js:11527)
at Object.decode (ext-all-debug.js:11649)
at Ext.form.Action.Submit.handleResponse (ext-all-debug.js:59055)
at Ext.form.Action.Submit.processResponse (ext-all-debug.js:58876)
at Ext.form.Action.Submit.success (ext-all-debug.js:59024)
at runCallback (ext-all-debug.js:8652)
at Ext.data.Connection.cb (ext-all-debug.js:8656)
at HTMLIFrameElement.h (ext-all-debug.js:2463)
答案 0 :(得分:0)
您可以尝试从console/bundles
安装它吗?
答案 1 :(得分:0)
我通过找到一个旧博客来解决了这个问题:https://aemgeeks.wordpress.com/2017/08/25/install-crx-packages-bundles-automatically-on-server-startup/
步骤
在crx-quickstart文件夹的根目录下创建一个install
文件夹。
将要安装的软件包放在install
文件夹中。