Note that there are some explanatory texts on larger screens.

plurals
  1. POWSO2 Carbon 4.x JNDI Tomcat
    primarykey
    data
    text
    <p>WSO2 Registry 4.5.x based on Carbon 4.x plattform allows to deploy WARs. For configuration of resources I want to use JNDI.</p> <p>As described here, I try to configure JNDI resources: <a href="http://kishanthan.wordpress.com/2012/05/31/how-to-register-jndi-resources-for-webapps-in-wso2-application-server/" rel="nofollow">http://kishanthan.wordpress.com/2012/05/31/how-to-register-jndi-resources-for-webapps-in-wso2-application-server/</a></p> <p>1) WEB-INF/web.xml</p> <pre><code>&lt;resource-ref&gt; &lt;res-ref-name&gt;url/ZoneConfiguration&lt;/res-ref-name&gt; &lt;res-type&gt;java.net.URL&lt;/res-type&gt; &lt;res-auth&gt;Container&lt;/res-auth&gt; &lt;/resource-ref&gt; </code></pre> <p>2) META-INF/context.xml</p> <pre><code>&lt;Context debug="5" reloadable="true" crossContext="true"&gt; &lt;ResourceLink name="url/ZoneConfiguration" global="url/ZoneConfiguration" type="java.net.URL"/&gt; &lt;/Context&gt; </code></pre> <p>3) $CARBON_HOME/repository/conf/tomcat/catalina-server.xml:</p> <pre><code> &lt;GlobalNamingResources&gt; &lt;Resource name="url/ZoneConfiguration" factory="org.jee.jndi.URLResourceFactory" type="java.net.URL" url="file:///temp/local.zone.properties"/&gt; &lt;/GlobalNamingResources&gt; </code></pre> <p>(about factory: see here <a href="http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories" rel="nofollow">http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories</a>) The library with URLResourceFactory is deployed in $CARBON_HOME/lib/endorsed</p> <p>This configuration works in a Tomcat 7.x but not in the WSO2 Tomcat. I am inclined to file an issue. Or am I lacking anything WSO2 specific?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload