Hi Sagara,

      <JarScanner className="org.wso2.carbon.tomcat.ext.scan.
CarbonTomcatJarScanner"/>

I think this is the same fix I did for websocket improvement. But I did in
code level.
+            ctx.setJarScanner(new CarbonTomcatJarScanner());


If your change works we would not put my change in. Much simpler.

thanks,

On Fri, Mar 14, 2014 at 3:36 PM, Sagara Gunathunga (JIRA) <[email protected]>wrote:

>        Sagara 
> Gunathunga<https://wso2.org/jira/secure/ViewProfile.jspa?name=sagara%40wso2.com>commented
>  on [image:
> Improvement] WSAS-1688 <https://wso2.org/jira/browse/WSAS-1688>
>  *Use Apache Taglibs instead of Glassfish Taglibs framework 
> *<https://wso2.org/jira/browse/WSAS-1688>
>        In addition to above change it's required to set
> "CarbonTomcatJarScanner" as the JarScanner [1] in the server level
> contenxt.xml file in order to load TLDs and other resources from OSGi
> bundles, default StandardJarScanner does not work on OSGi environments.
>
>
>       <JarScanner
> className="org.wso2.carbon.tomcat.ext.scan.CarbonTomcatJarScanner"/>
>
> REF - CarbonTomcatJarScanner
>  Problem description : According the servlet 3.0 spec, tldScanner classes
> are picked up during web-app load phase from the classPath using SPI
> mechanism. Normal sequence is to scan;
>   - WEB-INF/lib
>   - parent URL classPath
>   However with the BundleClassLoader being the parent classLoader of
> Tomcat web-app classLoder, it fails to pick up TLD scanner references
> reside in plugins directory.
>
>   Contribution of this class : Tomcat allows a standard extension called
> JarScanner in its context.xml. This
>   implementation extends the StandardJarScanner and add/forcefully-process
> plugins dir during the
>
>   Configuration : add this implementation class to root Context.xml of the
> tomcat servlet container.
>
> TODO - How this work on Tomcat CRE ?
>
> [1] -
> http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/JarScanner.html
> [2] -
> https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/util/scan/StandardJarScanner.html
> [3] - http://tomcat.apache.org/tomcat-7.0-doc/config/jar-scanner.html
>         This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
> _______________________________________________
> Carbon-jira mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: [email protected] <[email protected]>
mobile: +94 (0)71 56 91 321
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to