AnsweredAssumed Answered

Command Processors

Question asked by anfy2002us on Dec 15, 2006
Latest reply on Dec 18, 2006 by anfy2002us
I use custom class that implements org.alfresco.web.app.servlet.command.CommandProcessor, i wrote validateArguments method that returns true and I added in the web-client-config.xml the command-processor, then i put the jar with the my class in the lib directory, that's ok, but when i tried to call the servlet
with http://localhost:8080/alfresco/command/rade/command where rade is the name of the command-processor it throws an exception

org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: custom.Hello.validateArguments(Lorg/alfresco/service/ServiceRegistry;Ljava/lang/String;[Ljava/lang/String;)Z
   org.alfresco.web.app.servlet.CommandServlet.doGet(CommandServlet.java:164)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I think that i don't do something right, can you tell me my mistake.

Thanks

Outcomes