You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Matt Spurlin <ma...@appcore.com> on 2014/01/28 17:58:43 UTC
Plugin Architecture
I am new to CloudStack development. I have been looking at the plugin architecture and trying to follow the guide athttps://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+Development I am getting a response of "{ "errorresponse" : {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The given command does not exist or it is not available for user"} }". It doesn't look like it is even hitting my code in the api directory. What files need to be changed to make CloudStack aware of my new API plugin? Is it just commands.properties.in and /client/pom.xml?
Re: Plugin Architecture
Posted by Ian Duffy <ia...@ianduffy.ie>.
Hi Matt,
Within client/pom.xml you'll have to add a dependency for your plugin:
example:
<dependency>
<groupId>org.apache.cloudstack</groupId>
<artifactId>cloud-plugin-api-helloworld</artifactId>
<version>${project.version}</version>
</dependency>
You will also need to edit client/tomcatconf/applicationContext.xml.in
example:
<bean id="helloWorldImpl"
class="org.apache.cloudstack.helloworld.HelloWorldImpl"/>
and lastly we need to list all the newly added commands and who can access
them client/tomcatconf/commands.properties.in
example:
helloWorld=8
Have a PDF of notes from my adventures doing it before:
http://ianduffy.ie/cloudstack/CreatingAPlugin.pdf
Hope this helps!
Ian
On 28 January 2014 16:58, Matt Spurlin <ma...@appcore.com> wrote:
> I am new to CloudStack development. I have been looking at the plugin
> architecture and trying to follow the guide athttps://
> cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+DevelopmentI am getting a response of "{ "errorresponse" :
> {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The given
> command does not exist or it is not available for user"} }". It doesn't
> look like it is even hitting my code in the api directory. What files need
> to be changed to make CloudStack aware of my new API plugin? Is it just
> commands.properties.in and /client/pom.xml?