The Open quote is expected the for attribute ' {1} ' associated with an element type ' name '.

Source: Internet
Author: User
Serious: Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoad Erlistener

Org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line in XML document from URL [jar:file:/e:/ workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps/clm-webapp/web-inf/lib/ Clm-domain-1.0-snapshot.jar!/spring/base-orm.xml] is invalid; Nested exception is Org.xml.sax.SAXParseException:Open quote are expected for attribute ' {1} ' associated with an element Type ' name '.



XML parsing properties must be enclosed in quotation marks

The class attribute must be in quotation marks ...

Add <bean id= "flmusicuserdbjdbctemplate" class= "Org.springframework.jdbc.core.JdbcTemplate" >
<property name= "DataSource" ref= "Flmusicuserdbdatasource"/>
</bean>


With the idea before, this easy to resolve

Serious: Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoad Erlistener
Org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line in XML document from URL [jar:file:/e:/ workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps/clm-webapp/web-inf/lib/ Clm-domain-1.0-snapshot.jar!/spring/base-orm.xml] is invalid; Nested exception is Org.xml.sax.SAXParseException:The End-tag for element type "beans" must end with a ' > ' delimiter.


Need an end of </bean> tag delimiter (delimiter)




2011-12-15 16:26:08| Error|main|org.springframework.web.context.contextloader 215| Context initialization failed
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name '/userinfocontroller.do ' defined in file [E:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp5\wtpwebapps\clm-webapp\WEB-INF\ Classes\spring\controller-inteface.xml]: Cannot resolve reference to bean ' userinfoservice ' while setting bean property ' Userinfoservice '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Userinfoservice ' defined in URL [jar:file:/e:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/ Wtpwebapps/clm-webapp/web-inf/lib/clm-service.jar!/spring/clm-service.xml]: Cannot resolve reference to bean ' Clmjdbcdao ' while setting beans property ' Clmjdbcdao '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Clmjdbcdao ' defined in URL [jar:file:/e:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps/clm-webapp/ Web-inf/lib/clm-domain.Jar!/spring/base-dao-jdbc.xml]: Cannot resolve reference to bean ' flmusicuserdbjdbctemplate ' while setting bean property ' Flmusicuserdbjdbctemplate '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Flmusicuserdbjdbctemplate ' defined in URL [jar:file:/e:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/ Tmp5/wtpwebapps/clm-webapp/web-inf/lib/clm-domain.jar!/spring/base-orm.xml]: Cannot resolve reference to bean ' Flmusicuserdbdatasource ' while setting beans property ' DataSource '; Nested exception is org.springframework.beans.factory.CannotLoadBeanClassException:Cannot find class [ Org.apache.commons.dbcp.BasicDataSource] for beans with the name ' Flmusicuserdbdatasource ' defined in URL [jar:file:/e:/ Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps/clm-webapp/web-inf/lib/clm-domain.jar !/spring/base-orm.xml]; Nested exception is Java.lang.ClassNotFoundException:org.apache.commons.dbcp.BasicDataSource


Org.apache.commons.dbcp.BasicDataSource
This datasource, which does not introduce this package Proxool, can also be used if you want to use DBCP. Then you have to import this pom.xml packet in the dbcp of the clm_intf directory. Check out the Maven dbcp on the Internet to find it.

<bean id= "Flmusicuserdbdatasource" class= "Org.apache.commons.dbcp.BasicDataSource" Org.logicalcobwebs.proxool.ProxoolDataSource
destroy-method= "Close" >
<property name= "Driverclassname" >
<value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
</property>
<property name= "url" >
<value>jdbc:sqlserver://192.168.0.108:1433;databasename=flMusicUserDB</value>
</property>
<property name= "username" >
<value>sa</value>
</property>
<property name= "Password" >
<value>mmiku</value>
</property>
</bean>


2011-12-15 16:54:19| Error|main|org.springframework.web.context.contextloader 215| Context initialization failed
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name '/userinfocontroller.do ' defined in file [E:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp5\wtpwebapps\clm-webapp\WEB-INF\ Classes\spring\controller-inteface.xml]: Cannot resolve reference to bean ' userinfoservice ' while setting bean property ' Userinfoservice '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Userinfoservice ' defined in URL [jar:file:/e:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/ Wtpwebapps/clm-webapp/web-inf/lib/clm-service.jar!/spring/clm-service.xml]: Cannot resolve reference to bean ' Clmjdbcdao ' while setting beans property ' Clmjdbcdao '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Clmjdbcdao ' defined in URL [jar:file:/e:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps/clm-webapp/ Web-inf/lib/clm-domain.Jar!/spring/base-dao-jdbc.xml]: Cannot resolve reference to bean ' flmusicuserdbjdbctemplate ' while setting bean property ' Flmusicuserdbjdbctemplate '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Flmusicuserdbjdbctemplate ' defined in URL [jar:file:/e:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/ Tmp5/wtpwebapps/clm-webapp/web-inf/lib/clm-domain.jar!/spring/base-orm.xml]: Cannot resolve reference to bean ' Flmusicuserdbdatasource ' while setting beans property ' DataSource '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Flmusicuserdbdatasource ' defined in URL [jar:file:/e:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/ Tmp5/wtpwebapps/clm-webapp/web-inf/lib/clm-domain.jar!/spring/base-orm.xml]: Initialization of Bean failed; Nested exception is Org.springframework.beans.InvalidPropertyException:Invalid property ' driverclassname ' of bean class [orG.logicalcobwebs.proxool.proxooldatasource]: No property ' Driverclassname ' found

After changing the DataSource, its properties are not the same as before, you have to change the corresponding properties.

<bean id= "Flmusicuserdbdatasource" class= "Org.logicalcobwebs.proxool.ProxoolDataSource" >
<property name= "Driver" value= "Com.microsoft.sqlserver.jdbc.SQLServerDriver" >
</property>
<property name= "Driverurl"
Value= "Jdbc:sqlserver://192.168.0.108:1433;databasename=flmusicuserdb" >
</property>
<property name= "user" value= "sa" >
</property>
<property name= "Password" value= "Mmiku" >
</property>
</bean>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.