Are you still using Tomcat?  Did you change your JDK?  When does this
happen - when running tests?  Does it happen if you test everything on
another machine?

Matt

On 5/12/07, nmall <[EMAIL PROTECTED]> wrote:

Hi,

 I got rid of this error in applicationContext-resources.xml by changing the
header to

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd";>

However, I am getting the same error from security.xml and if I simplify it
to the above there, it fails with aop:config required. So it seems I have no
choice but to give the following. But I get the same error I reproduced in
my previous mail. Thanks for any suggestions.




nmall wrote:
>
> Here is my applicationContext-resources.xml. Thanks!
>
>  <?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:jee="http://www.springframework.org/schema/jee";
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>             http://www.springframework.org/schema/jee
> http://www.springframework.org/schema/jee/spring-jee-2.0.xsd";>
>
>     <!-- For mail settings and future properties files -->
>     <bean id="propertyConfigurer"
> 
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>         <property name="locations">
>             <list>
>                 <value>classpath:jdbc.properties</value>
>                 <value>classpath:mail.properties</value>
>             </list>
>         </property>
>     </bean>
>     <bean id="sessionFactory"
> class="com.home.core.AnnotationSessionFactoryBean">
> <property name="dataSource"><ref local="dataSource"/></property>
> <property
> name="configLocation"><value>/WEB-INF/hibernate.cfg.xml</value></property>
> <property name="hibernateProperties">
> <props>
> <prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
> <prop key="hibernate.show_sql">false</prop>
> </props>
> </property>
> <property name="configurationClass">
> <value>org.hibernate.cfg.Configuration</value>
> </property>
> </bean>
>
>     <!-- JNDI DataSource for J2EE environments -->
>     <!--<jee:jndi-lookup id="dataSource"
> jndi-name="java:comp/env/jdbc/appfuse"/>-->
>
>     <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
> destroy-method="close">
>         <property name="driverClassName" value="${jdbc.driverClassName}"/>
>         <property name="url" value="${jdbc.url}"/>
>         <property name="username" value="${jdbc.username}"/>
>         <property name="password" value="${jdbc.password}"/>
>         <property name="maxActive" value="100"/>
>         <property name="maxIdle" value="30"/>
>         <property name="maxWait" value="1000"/>
>         <property name="defaultAutoCommit" value="true"/>
>         <property name="removeAbandoned" value="true"/>
>         <property name="removeAbandonedTimeout" value="60"/>
>     </bean>
>
> </beans>
>
>
> mraible wrote:
>>
>> Can you post the contents of your applicationContext-resources.xml?
>>
>> Matt
>>
>> On 5/11/07, nmall <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi, I have the standard applicationContext-resources.xml file but I am
>>> getting the following errors from tomcat 5.5 when I try to run mvn -e
>>> tomcat:run. Any ideas why this would happen. Your help is appreciated !
>>>
>>> My ApplicationContext-resources.xml header :
>>> <?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:jee="http://www.springframework.org/schema/jee";
>>>        xsi:schemaLocation="http://www.springframework.org/schema/beans
>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>>>             http://www.springframework.org/schema/jee
>>> http://www.springframework.org/schema/jee/spring-jee-2.0.xsd";>
>>>
>>>
>>> The Error while running mvn tomcat:run
>>>
>>>   [INFO] Loading Spring root WebApplicationContext
>>> [ERROR] Exception sending context initialized event to listener instance
>>> of
>>> clas
>>> s org.springframework.web.context.ContextLoaderListener
>>> org.springframework.beans.factory.BeanDefinitionStoreException: Line 5
>>> in
>>> XML do
>>> cument from URL
>>> [file:/C:/work/build/myproject/target/myproject-1.0-SNAPSHOT/WEB
>>> -INF/classes/applicationContext-resources.xml] is invalid; nested
>>> exception
>>> is o
>>> rg.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".
>>>         at
>>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
>>> known Source)
>>>         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
>>> Source)
>>>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>>> Source)
>>>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>>> Source)
>>>         at
>>> org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unkno
>>> wn Source)
>>>         at
>>> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
>>>  Source)
>>>         at
>>> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
>>> Sourc
>>> e)
>>>         at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
>>> t(Unknown Source)
>>>         at
>>> org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
>>> ootElementHook(Unknown Source)
>>>         at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
>>> Dispatcher.dispatch(Unknown Source)
>>>         at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
>>> known Source)
>>>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>>> Source)
>>>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>>> Source)
>>>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>>         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>>>         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
>>> Source)
>>>         at
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
>>> eanDefinitions(XmlBeanDefinitionReader.java:222)
>>>         at
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
>>> nDefinitions(XmlBeanDefinitionReader.java:173)
>>>         at
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
>>> nDefinitions(XmlBeanDefinitionReader.java:148)
>>>         at
>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReade
>>> r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:129)
>>>         at
>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReade
>>> r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:145)
>>>         at
>>> org.springframework.web.context.support.XmlWebApplicationContext.load
>>> BeanDefinitions(XmlWebApplicationContext.java:126)
>>>         at
>>> org.springframework.web.context.support.XmlWebApplicationContext.load
>>> BeanDefinitions(XmlWebApplicationContext.java:94)
>>>         at
>>> org.springframework.context.support.AbstractRefreshableApplicationCon
>>> text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
>>>         at
>>> org.springframework.context.support.AbstractApplicationContext.refres
>>> h(AbstractApplicationContext.java:262)
>>>         at
>>> org.springframework.web.context.support.AbstractRefreshableWebApplica
>>> tionContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
>>>         at
>>> org.springframework.web.context.ContextLoader.createWebApplicationCon
>>> text(ContextLoader.java:252)
>>>         at
>>> org.springframework.web.context.ContextLoader.initWebApplicationConte
>>> xt(ContextLoader.java:190)
>>>         at
>>> org.springframework.web.context.ContextLoaderListener.contextInitiali
>>> zed(ContextLoaderListener.java:49)
>>> --
>>> View this message in context:
>>> 
http://www.nabble.com/errors-from-applicationContext-resources.xml-tf3729708s2369.html#a10439696
>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> http://raibledesigns.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>

--
View this message in context: 
http://www.nabble.com/errors-from-applicationContext-resources.xml-tf3729708s2369.html#a10442603
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to