Hi

I'm trying to use a jndi datasource in a web service that runs in axis2
under tomcat. Here in my configuration of the context element inside
<TOMCAT_HOME>/conf/server.xml

 <Context path="/axis2" docbase="axis2" reloadable="true"
crossContext="true"  cachingAllowed="false">

        <Resource name="jdbc/workflowdb" auth="Container"
type="javax.sql.DataSource"
                  maxActive="5" maxIdle="2" maxWait="1000"
removeAbandoned="true"  removeAbandonedTimeout="60"
                  username="user" password="password"
driverClassName="org.postgresql.Driver"
                  url="jdbc:postgresql://hostname/Workflows" />

</Context>

I've got the same for a web app, just path and docbase attribute is
different for a web app, and this works fine, so but when I call the web
service I get this response


A connection could not be obtained for driver class "javax.sql.DataSource"
and URL "null".  You may have specified an invalid URL.

So I guess the web service or axis servlet does not see the configuration,

Any tips how to solve this??

Håkon

-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Reply via email to