hi Users,
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.

org.apache.jasper.JasperException: java.lang.ArrayIndexOutOfBoundsException:
-1

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)


root cause 

java.lang.ArrayIndexOutOfBoundsException: -1

oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:942)
        
oracle.jdbc.driver.T4CTTIoauthenticate.<init>(T4CTTIoauthenticate.java:221)
        oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:358)
        
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
        oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)

oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
        oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)

oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:275)
        
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:206)
        xxx.yyy.CPC.data.DAOUtil.getConnection(Unknown Source)
        xxx.yyy.CPC.logging.LogDAO.createLog(Unknown Source)
        xxx.yyy.CPC.logging.DBLogger.db(Unknown Source)
        org.apache.jsp.CPC.Default_jsp._jspService(Default_jsp.java:90)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)



when I run the similar program outside tomcat with -security it runs
fine. any thoughts

-suresh
-- 
View this message in context: 
http://old.nabble.com/Running-tomcat-6.0.26-with-security-manager-generates-ORACLE-jdbc-error-tp28333480p28333480.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to