HTTP Status 500 -
--------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
Unable to instantiate Action, userAction, defined for 'myUser' in namespace '/'Error creating bean with name 'userAction' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'userDAO' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAO' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [com/sdw/config/sql-map-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Content is not allowed in prolog.
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:307)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:388)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:187)
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
root cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userAction' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'userDAO' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAO' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [file:/E:/Apache%20Software%20Foundation/apache-tomcat-6.0.30/apache-tomcat-6.0.30/webapps/S2SiBatisDemo/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [com/sdw/config/sql-map-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Content is not allowed in prolog.