Open quote is expected for Attribute "{1}" associated with an element type "Name

Source: Internet
Author: User

Severe: exception sending context initialized event to listener instance of class org. springframework. Web. Context. contextloaderlistener

Org. springframework. beans. factory. XML. xmlbeandefinitionstoreexception: line 37 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 is expected for Attribute "{1}" associated with an element type "name ".

XML parsing attributes must be enclosed in quotation marks

The class attribute must be enclosed in quotation marks ..

Add <bean id = "flmusicuserdbjdbctemplate" class = "org. springframework. JDBC. Core. jdbctemplate">
<Property name = "datasource" ref = "flmusicuserdbdatasource"/>
</Bean>

With the previous ideas, it's easy to resolve

Severe: exception sending context initialized event to listener instance of class org. springframework. Web. Context. contextloaderlistener
Org. springframework. beans. factory. XML. xmlbeandefinitionstoreexception: Line 54 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 "Bean" must end with a'> 'delimiter.

A final </bean> label Delimiter is required)

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 bean 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 bean property 'clmjdbcdao'; Nested exception is Org. springframework. beans. factory. beancreationexception: Error creating bean 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 bean with name 'authorization' 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 bean property 'datasource ';
Nested exception is Org. springframework. beans. factory. cannotloadbeanclassexception: cannot find class [Org. apache. commons. DBCP. basicdatasource] for bean 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];
Nested exception is Java. Lang. classnotfoundexception: org. Apache. commons. DBCP. basicdatasource

Org. Apache. commons. DBCP. basicdatasource
This package is not introduced

You can also use the datasource of proxool if you want to use DBCP. Then you need to import this DBCP package to Pom. xml in the clm_intf directory. Check 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>

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 bean 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 bean property 'clmjdbcdao'; Nested exception is Org. springframework. beans. factory. beancreationexception: Error creating bean 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 bean with name 'authorization' 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 bean property 'datasource ';
Nested exception is Org. springframework. beans. factory. beancreationexception: Error creating bean 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. Category. proxool. proxooldatasource]: No property 'driverclassname' found

After datasource is changed, its attributes are not the same as those before. You must change the corresponding attributes.

<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.