String index out of range: -1
Could not instantiate bean class [com.runfine.wd.action.LoginAction]: Constructor threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Error creating bean with name 'loginAction' defined in file [/usr/apache-tomcat-7.0.53/webapps/wd/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.runfine.wd.action.LoginAction]: Constructor threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Unable to instantiate Action, loginAction, defined for 'LoginAction' in namespace '/'Error creating bean with name 'loginAction' defined in file [/usr/apache-tomcat-7.0.53/webapps/wd/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.runfine.wd.action.LoginAction]: Constructor threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -1
本人将windows下部署好的项目发布到linux下登陆时报的错(在win下正常运行),求高手指点
------解决方案--------------------
配置文件里loginAction这一块配置有问题吧
------解决方案--------------------
你看看这个文件找找看看。
[/usr/apache-tomcat-7.0.53/webapps/wd/WEB-INF/classes/applicationContext.xml]:
另外 linux 路径和window 不一样