Hi,
We get this once in a while after starting the Tomcat and Webapp. The way we initialize the container is via Spring.
<bean id=\"iocContainerFactory\" class=\"com.servingxml.ioc.resources.IocContainerFactory\" init-method=\"loadComponentDefinitions\">
</bean>
then we use the bean to load the resources like this:
private IocContainer getResource(String fileName) throws Exception {
ParameterBuilder pb = new ParameterBuilder();
IocContainerFactory iocContainerFactory = (IocContainerFactory)SpringUtil.getBean(\"iocContainerFactory\");
**--> IocContainer resource = iocContainerFactory.createIocContainer(getConfigHref(fileName), pb);
return resource;
}
exception will be thrown at **-->
No component associated with document element sx:resources
at com.servingxml.ioc.resources.IocContainerImpl.initializeResources(IocContainerImpl.java:253)
at com.servingxml.ioc.resources.IocContainerImpl.initInclude(IocContainerImpl.java:356)
at com.servingxml.ioc.resources.IocContainerImpl.initializeResources(IocContainerImpl.java:242)
at com.servingxml.ioc.resources.IocContainerImpl.loadResources(IocContainerImpl.java:213)
at com.servingxml.ioc.resources.IocContainerImpl.loadResources(IocContainerImpl.java:184)
at com.servingxml.ioc.resources.IocContainerFactory.createIocContainer(IocContainerFactory.java:225)
at com.psp.mapping.ServingXmlMapper2.getResource(ServingXmlMapper2.java:86)
at com.psp.mapping.ServingXmlMapper2.executeMappingService(ServingXmlMapper2.java:201)
at com.psp.mapping.ServingXmlMapper2.executeMappingImpl(ServingXmlMapper2.java:265)
at com.psp.mapping.AbstractMapper.executeMapping(AbstractMapper.java:73)
at com.psp.bo.MappingBO.doMapping(MappingBO.java:247)
at com.psp.delegate.JobDelegate.doMapping(JobDelegate.java:95)
at com.psp.delegate.JobDelegate.doJob(JobDelegate.java:64)
at com.psp.delegate.JobDelegate.runJob(JobDelegate.java:45)
at com.psp.scheduling.ServingXMLJobRunnerThread.executeJob(ServingXMLJobRunnerThread.java:61)
at com.psp.scheduling.ServingXMLJobRunnerThread.run(ServingXMLJobRunnerThread.java:37)
99% of the time it works properly when we rebounce the Webserver (Tomcat).
It happens after that but just 1%. we cannot trace it back.
Any help would be appreciated ASAP because it is in production and causes lots of issues for maintenance.
Note: Since we use quartz for scheduled jobs we found a conflict with components.xml inside the jar we renamed both files and pointer in the manifest.
Please find a jar version what we use attached..
(did not let me upload)
Thanks....
In my class called SimpleXmlToFlat.java I have put a try/catch and the caught Exception is output in the logs below with the last line matching the subject header of this email. Exception = No component associated with document element sx:resources
Has there been any progress on this issue?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
log file below:
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:92) -
Stacktrace method name initializeResources
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:93) - Stacktrace class name com.servingxml.ioc.resources.IocContainerImpl
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:94) - Stacktrace file name IocContainerImpl.java
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:95) - Stacktrace line number 253
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:97) -
Stacktrace method name initInclude
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:98) - Stacktrace class name com.servingxml.ioc.resources.IocContainerImpl
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:99) - Stacktrace file name IocContainerImpl.java
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:100) - Stacktrace line number 356
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:103) -
Stacktrace method name initializeResources
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:104) - Stacktrace class name com.servingxml.ioc.resources.IocContainerImpl
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:105) - Stacktrace file name IocContainerImpl.java
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:106) - Stacktrace line number 242
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:108) - Exception stacktrace=com.servingxml.ioc.resources.IocContainerImpl.initializeResources(IocContainerImpl.java:253)
10/17/2013 17:32:07,357 ERROR [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:109) - Exception = No component associated with document element sx:resources
10/17/2013 17:32:07,357 DEBUG [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (SimpleXmlToFlat.java:111) - Serving XML returned resources=null