000013446 - AAOP - Scheduler SP3P1 on Weblogic 10.3 deployment issue->Cannot find the declaration of element 'beans'.

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000013446
Applies To

Linux 5.5

RSA Product/Version: AAOP 6.0.2.1 SP3 P1

Platforms/Operating Systems RSA Product Installed On: RHEL 5.5

Application Server/Version: WebLogic 11g (10.3.3.0)

DB Server Version/Platform: MSQL 2008 R1


Dec 9, 2011 6:46:25 PM EST> <Info> <ServletContext-/scheduler> <BEA-000000> <Initializing Spring root WebApplicationContext>

<Dec 9, 2011 6:46:25 PM EST> <Error> <HTTP> <BEA-101216> <Servlet: "RsaContextLoader" failed to preload on startup in Web application: "scheduler".

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from ServletContext resource [/WEB-INF/bootstrap.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

Issue

AAOP - This error happned due to the fact that there is an issue with the decalration of the beans in scheduler/web-inf.xml for spring-beans.xsd

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

 

Resolution

  In schduler/web-inf all the .xml schemaLocation needs to define classpath:/org/springframework/beans/factory/xml/spring-beans-2.5.xsd.

In scheduler/web-inf/lib files which has schemaLocation defined as classpath:/org/springframework/beans/factory/xml/spring-beans-2.5.xsd.

Once you have done that the deployment should go fine teh scheduler will come up.

This line needs to be modifed in all the .xml which includes the schemaLocation.

 

From this:

                xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

 

To this:

                xsi:schemaLocation="http://www.springframework.org/schema/beans

                                                            classpath:/org/springframework/beans/factory/xml/spring-beans-2.5.xsd

                                                            http://www.springframework.org/schema/util

                                                            classpath:/org/springframework/beans/factory/xml/spring-util-2.5.xsd?

List of Files to be changed.


./cmEventPoller-job-config.xml
./classes/re-hc.xml
./classes/d-config-reporter.xml
./classes/re-offline.xml
./applicationContext-wl.xml
./applicationContext-base.xml
./billing-job-config.xml
./datasource.xml
./applicationContext.xml
./monitoring-job-config.xml
./applicationContext-tomcat.xml
./applicationContext-was.xml
./healthcheck-job-config.xml
./offline-job-config.xml
./dbUtils-job-config.xml
./efn-job-config.xml
./sessionReaper-job-config.xml
./cmLogger-job-config.xml
./applicationContext-jboss.xml
./bootstrap.xml

WEB-INF/lib/monitoring-and-alerts-impl-6.0.3.1.0.jar/configs/d-config-monitoring-and-alerts.xml
WEB-INF/lib/rsa-monitoring-and-alerts-api-1.1.0.jar/configs/d-config-alerts-metadata.xml

 

 

 

Legacy Article IDa57210

Attachments

    Outcomes