Hi all, In current product-as SNAPSHOT (available at [1]), when a lookup for JNDI (defined in the webapp itself [2]) is performed, it throws an exception [3]. The sample application works in tomcat.
This issue occurred after the change mentioned in JIRA [4] was done. Previously when the CarbonJavaURLFactory (extension of javaURLContextFactory) returns SelectorContext for a lookup from webapps, it returns a "Read-Only" context, this was changed to "Read-Write" by changing the boolean value in [1] to true. [1] - https://github.com/wso2/product-as [2] - https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/common-artifacts/tomcat-jndi-resource-lookup/src/main/java/org/wso2/appserver/foo/jndi/TomcatDataSourceLookupServlet.java#L46 [3] - https://wso2.org/jira/browse/WSAS-2008 [4] - https://wso2.org/jira/browse/CARBON-15274 [5] - https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.tomcat/src/main/java/org/wso2/carbon/tomcat/jndi/CarbonJavaURLContextFactory.java#L41 Regards, Nira -- *Niranjan Karunanandham* Senior Software Engineer - WSO2 Inc. WSO2 Inc.: http://www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
