IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1988.91 MB
Powered by
Channel Info
Network: freenodeChannel: #tomcat |
Search in www.irclog.org
Log from #tomcat at freenode 2006-06-28
Pages: 1
[11:04]<axmnm>but no-ip.com only works when running from eclipse
[22:52]<rrnjus>hi everyone!
[22:52]<rrnjus>I have been searching in the forum and in the web about how to use the OracleCallableStatement with the conection obtained by a DataSource. The problem that I found is that when i use the ((DelegatingConnection) connection).getInnermostDelegate() the connection throws a Exception: org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
[22:52]<rrnjus>Before I implements the getInnermostDelegate() method, i used the connection directly for call the OrarcleCallableStatement, but when the code executes the (OracleCallableStatement)connection.prepareCall("sql"), it throws the exception java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.DelegatingCallableStatement
[22:53]<rrnjus>I have modified yet the accessToUnderlyingConnectionAllowed property of the resource but, the error still appears.
[22:53]<rrnjus>some suggestions?
[22:58]<rrsjg2>ageous: See the topic line.
[22:58]<rrsjg2>ageous: Which exact version of Tomcat are you using?
[23:03]<rrnjus>hi... mi version is 5.5.17 and the bd is in oracle 9i
[23:05]<rrsjg2>ageous: Which Java brand & version are you using to run Tomcat?
[23:08]<rrnjus>Is JDK 1.5.0.02 from sun... the one that can be downloaded in the java.sun.com
[23:09]<rrsjg2>That should work.
[23:09]<rrsjg2>So, the next step is to contact Oracle for support for their commercial product.
[23:09]<zzgmznw>hehehe, classcastexception is sweet
[23:10]<rrsjg2>heh
[23:10]<rrnjus>dough!!!...
[23:10]<zzgmznw>here is some useful info: http://tinyurl.com/n3r2q
[23:11]<rrnjus>ok...thank you!
[23:11]<zzgmznw>Check out reason number 2, "The class loader that loaded the source object (class) is different from the class loader that loaded the target class."
[23:12]<zzgmznw>Tomcat is riddled with classloaders. : )
[23:13]<rrsjg2>classloaders are fun! :)
[23:13]<rrsjg2>The reason why Tomcat has many isn't just because the Tomcat developers were weird or something, it's instead due to how the Java Servlet spec is written. It actually mandates it.
[23:15]<zzgmznw>maybe check that oracle jar is in same place as dbcp (and not in web-inf/lib)
[23:15]<rrnjus>mmm... well... i see... jejeje... a rookie question... all that i see about this is in forums and posts... do you know where i can find a good example of the implementation of this? Because in the pages of java and oracle barerly comment about...
[23:15]<zzgmznw>did you find this: http://forums.oracle.com/forums/thread.jspa?threadID=279238&tstart=45
[23:16]<zzgmznw>it sounds like you are trying something that should work. if you have oracle or dbcp jars in web-inf/lib you should try taking them out, and making sure they are in common/lib.
[23:18]<rrnjus>yes.. .is the most complete that i found before...however, i read it and try everything that the post says... but i still have my doubts...
[23:19]<rrnjus>let's see that last part... let's try with the common/lib..
[23:46]<rrnjus>well... i see the problem...in the article that sent me, it's talk about unwrap the connection... they never can do it... they have to make a new connection for this... end if... jejeje...thks for all
Pages: 1







