I have issues with installing a custom module (MyJBoss) on client
nodes. It looks like some files are missing and the procedure is
buggy.
In short I followed the example on developing on a new Type with the
Graphical Type Editor provided here
http://doc36.controltier.org/wiki/Graphical_type_editor
1) The Install fails due to a missing file on the client node. See
File IO error below.
=======================================================================
[root@ctier-server ~]# ctl -p E4-QA -I tags=q02 -m Managed-Entity -c
Install-Module -- -module MyJBoss
bash: ctl: command not found
Error: Remote command failed with exit status 127
[root@ctier-server ~]# ctl -p E4-QA -I tags=q02 -m Managed-Entity -c
Install-Module -- -module MyJBoss
[root@node01 E4-QA.Module Install-Module][INFO] Getting:
http://ctier-server:7080/jackrabbit/repository/controltier/projects/E4-QA/artifacts/modules/MyJBoss-head.jar
[root@node01 E4-QA.Module Install-Module][INFO] To: /opt/software/
ctier/ctl/projects/E4-QA/artifacts/modules/MyJBoss-head.jar
[root@node01 E4-QA.Module Install-Module][INFO] Created dir: /opt/
software/ctier/ctl/projects/E4-QA/modules/MyJBoss
[root@node01 E4-QA.Module Install-Module][INFO] Expanding: /opt/
software/ctier/ctl/projects/E4-QA/artifacts/modules/MyJBoss-head.jar
into /opt/software/ctier/ctl/projects/E4-QA/modules/MyJBoss
Error: The following error occurred while executing this line:
/opt/software/ctier/ctl/modules/Module/commands/Install-Module.xml:
128: java.io.FileNotFoundException: /opt/software/ctier/ctl/modules/
MyJBoss/module.properties (No such file or directory)
Error: Remote command failed with exit status 1
2. I had to manually install the missing module.properties file by
downloading it from the server repository
After which the command above works fine.
3. However the attempt to execute a command in the custom module fails
due to the following error:
[root@ctier-server ~]# ctl -p E4-QA -I tags=q02 -m MyJBoss -c
controlE4 -- -cmd status
Error: The following error occurred while executing this line:
/opt/software/ctier/ctl/projects/E4-QA/modules/MyJBoss/lib/command.xml:
10: "${entity.attribute.mgmtStrategy}" management strategy is not
supported: cannot load /opt/software/ctier/ctl/projects/E4-QA/modules/
MyJBoss/lib/strategies/${entity.attribute.mgmtStrategy}.xml.
Error: Remote command failed with exit status 1
If I edit the following file and remove the file check mentioned in
the error, the command could be executed successfully.
/opt/software/ctier/ctl/projects/E4-QA/modules/MyJBoss/lib/command.xml
<condition>
<not>
<available file="${module.dir}/lib/strategies/$
{entity.attribute.mgmtStrategy}.xml"/>
</not>
</condition>
</fail>
Unfortunately I couldn't come up with any explanation for these weird
errors. I am using no-standard port (7080) for ControlTier and
version CTL version 3.6.1 (20110924). The non-standard port has been
source of issues in the past.
Why are these files missing?
Thanks,
Dimitar