On Wed, May 2, 2012 at 2:49 PM, Supun Malinga <[email protected]> wrote:
> Hi, > > I used mysql driver in components/lib yesterday and a trunk pack(AS) and > it worked fine. > Did you use it inside a webapp deployed in AS ? > > thanks, > > > On Wed, May 2, 2012 at 2:41 PM, Sameera Jayasoma <[email protected]> wrote: > >> AFAIU, the issue here is not about dropins functionaliy. The issue here >> is why the Jaggery code cannot see the mysql driver deployed in OSGI. The >> code only see the driver deployed in the endorsed directory. >> >> Thanks, >> Sameera. >> >> On Wed, May 2, 2012 at 2:26 PM, Muhammed Shariq <[email protected]> wrote: >> >>> On Wed, May 2, 2012 at 2:15 PM, Dimuthu Leelarathne >>> <[email protected]>wrote: >>> >>>> Hi Nuwan, >>>> >>>> Can you see mysql in bundles.info when you get this exception? >>> >>> >>> The jar in lib should 1st be converted to osgi bundle and copied to >>> dropins and then deployed right? Thats when we can see an entry in >>> bundles.info. So you might wanna check if the driver has gotten copied >>> to dropins .. >>> >>>> >>>> thanks, >>>> dimuthu >>>> >>>> >>>> On Wed, May 2, 2012 at 1:09 PM, Sumedha Rubasinghe <[email protected]>wrote: >>>> >>>>> In other terms what this means is, >>>>> No JDBC impl class was found on classpath to match 'jdbc:mysql' >>>>> directive. >>>>> >>>>> On Wed, May 2, 2012 at 12:53 PM, Nuwan Bandara <[email protected]> wrote: >>>>> >>>>>> Its a driver not found exception. >>>>>> >>>>>> [2012-05-02 10:28:34,584] WARN >>>>>> {org.wso2.carbon.hostobjects.db.DatabaseHostObject} - Error connecting >>>>>> to >>>>>> the database : jdbc:mysql://localhost:3306/test >>>>>> java.sql.SQLException: No suitable driver found for >>>>>> jdbc:mysql://localhost:3306/test >>>>>> at java.sql.DriverManager.getConnection(DriverManager.java:602) >>>>>> at java.sql.DriverManager.getConnection(DriverManager.java:185) >>>>>> at >>>>>> org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75) >>>>>> at >>>>>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) >>>>>> at >>>>>> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181) >>>>>> at >>>>>> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106) >>>>>> at >>>>>> org.wso2.carbon.hostobjects.db.DatabaseHostObject.jsConstructor(DatabaseHostObject.java:106) >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160) >>>>>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:417) >>>>>> at >>>>>> org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:328) >>>>>> at >>>>>> org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3380) >>>>>> at >>>>>> org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2484) >>>>>> at >>>>>> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) >>>>>> at >>>>>> org.mozilla.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:2425) >>>>>> at >>>>>> org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:2277) >>>>>> at >>>>>> org.mozilla.javascript.optimizer.OptRuntime.callSpecial(OptRuntime.java:165) >>>>>> at org.wso2.carbon.rhino.tryit.c0._c5(/docs/tryit/tryit.jag:128) >>>>>> at org.wso2.carbon.rhino.tryit.c0.call(/docs/tryit/tryit.jag) >>>>>> at >>>>>> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57) >>>>>> at org.wso2.carbon.rhino.tryit.c0._c1(/docs/tryit/tryit.jag:126) >>>>>> at org.wso2.carbon.rhino.tryit.c0.call(/docs/tryit/tryit.jag) >>>>>> at >>>>>> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57) >>>>>> at org.wso2.carbon.rhino.tryit.c0._c0(/docs/tryit/tryit.jag:18) >>>>>> at org.wso2.carbon.rhino.tryit.c0.call(/docs/tryit/tryit.jag) >>>>>> at >>>>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) >>>>>> at >>>>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) >>>>>> at org.wso2.carbon.rhino.tryit.c0.call(/docs/tryit/tryit.jag) >>>>>> at org.wso2.carbon.rhino.tryit.c0.exec(/docs/tryit/tryit.jag) >>>>>> at >>>>>> org.wso2.carbon.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:472) >>>>>> at >>>>>> org.wso2.carbon.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:231) >>>>>> at >>>>>> org.wso2.carbon.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:212) >>>>>> at >>>>>> org.wso2.carbon.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:47) >>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) >>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>>>>> at >>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >>>>>> at >>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>>>>> at >>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) >>>>>> at >>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) >>>>>> at >>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >>>>>> at >>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) >>>>>> at >>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) >>>>>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:109) >>>>>> at >>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:155) >>>>>> at >>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) >>>>>> at >>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>>>>> at >>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >>>>>> at >>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) >>>>>> at >>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) >>>>>> at >>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1620) >>>>>> at >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>>>> at >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>>>> at java.lang.Thread.run(Thread.java:662) >>>>>> >>>>>> >>>>>> On Wed, May 2, 2012 at 12:47 PM, Sameera Jayasoma >>>>>> <[email protected]>wrote: >>>>>> >>>>>>> HI Nuwan, >>>>>>> >>>>>>> Can you post the exception you are getting? It should be helpful. >>>>>>> >>>>>>> Thanks, >>>>>>> Sameera. >>>>>>> >>>>>>> >>>>>>> On Wed, May 2, 2012 at 10:42 AM, Nuwan Bandara <[email protected]>wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Why is it that MySql driver is not picked up, when I drop it into >>>>>>>> components/lib ? It works fine if I copy the jar to lib/endorsed. I >>>>>>>> feel its a special case for Jaggery, but what can be the reason ? >>>>>>>> >>>>>>>> -- >>>>>>>> *Thanks & Regards, >>>>>>>> >>>>>>>> Nuwan Bandara >>>>>>>> Associate Technical Lead & Member, MC, Development Technologies >>>>>>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>>>>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 >>>>>>>> 763 9629 >>>>>>>> * >>>>>>>> <http://www.nuwanbando.com/> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Sameera Jayasoma >>>>>>> Technical Lead >>>>>>> >>>>>>> WSO2, Inc. (http://wso2.com) >>>>>>> email: [email protected] >>>>>>> blog: http://tech.jayasoma.org >>>>>>> >>>>>>> Lean . Enterprise . Middleware >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Thanks & Regards, >>>>>> >>>>>> Nuwan Bandara >>>>>> Associate Technical Lead & Member, MC, Development Technologies >>>>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 >>>>>> 763 9629 >>>>>> * >>>>>> <http://www.nuwanbando.com/> >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> /sumedha >>>>> +94 773017743 >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Dimuthu Leelarathne >>>> Technical Lead >>>> >>>> WSO2, Inc. (http://wso2.com) >>>> email: [email protected] >>>> >>>> >>>> Lean . Enterprise . Middleware >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Thanks, >>> Shariq. >>> Phone: +94 777 202 225 >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Sameera Jayasoma >> Technical Lead >> >> WSO2, Inc. (http://wso2.com) >> email: [email protected] >> blog: http://tech.jayasoma.org >> >> Lean . Enterprise . Middleware >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Supun Malinga, > > Software Engineer, > WSO2 Inc. > http://wso2.com > http://wso2.org > email - [email protected] <[email protected]> > mobile - 071 56 91 321 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Thanks & Regards, Nuwan Bandara Associate Technical Lead & Member, MC, Development Technologies WSO2 Inc. - lean . enterprise . middleware | http://wso2.com blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 9629 * <http://www.nuwanbando.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
