Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread suresht
hi Christopher The problem was that there was attempt to access \c:\{$catalina.base}\lib\ojdbc6.jar rather than c:\{$catalina.base}\lib\ojdbc6.jar. when I added new rule the error went away. -suresh Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Suresh,

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread suresht
The problem was with oracle jar in {catalina.base}\lib dir was getting called with \ at the start. When I added the AllProperty policy rule for that \file:{catalina.base}\lib\- . this error went away. suresht wrote: > > hi Christopher, > I see a char array being set to a number. > charstr

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suresh, On 4/22/2010 8:33 PM, suresht wrote: > I see a char array being set to a number. > charstring1[charstring1-1] = 0; That's obviously not actual code. Can you decompile or otherwise browse the source of the method where the exception occu

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
hi Christopher, I see a char array being set to a number. charstring1[charstring1-1] = 0; Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Suresh, > > On 4/22/2010 4:51 PM, suresht wrote: >> i have attached a copy of the policy file. > > It was stri

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suresh, On 4/22/2010 4:51 PM, suresht wrote: > i have attached a copy of the policy file. It was stripped by the list. > yes that is true but the command line application includes the security > manager with equivalent policy Ok. > The web applica

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
hi Christopher i have attached a copy of the policy file. yes that is true but the command line application includes the security manager with equivalent policy, Tomcat + your webapp + Oracle JDBC Driver + SecurityManager = Exception Some other app + Oracle JDBC Driver = no exception

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suresh, On 4/22/2010 3:19 PM, suresht wrote: > when I run TOMCAT using -security option on Java 1.6 jdk, I get following > error. I added policy definitions for all properities, oraclejars and > JNDIpermission for the context. Care to share those pol