Thanks!!!<br><br><div class="gmail_quote">On Fri, Jan 30, 2009 at 3:32 PM, Ravi Mutyala <span dir="ltr"><<a href="mailto:rmutyala@gmail.com">rmutyala@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
deregisterdrivers=true may solve the problem, if your JDBC driver is<br>
loaded by classloader before it loads P6Spy.  Default option in<br>
spy.properties is false.<br>
<br>
Ravi.<br>
<br>
On Fri, Jan 30, 2009 at 2:09 PM, Suhas Walanjoo<br>
<div><div></div><div class="Wj3C7c"><<a href="mailto:suhas.walanjoo@gmail.com">suhas.walanjoo@gmail.com</a>> wrote:<br>
> Ravi,<br>
><br>
> Thanks for your message. This is what I did. (Also P6Spy stopped new<br>
> development a few years ago, so how did youy get specific instructions for<br>
> JBoss (which is relatively recent development)<br>
><br>
> I made the following changes to my application:<br>
><br>
> In spring-datasource.properties, I changed the driver class name as<br>
> following<br>
> #datasource.driverClassName=oracle.jdbc.driver.OracleDriver<br>
> datasource.driverClassName=com.p6spy.engine.spy.P6SpyDriver<br>
><br>
> Used given spy.properties from p6spy distribution and changed as following:<br>
><br>
> Added<br>
> # oracle driver<br>
> realdriver=oracle.jdbc.driver.OracleDriver<br>
> Commented<br>
> # the mysql open source driver<br>
> #realdriver2=org.gjt.mm.mysql.Driver<br>
><br>
> Put it in a diectory so that it would be picked up by maven during the build<br>
> and it would be puts in WEB-INF/classes directory<br>
><br>
> next I changed pom.xml of my application to add<br>
><br>
> <dependency><br>
> <groupId>p6spy</groupId><br>
> <artifactId>p6spy</artifactId><br>
> <version>1.3</version><br>
> </dependency><br>
> I used "jar -tvf mywebapp.war" command to check both the above files exist<br>
> in the respective directories of WEB-INF.<br>
><br>
> I started Jahia SQL profiler with this command<br>
> java -Xmx256m -jar sqlprofiler.jar<br>
><br>
> and then only deployed the application war on weblogic. The modified<br>
> application seems to work as usual.<br>
><br>
> However, Jahia SQL Profiler does give an error message "Not Connected to<br>
> P6Spy"<br>
><br>
> Please help.<br>
><br>
> Regards,<br>
><br>
> Suhaas<br>
><br>
> On Fri, Jan 30, 2009 at 3:01 PM, Ravi Mutyala <<a href="mailto:rmutyala@gmail.com">rmutyala@gmail.com</a>> wrote:<br>
>><br>
>> Suhaas,<br>
>><br>
>> I used the P6Spy with hibernate and JBOSS. Check the sample<br>
>> spy.properties that comes with the release and you should get most of<br>
>> your configuration. deregisterdrivers=true is the only change I had to<br>
>> make in the sample property file.<br>
>><br>
>> Regards,<br>
>> Ravi.<br>
>><br>
>> On Fri, Jan 30, 2009 at 1:49 PM, Suhas Walanjoo<br>
>> <<a href="mailto:suhas.walanjoo@gmail.com">suhas.walanjoo@gmail.com</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I tried to set up Jahia.net's JDBC SQL Profile (this in turn uses P6Spy)<br>
>> > with Weblogic<br>
>> > and Oracle, by following the documentation.<br>
>> ><br>
>> > Has anyone worked with either Jahia.net's JDBC SQL Profile  or P6Spy ?<br>
>> ><br>
>> > Regards,<br>
>> ><br>
>> > Suhaas<br>
>> ><br>
>> > _______________________________________________<br>
>> > Jug mailing list<br>
>> > <a href="mailto:Jug@lists.okcjug.org">Jug@lists.okcjug.org</a><br>
>> > <a href="http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org" target="_blank">http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org</a><br>
>> ><br>
>> ><br>
>> _______________________________________________<br>
>> Jug mailing list<br>
>> <a href="mailto:Jug@lists.okcjug.org">Jug@lists.okcjug.org</a><br>
>> <a href="http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org" target="_blank">http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org</a><br>
><br>
><br>
_______________________________________________<br>
Jug mailing list<br>
<a href="mailto:Jug@lists.okcjug.org">Jug@lists.okcjug.org</a><br>
<a href="http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org" target="_blank">http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org</a><br>
</div></div></blockquote></div><br>