[ 
https://issues.apache.org/jira/browse/SMX4-1665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864134#comment-13864134
 ] 

Ioan Eugen Stan commented on SMX4-1665:
---------------------------------------

You need to make tomcat delegate the class loading to OSGi so the example code 
should look like this: 

            Context appContext = tomcat.addContext("", 
baseDir.getCanonicalPath());
            // delegate to OSGi Class Loader
            LOG.info("Delegate to OSGi class loader");
            Loader loader = new WebappLoader(getClass().getClassLoader());
            loader.setDelegate(true);

            appContext.setLoader(loader);

If I have some time, I'll write an article and post the link to it. 

Cheers, 

> tomcat7-embed
> -------------
>
>                 Key: SMX4-1665
>                 URL: https://issues.apache.org/jira/browse/SMX4-1665
>             Project: ServiceMix 4
>          Issue Type: Wish
>          Components: Bundles
>            Reporter: Ioan Eugen Stan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Trivial
>             Fix For: bundles-2014.01
>
>         Attachments: EmbeddedTomcatWebdav.java, tomcat7.patch
>
>
> Added bundle packaging for tomcat-embed-core and tomcat-embed-logging-juli 
> components version 7.0.47



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to