[opencms-dev] Reaching MySql

Daniel Frost daniel.frost at crossroadsinteractive.se
Wed Sep 8 15:55:49 CEST 2004


I'm having problems using MySQL Connector/J to reach my database from a jsp
page in OpenCms. The file connects to the database without any problems in
stand alone mode.

OpenCms gives the following error:


javax.servlet.ServletException: Resource loader error in file
'/www/db_ac.jsp'

Root cause:
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
	at java.lang.String.charAt(String.java:444)
	at com.opencms.flex.CmsJspLoader.updateJsp(CmsJspLoader.java:877)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:968)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java:256)
	at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
	at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
	at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW
rapperValve.java:771)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:322)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209
)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
	at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:161)
	at com.iplanet.ias.web.WebContainer.service(WebContainer.java:578)

--------------- End of root cause.

	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:982)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java:256)
	at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
	at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
	at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW
rapperValve.java:771)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:322)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209
)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
	at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:161)
	at com.iplanet.ias.web.WebContainer.service(WebContainer.java:578)




Any suggestions?





More information about the opencms-dev mailing list