试用windows下的tomcat连接linux下的oracle 10g失败-_-;

试用windows下的tomcat连接linux下的oracle 10g失败-_-;

原有一台linux服务器配置好oracle10g及tomcat6 ,单机可以发布网站。现想分折成两台机:一台是oracle 10g服务器,一台是windows下的tomcat6服务器,用windows下的tomcat6接连到10g服务器。问题是页面出现错误,弹出以下提示:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        java.lang.String.substring(String.java:1938)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:223)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.

请问该提示是什么错误引起的呢!?

      
可能是到数据库的连接问题,或者是程序问题. 分开测试一下吧