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

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

    Proway

      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"

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

             xmlns:util="http://www.springframework.org/schema/util"

             xsi:schemaLocation="

              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"

                  class="com.x.jive.XXPlugin">

          </bean>

       

      </beans>

       

      Here the plugin.xml:

       

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

          xsi:noNamespaceSchemaLocation="http://www.jivesoftware.com/schemas/clearspace/2_5/plugin.xsd">

          <name>XX</name>

          <description>XXPlugin</description>

          <author>Nobody</author>

          <version>1.0.0</version>

          <minServerVersion>4.5.0</minServerVersion>

          <class>com.x.jive.XXPlugin</class>

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

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

      </plugin>

       

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

       

      C:.

      +---classes

      ¦   +---com

      ¦       +---x

      ¦           +---jive

      ¦               +---widget

      +---META-INF

      +---resources

          +---images

          +---script

          +---styles

          +---templates   

         

      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?