1 Reply Latest reply on Aug 16, 2011 1:18 AM by Proway

    Unknown error: Exactly one plugin of class XXPlugin must be specified in spring.xml


      I am getting the following error when deploying my plugin on Jive SBS, Evaluation Edition on Windows XP 32 (3 GB RAM, Tomcat 6):


      "The following plugins could not be loaded:

      XXPlugin - Unknown error: Exactly one plugin of class com.x.jive.XXPlugin must be specified in spring.xml"


      I found this thread here which suggests fixing the spelling (since only lower case characters are allowed as a bean ID):

      https://community.jivesoftware.com/thread/46014. I have done that, howerver, the error still exists.    


      Here the spring.xml:


      <?xml version="1.0" encoding="UTF-8"?>

      <beans xmlns="http://www.springframework.org/schema/beans"




              http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd

              http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"

             default-autowire="no" default-init-method="init" default-destroy-method="destroy">


          <bean     id="xx_plugin"






      Here the plugin.xml:


      <plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"








          <!-- Defines a custom widget for this plugin -->

          <widget class="com.x.jive.widget.XXWidget"/>



      Here my directory tree structure of the unzipped jar file (that was uploaded as plugin):




      ¦   +---com

      ¦       +---x

      ¦           +---jive

      ¦               +---widget








      with the XXPlugin class stored under classes/com/x/jive and XXWidget class stored under classes/com/x/jive/widget.


      Any ideas what is going on here?