<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Marco,<div><br><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>copy the jar to the ${<span class="Apple-style-span" style="font-family: arial; font-size: 13px; ">WESIP_HOME<span class="Apple-style-span" style="font-family: Verdana; font-size: 11px; ">}/common/lib. Classes in this directory are available to all applications while classes in lib directory are only available to the container itself (for internal purposes). It should do the trick</span></span></div><div><br></div><div>Thank you</div><div><br></div><div>Ginés</div><div><br></div><div><br></div><br class="Apple-interchange-newline"><blockquote type="cite"><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">&nbsp;<br> - &lt;Service name="WeSIP-Standalone">&nbsp;<br> &lt;Connector className="org.apache.catalina.connector.http.HttpConnector" port="5075" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="1" /> &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">&nbsp;<br> - &lt;ExtraProperties>&nbsp;<br>  &lt;Property key="com.voztele.javax.sip.SER_ADDRESS" value="10.107.109.108" /> &nbsp;<br>  &lt;Property key="com.voztele.javax.sip.SER_PORT" value="5080" /> &nbsp;<br>  &lt;Property key="com.voztele.STATISTICS" value="false" /> &nbsp;<br>  &lt;Property key="javax.sip.STACK_NAME" value="shootist" /> &nbsp;<br>  &lt;Property key="javax.sip.THREAD_POOL_SIZE" value="100" /> &nbsp;<br>  &lt;Property key="com.voztele.javax.sip.THREAD_POOL_SIZE" value="100" /> &nbsp;<br>  &lt;Property key="com.voztele.javax.sip.REENTRANT_LISTENER" value="true" /> &nbsp;<br>  &lt;Property key="javax.sip.AUTOMATIC_DIALOG_SUPPORT" value="false" /> &nbsp;<br>  &lt;Property key="com.voztele.javax.sip.TRACE_LEVEL" value="0" /> &nbsp;<br>  &lt;/ExtraProperties>&nbsp;<br>  &lt;/Connector>&nbsp;<br> - &lt;Engine name="Standalone" defaultHost="10.107.109.108" debug="1" className="com.voztele.sipservlet.core.ConvergedEngine">&nbsp;<br>  &lt;Mapper className="org.apache.catalina.core.StandardEngineMapper" protocol="HTTP/1.1" /> &nbsp;<br>  &lt;Mapper className="org.apache.catalina.core.StandardEngineMapper" protocol="HTTP/1.0" /> &nbsp;<br>  &lt;Mapper className="com.voztele.sipservlet.core.EngineSipMapper" protocol="SIP/2.0" /> &nbsp;<br>  &lt;Logger className="org.apache.catalina.logger.FileLogger" timestamp="true" /> &nbsp;<br>  &lt;Realm className="org.apache.catalina.realm.MemoryRealm" /> &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">&nbsp;<br>  &lt;Logger className="org.apache.catalina.logger.FileLogger" timestamp="true" /> &nbsp;<br>  &lt;Mapper className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/2.0" /> &nbsp;<br>  &lt;Mapper className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/1.1" /> &nbsp;<br>  &lt;Mapper className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/1.0" /> &nbsp;<br> - &lt;DefaultContext useNaming="true" reloadable="true">&nbsp;<br>  &lt;Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" /> &nbsp;<br> - &lt;ResourceParams name="jdbc/TestDB">&nbsp;<br> - &lt;parameter>&nbsp;<br>  &lt;name>username&lt;/name> &nbsp;<br>  &lt;value>javauser&lt;/value> &nbsp;<br>  &lt;/parameter>&nbsp;<br> - &lt;parameter>&nbsp;<br>  &lt;name>password&lt;/name> &nbsp;<br>  &lt;value>javauser&lt;/value> &nbsp;<br>  &lt;/parameter>&nbsp;<br> - &lt;parameter>&nbsp;<br>  &lt;name>driverClassName&lt;/name> &nbsp;<br>  &lt;value>com.mysql.jdbc.Driver&lt;/value> &nbsp;<br>  &lt;/parameter>&nbsp;<br> - &lt;parameter>&nbsp;<br>  &lt;name>url&lt;/name> &nbsp;<br>  &lt;value>jdbc:mysql://opensips.server:3306/test&lt;/value> &nbsp;<br>  &lt;/parameter>&nbsp;<br> - &lt;parameter>&nbsp;<br>  &lt;name>maxActive&lt;/name> &nbsp;<br>  &lt;value>8&lt;/value> &nbsp;<br>  &lt;/parameter>&nbsp;<br> - &lt;parameter>&nbsp;<br>  &lt;name>maxIdle&lt;/name> &nbsp;<br>  &lt;value>4&lt;/value> &nbsp;<br>  &lt;/parameter>&nbsp;<br>  &lt;/ResourceParams>&nbsp;<br>  &lt;/DefaultContext>&nbsp;<br>  &lt;/Host>&nbsp;<br>  &lt;/Engine>&nbsp;<br>  &lt;/Service>&nbsp;<br>  &lt;/Server>&nbsp;<br> &nbsp;<br> -----------------------------------------------------------------------------------------------------------&nbsp;<br> &nbsp;<br> &nbsp;<br> Thans in advance <br></div> _______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></body></html>