Working on a scenario provider for simulations. I can hard code my database connection info into Java, and it works great in Decision Center. My next step is to to move the configuration into Spring beans instead of Java hardcoding, and I was able to successfully run that using a simple java app that uses the same .jar file as I deploy to RES. However, when I deploy the .jar file to RES and run it, I get the following error:
<Sep 9, 2020 11:20:10,808 AM MDT> <Warning> <Connector> <BEA-190110> <Resource adapter is calling BootstrapContext.createTimer() and allocating a Timer Thread that is not managed by WebLogic Server. This may adversely impact the performance or operation of WebLogic Server.>
Sep 09, 2020 11:20:23 AM com.ibm.jbatch.container.impl.ChunkStepControllerImpl invokeChunk
SEVERE: Failure in Read-Process-Write Loop
com.ibm.jbatch.container.exception.BatchContainerRuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [Myfilename.xml]; nested exception is java.io.FileNotFoundException: class path resource [Myfilename.xml] cannot be opened because it does not exist
at com.ibm.jbatch.container.artifact.proxy.ItemReaderProxy.open(ItemReaderProxy.java:57)
at com.ibm.jbatch.container.impl.ChunkStepControllerImpl.openReaderAndWriter(ChunkStepControllerImpl.java:854)
(snip)
I can see the .xml file in the .jar archive, which isn't surprising considering it works when I run a test from Eclipse. I can use an absolute path in the filesystem rather than a classpath path in the resource, and it finds the .xml file, but then it complains that it can't find the class I'm referring to in the bean.
I feel like these two things are related: essentially, there are elements that clearly exist in the .jar file, but don't get loaded correctly when run from RES/Decision Runner. Maybe a classloader issue?
ODM version: 8.9.2.3
Application server: Weblogic 12c
#OperationalDecisionManager(ODM)#Support#SupportMigration