<div id="_htmlarea_default_style_" style="font:10pt arial,helvetica,sans-serif">Hello everyone,&nbsp;<br>
&nbsp;<br>
I have configured  a mysql datasource on wesip's server.xml, &nbsp;<br>
copied the file mysql-connector-java-5.1.7-bin.jar under ${WESIP_HOME}/lib, &nbsp;<br>
restarted wesip but I always obtain the following exception running the Apache example for testing the connection
pool&nbsp;<br>
&nbsp;<br>
EXCEPTION:&nbsp;<br>
-----------------------------------------------------------------------------------------------------------&nbsp;<br>
&nbsp;<br>
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'&nbsp;<br>
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)&nbsp;<br>
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)&nbsp;<br>
        at foo.DBTest.init(DBTest.java:23)&nbsp;<br>
        at org.apache.jsp.index$jsp._jspService(index$jsp.java:60)&nbsp;<br>
        at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)&nbsp;<br>
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&nbsp;<br>
        at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)&nbsp;<br>
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)&nbsp;<br>
        at org.apache.jasper.servlet.JspServlet.service(Unknown Source)&nbsp;<br>
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&nbsp;<br>
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)&nbsp;<br>
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)&nbsp;<br>
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:206)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)&nbsp;<br>
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)&nbsp;<br>
        at com.voztele.sipservlet.valves.ConvergedContextValve.invokeHTTP(ConvergedContextValve.java:144)&nbsp;<br>
        at com.voztele.sipservlet.valves.ConvergedContextValve.invoke(ConvergedContextValve.java:64)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)&nbsp;<br>
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)&nbsp;<br>
        at org.apache.catalina.core.StandardHttpContext.invoke(StandardHttpContext.java:2377)&nbsp;<br>
        at com.voztele.sipservlet.core.ConvergedContext.invoke(ConvergedContext.java:98)&nbsp;<br>
        at com.voztele.sipservlet.valves.ConvergedHostValve.invokeHTTP(ConvergedHostValve.java:337)&nbsp;<br>
        at com.voztele.sipservlet.valves.ConvergedHostValve.invoke(ConvergedHostValve.java:98)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)&nbsp;<br>
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:124)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)&nbsp;<br>
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)&nbsp;<br>
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)&nbsp;<br>
        at com.voztele.sipservlet.valves.ConvergedEngineValve.invoke(ConvergedEngineValve.java:98)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)&nbsp;<br>
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)&nbsp;<br>
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)&nbsp;<br>
        at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:994)&nbsp;<br>
        at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1105)&nbsp;<br>
        at java.lang.Thread.run(Thread.java:595)&nbsp;<br>
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver&nbsp;<br>
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)&nbsp;<br>
        at java.security.AccessController.doPrivileged(Native Method)&nbsp;<br>
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)&nbsp;<br>
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)&nbsp;<br>
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)&nbsp;<br>
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)&nbsp;<br>
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)&nbsp;<br>
        at java.lang.Class.forName0(Native Method)&nbsp;<br>
        at java.lang.Class.forName(Class.java:164)&nbsp;<br>
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760)&nbsp;<br>
        ... 38 more&nbsp;<br>
&nbsp;<br>
-----------------------------------------------------------------------------------------------------------&nbsp;<br>
&nbsp;<br>
Follows the server.xml:&nbsp;<br>
-----------------------------------------------------------------------------------------------------------&nbsp;<br>
- &lt;Server port="5005" shutdown="SHUTDOWN" debug="1"&gt;&nbsp;<br>
- &lt;Service name="WeSIP-Standalone"&gt;&nbsp;<br>
&lt;Connector
className="org.apache.catalina.connector.http.HttpConnector"
port="5075" minProcessors="5" maxProcessors="75" enableLookups="true"
acceptCount="10" debug="1" /&gt; &nbsp;<br>
- &lt;Connector
className="com.voztele.sipservlet.connector.SipConnector"
minProcessors="5" maxProcessors="75" enableLookups="true"
acceptCount="10" debug="1" addresses="10.107.109.108:5060"
pathName="com.voztele" protocol="udp"&gt;&nbsp;<br>
- &lt;ExtraProperties&gt;&nbsp;<br>
  &lt;Property key="com.voztele.javax.sip.SER_ADDRESS" value="10.107.109.108" /&gt; &nbsp;<br>
  &lt;Property key="com.voztele.javax.sip.SER_PORT" value="5080" /&gt; &nbsp;<br>
  &lt;Property key="com.voztele.STATISTICS" value="false" /&gt; &nbsp;<br>
  &lt;Property key="javax.sip.STACK_NAME" value="shootist" /&gt; &nbsp;<br>
  &lt;Property key="javax.sip.THREAD_POOL_SIZE" value="100" /&gt; &nbsp;<br>
  &lt;Property key="com.voztele.javax.sip.THREAD_POOL_SIZE" value="100" /&gt; &nbsp;<br>
  &lt;Property key="com.voztele.javax.sip.REENTRANT_LISTENER" value="true" /&gt; &nbsp;<br>
  &lt;Property key="javax.sip.AUTOMATIC_DIALOG_SUPPORT" value="false" /&gt; &nbsp;<br>
  &lt;Property key="com.voztele.javax.sip.TRACE_LEVEL" value="0" /&gt; &nbsp;<br>
  &lt;/ExtraProperties&gt;&nbsp;<br>
  &lt;/Connector&gt;&nbsp;<br>
