After migrating from axis2 1.4.x to axis2 1.5.1 the jndi lookup fails.
The data sources are configured with CATALINA_HOME/conf/context.xml and
run with axis2 1.4.x. Now, with axis2 1.5.1 (also tried 1.5.6) the jndi
lookup fails:

Name java:comp is not bound in this Context

 

CATALINA_HOME/conf/context.xml:

...

<Resource name="jdbc/MyDB" auth="Container"

          type="javax.sql.DataSource" 

          driverClassName="oracle.jdbc.OracleDriver"

          ...

> 

 

We are using this jndi url: java:comp/env/jdbc/MyDB

 

The access path is tomcat->axis2->axis2-service->spring->hibernate, but
also tomcat->axis2->axis2-service fails using direct jndi lookup:

 

InitialContext ic = new ...;

ic.lookup("java:comp/env/jdbc/MyDB"); // fails

ic.lookup("java:comp/env"); // fails

ic.lookup("java:comp"); // fails

 

Very curious: it seems to be a windows problem only. Running the same
tomcat-/axis installation under unix has no problem. (directly copied
system from unix).

 

Setting parameter ServiceTCCL to composite (axis2.xml) has no effect.

 

Any idea what's wrong?

 

Regards,

markus

 

Reply via email to