Hi,

I've written my own implementation
of org.apache.ftpserver.ftplet.UserManager and I'm having trouble
configuring my server to use it.

The documentation says only:
"In your configuration file, you will have to use the Spring bean element to
configure your custom user manager."

The ftpserver XSD includes:
<!-- Extension element used for defining a custom user manager -->
        <xs:element name="user-manager" type="spring-bean-or-ref" />

So (and please excuse my XML naivete) I tried:
  <bean id="userManager" class="org.myorg.MyUserManager">
  </bean>
  <server xmlns="http://mina.apache.org/ftpserver/spring/v1";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://mina.apache.org/ftpserver/spring/v1
http://mina.apache.org/ftpserver/ftpserver-1.0.xsd";
  id="server" max-logins="500" anon-enabled="false">
    ....
    <user-manager ref="userManager" />
  </server>

This gives me the error:
Attribute 'ref' is not allowed to appear in element 'user-manager'

What should I have done?
Any nudges about how to interpret the XSD are also welcome.

Thanks,
John

-- 
"There is no way to peace; peace is the way"

Reply via email to