axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Marra <mma...@citiwestinc.com>
Subject RE: DBCP in Axis2
Date Wed, 23 Jan 2008 19:17:46 GMT
Here is my context.xml

 

<Context path="/axis2">

<Resource name="jdbc/testDB" 

auth="Container" type="javax.sql.DataSource"

            maxActive="100" 

maxIdle="30" maxWait="10000"

            username="user" 

password="pwd"

driverClassName="com.mysql.jdbc.Driver"

            url="jdbc:mysql://localhost:3306/test?autoReconnect=true"

            validationQuery="select 1"/>

</Context>

  _____  

From: Afkham Azeez [mailto:afkham@gmail.com] 
Sent: Wednesday, January 23, 2008 2:10 PM
To: axis-dev@ws.apache.org
Subject: Re: DBCP in Axis2

 

Can you post the context.xml file? 

Azeez

On Jan 23, 2008 10:02 PM, Maurizio Marra <mmarra@citiwestinc.com> wrote:

Hi azeez,

Yes I've already put the <resource-ref> element to axis2/WEB-INF/web.xml.

I think that the context.xml file is not loaded and I don't know why.

 

Do you know some articles or docs?

 

  _____  

From: Afkham Azeez [mailto:afkham@gmail.com] 
Sent: Wednesday, January 23, 2008 11:20 AM
To: axis-dev@ws.apache.org
Subject: Re: DBCP in Axis2

 

Did you try putting it in the web.xml file? We have successfully done this.
See the end of
https://wso2.org/repos/wso2/trunk/wsas/java/modules/core/conf/web.xml

HTH
Azeez

On Jan 23, 2008 9:24 PM, Maurizio Marra <mmarra@citiwestinc.com> wrote:

Hi,

 

I'm trying to set up a connection pooling for axis2 1.3 running as a web
application in Tomcat 6.0 service.

 

I've added a <resource-ref> element to axis2/WEB-INF/web.xml

I've put a context.xml in axis2/META-INF/context.xml

I've have a suitable driver in Tomcat 6.0\lib

 

Calling my web service I get this error: Cannot create JDBC driver of class
'' for connect URL 'null'

 

So it seems that the context.xml is not being loaded.

 

I've already setup successfully connection pooling in other web applications
using the same steps above.

 

I'm looking for an advice or some docs.

 

Thanks in advance




-- 
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760 




-- 
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760 


Mime
View raw message