我的资源里有一个小例子 运行的时候出现错误 错误提示为org.springframework.beans.factory.BeanDefinitionStoreException: Line 11 in XML document from class path resource [beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
求求狠人让我看看这个程序 究竟错在哪了这个程序时我按照itcast的spring视频教程做的
org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
求求狠人让我看看这个程序 究竟错在哪了这个程序时我按照itcast的spring视频教程做的
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<context:annotation-config />
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>jdbc:oracle:thin:@localhost:1521:oracle9</value>
</property>
<property name="username">
<value>xiuguang</value>
</property>
<property name="password">
<value>xiuguang</value>
</property>
</bean>
<bean name="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="mappingResources"> <!-- 映射文件 可以有多个 -->
<list>
<value>cn/itcast/bean/Person.hbm.xml</value>
</list>
</property>
<property name="HibernateProperties">
<value>hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
hibernate.hbm2ddl.auto=update
hibernate.show_sql=true
hibernate.format_sql=true
</value>
</property>
</bean>
<bean name="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<tx:annotation-driven transaction-manager="txManager"/>
<bean name="personService" class="cn.itcast.bean.Person"/>
</beans>
问题可能就是你写的beans.xml路径错误
SafeNet公司是美国一家专注信息产业安全的公司,总部位于美国巴尔的摩市,自1983年开始,到现在已经销售超过5000万个加密锁,拥有最多的客户群,市场占有率为55%。目前全球拥有近千名员工,资深技术人员超过 400人。
2、产品优势
(1)稳定性强
圣天诺的硬件拥有业界最高的稳定性,坏锁率仅为万分之三。(在贵司前三年使用的情况也可以看出,圣天诺的硬件稳定性是靠得住,到现在为止,没有一个由于锁自身的原因导致损坏的,现在新版的硬件,再牢固性上也加强了很多,人为破坏的可能性也非常低,在业界,可以说是最可靠的硬件)
(2)供货速度快
SafeNet公司在中国拥有60多人的分公司,货源完全有SafeNet公司来统一管理,供货速度可以保证。
(3)技术反应能力强
SafeNet中国分公司的技术人员,可以提供本地化的技术支持服务,这个是其他国外加密锁公司所不能比拟的。
(4)安全性高
圣天狗的硬件采用了SafeNet公司独有的芯片和封装技术,使得硬件不可以被复制。软件方面,圣天狗采用了业界独有的安全通道的概念,防止黑客进行软件模拟跟踪,这是目前为止其他所有加密锁所不具备的。
(5)网络锁
圣天狗的网络锁不限制使用用户数,这极大地方便了客户的使用,客户可以随意控制圣天狗的用户数。并且,稳定性上,圣天狗的稳定性是不可挑剔的,在贵司实际使用中,我们的网络锁的稳定性是值得肯定的。
(6)提供个性化服务
圣天狗可以提供个性化光刻服务,能够提高贵司产品的形象。
总的来讲,通过这几年与贵司的合作,您应该可以感觉到我们的服务品质、产品品质是无可挑剔的。
当然,关于产品价格问题,我们还会尽量的和SafeNet公司去谈。争取一个好价格。
另外,在选型加密锁的时候,请您注意几点:
1、加密锁的容量,这次新产品的选型也主要是因为我们SuperPro的容量仅有112字节的原因,导致了加密锁不够用了,所以才在新产品中选择新的加密锁。
竟能对手的产品一定要大于112字节,对于飞天而言,他们的Rockey6肯定是够使用空间。Aladdin的HASP HL必须要考虑他们的HASP HL Max才可以,HL Pro虽然价格便宜,但是容量也只有112字节。
2、网络锁的用户数,我们的网络锁不限制硬件用户数,飞天的也不限制,HASP HL Net是有用户数限制的,虽然目前看,您统计了您出的锁的用户数是够用,但这给您的备货带来很大的不便,在销售之前,您不能完全知道客户的最终需求,如果客户需要11个用户数的,您就需给客户50用户数的锁,而不同用户数的锁价格也不一样,这会给您这边带来很大的麻烦。
3、业界使用的口碑,我们的锁已经经过您的考验,肯定没有问题,对于国内产品,以前您也使用过,网络锁的稳定性肯定要差一些,而对于另外一家国外产品,口碑也不错,但是据我所知,也是一家做GIS软件的公司,却总是因为使用了这家公司的网路锁,总是出问题,导致回款都很困难。
4、供货能力,国内产品肯定没有问题,因为生产都是在国内做。国外产品相比要差一些,因为要经过运输、报关等过程,但是圣天狗您可以不用担心,SafeNet中国公司会拥有很大的库存,保证国内用户不会断货。而另外一家国外公司就要差很多,代理商备货,这无疑会使您的订货周期加长,影响您的正常销售。
5、本地化技术支持服务,SafeNet公司相对另外一家国外公司而言,在中国拥有60多人的团队为您服务,您可以更安心的使用圣天狗。
最后,希望在贵司新产品中和贵司合作。也希望今后我们合作的愉快。
欢迎登陆我公司网址
www.minghuan.com.cn
是不是<beans>标签少了个“>”括号啊!
把这个去掉, 连个开头都没有.
换成
>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN""http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
</beans>
xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
</beans>