Hi Patrick,

The reason to this is that the Registry Kernel not being able to find this
class in its classpath. Can you try making your jar an OSGi bundle which is
a fragment of the org.wso2.carbon.registry.core? You can follow the model in
the handler sample found in the samples directory in your distribution.

Thanks,
Senaka.

On Thu, Dec 3, 2009 at 4:36 PM, Patrick Roekaerts <
[email protected]> wrote:

> Hello the list,
>
> Probably an easy question but ... still several hours trying to deploy my
> Handler without results ...
>
> Here is what I performed :
>     I would like to make a handler and deploy it on the standard Governance
> distribution. This handler should be started when creating a new service.
>
> I see that there already exists an handler for service
> (ServiceMediaTypeHandler). Then I am creating a class extending this handler
> (ServiceCreationHandler) and setting this class in the registry.xml
> replacing the existing declaration.
>
> Class is very basic :
>
> public class ServiceCreationHandler extends ServiceMediaTypeHandler {
>     private static final Log log =
> LogFactory.getLog(ServiceCreationHandler.class);
>
>     public void put(RequestContext requestContext) throws RegistryException
> {
>         String path = requestContext.getResourcePath().getPath();
>         Resource resource =     requestContext.getResource();
>         requestContext.getRepository().put(path, resource);
>         requestContext.getRegistry().applyTag(path, "picture");
>         log.info("JPG image is added to the path " + path);
>         requestContext.setProcessingComplete(true);
>         super.put(requestContext);
>     }
>
> I export (using Eclipse) the classe creating a jar and copy the jar in
> directory : CARBON_HOME/repository/components/dropins but I got the
> following error :
>
> *[2009-12-03 11:53:56,200] ERROR -  Could not find the handler class
> be.xxx.wso2.governance.handler.ServiceCreationHandler. This handler will not
> be registered. All handler and filter classes should be in the class path of
> the Registry.
> java.lang.ClassNotFoundException:
> be.xxx.wso2.governance.handler.ServiceCreati
> onHandler
> *
> I tried to deploy the jar in several other places without success...
> (extensions/plugins directory + WEBAPS/ROOT/WEB-INF/classes, ...)
>
> Anyone can help? What is the exact location of the registry classpath ?
>
> Note : using Governance 3.0.2
>
> thanks in advance,
>
> Patrick
>
>
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Senaka Fernando
Software Engineer
WSO2 Inc.
E-mail: [email protected];  Mobile: +94 77 322 1818

http://www.wso2.com/ - "The Open Source SOA Company"
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to