- &lt;Engine name="Standalone" defaultHost="10.107.109.108" debug="1"
className="com.voztele.sipservlet.core.ConvergedEngine"&gt;&nbsp;<br>
  &lt;Mapper className="org.apache.catalina.core.StandardEngineMapper" protocol="HTTP/1.1" /&gt;
&nbsp;<br>
  &lt;Mapper className="org.apache.catalina.core.StandardEngineMapper" protocol="HTTP/1.0" /&gt;
&nbsp;<br>
  &lt;Mapper className="com.voztele.sipservlet.core.EngineSipMapper" protocol="SIP/2.0" /&gt;
&nbsp;<br>
  &lt;Logger className="org.apache.catalina.logger.FileLogger" timestamp="true" /&gt; &nbsp;<br>
  &lt;Realm className="org.apache.catalina.realm.MemoryRealm" /&gt; &nbsp;<br>
- &lt;Host name="10.107.109.108" nameSip="10.107.109.108_5060"
debug="1" appBase="wesipapps" unpackWARs="true" autoDeploy="true"
className="com.voztele.sipservlet.core.ConvergedHost" port="5060"&gt;&nbsp;<br>
  &lt;Logger className="org.apache.catalina.logger.FileLogger" timestamp="true" /&gt; &nbsp;<br>
  &lt;Mapper className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/2.0" /&gt;
&nbsp;<br>
  &lt;Mapper className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/1.1" /&gt;
&nbsp;<br>
  &lt;Mapper className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/1.0" /&gt;
&nbsp;<br>
- &lt;DefaultContext useNaming="true" reloadable="true"&gt;&nbsp;<br>
  &lt;Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" /&gt; &nbsp;<br>
- &lt;ResourceParams name="jdbc/TestDB"&gt;&nbsp;<br>
- &lt;parameter&gt;&nbsp;<br>
  &lt;name&gt;username&lt;/name&gt; &nbsp;<br>
  &lt;value&gt;javauser&lt;/value&gt; &nbsp;<br>
  &lt;/parameter&gt;&nbsp;<br>
- &lt;parameter&gt;&nbsp;<br>
  &lt;name&gt;password&lt;/name&gt; &nbsp;<br>
  &lt;value&gt;javauser&lt;/value&gt; &nbsp;<br>
  &lt;/parameter&gt;&nbsp;<br>
- &lt;parameter&gt;&nbsp;<br>
  &lt;name&gt;driverClassName&lt;/name&gt; &nbsp;<br>
  &lt;value&gt;com.mysql.jdbc.Driver&lt;/value&gt; &nbsp;<br>
  &lt;/parameter&gt;&nbsp;<br>
- &lt;parameter&gt;&nbsp;<br>
  &lt;name&gt;url&lt;/name&gt; &nbsp;<br>
  &lt;value&gt;jdbc:mysql://opensips.server:3306/test&lt;/value&gt; &nbsp;<br>
  &lt;/parameter&gt;&nbsp;<br>
- &lt;parameter&gt;&nbsp;<br>
  &lt;name&gt;maxActive&lt;/name&gt; &nbsp;<br>
  &lt;value&gt;8&lt;/value&gt; &nbsp;<br>
  &lt;/parameter&gt;&nbsp;<br>
- &lt;parameter&gt;&nbsp;<br>
  &lt;name&gt;maxIdle&lt;/name&gt; &nbsp;<br>
  &lt;value&gt;4&lt;/value&gt; &nbsp;<br>
  &lt;/parameter&gt;&nbsp;<br>
  &lt;/ResourceParams&gt;&nbsp;<br>
  &lt;/DefaultContext&gt;&nbsp;<br>
  &lt;/Host&gt;&nbsp;<br>
  &lt;/Engine&gt;&nbsp;<br>
  &lt;/Service&gt;&nbsp;<br>
  &lt;/Server&gt;&nbsp;<br>
&nbsp;<br>
-----------------------------------------------------------------------------------------------------------&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
Thans in advance <br></div>