Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/358.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 启动时加载Tangosol.coherence.xml_Java_Oracle Coherence - Fatal编程技术网

Java 启动时加载Tangosol.coherence.xml

Java 启动时加载Tangosol.coherence.xml,java,oracle-coherence,Java,Oracle Coherence,我有一个应用程序正在使用一致性缓存,但在启动时出现以下错误: 2012-10-16 09:25:52153错误[resmanThreadExecutor-49]getItem- (已包装:无法加载操作配置: /tangosol coherence.xml)java.io.IOException:操作 缺少配置:“/tangosol coherence.xml”, loader=weblogic.utils.classloaders。ChangeAwareClassLoader@122ccff 查

我有一个应用程序正在使用一致性缓存,但在启动时出现以下错误:

2012-10-16 09:25:52153错误[resmanThreadExecutor-49]getItem- (已包装:无法加载操作配置: /tangosol coherence.xml)java.io.IOException:操作 缺少配置:“/tangosol coherence.xml”, loader=weblogic.utils.classloaders。ChangeAwareClassLoader@122ccff 查找程序:weblogic.utils.classloaders。CodeGenClassFinder@2794e3 注释: ResponseManagerNew@ResponseManager-0.1.0.BUILD-SNAPSHOT.war 位于com.tangosol.util.Base.ensureRuntimeException(Base.java:288) 位于com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:341) 位于com.tangosol.run.xml.XmlHelper.loadResource(XmlHelper.java:251) 位于com.tangosol.coherence.component.application.console.coherence.loadConfiguration(coherence.CDB:19) 位于com.tangosol.coherence.component.application.console.coherence.getServiceConfig(coherence.CDB:13) 在com.tangosol.coherence.component.application.console.coherence.ensureRunningLogger上(coherence.CDB:15) 位于com.tangosol.coherence.component.application.console.coherence.debugOutput(coherence.CDB:1) 位于com.tangosol.coherence.Component.\u trace(Component.CDB:3) 位于com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:37) 位于com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureRunningCacheService(SafeCacheService.CDB:3) 位于com.tangosol.coherence.component.util.SafeNamedCache$CacheAction.run(SafeNamedCache.CDB:3) 位于java.security.AccessController.doPrivileged(本机方法) 位于javax.security.auth.Subject.doAs(Subject.java:337) 位于com.tangosol.coherence.component.util.SafeNamedCache.restartNamedCache(SafeNamedCache.CDB:8) 位于com.tangosol.coherence.component.util.SafeNamedCache.ensureRunningNamedCache(SafeNamedCache.CDB:33) 位于com.tangosol.coherence.component.util.SafeNamedCache.getRunningNamedCache(SafeNamedCache.CDB:1) 位于com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1) 在com.ttech.rbm.coherence.commoncache.blocking.CacheManager.getItem(CacheManager.java:36)上 在com.tcell.resman.util.WebServiceUtil.callWriteResponseListWS(WebServiceUtil.java:152)上 位于com.tcell.resman.service.successmessage.impl.SuccessMessageFlow.processAccepted(SuccessMessageFlow.java:669) 位于com.tcell.resman.service.successmessage.impl.SuccessMessageFlow.start(SuccessMessageFlow.java:281) 位于com.tcell.resman.service.successmessage.impl.SuccessMessageFlow.execute(SuccessMessageFlow.java:78) 位于com.tcell.resman.service.successmessage.impl.SuccessMessageFlow$$FastClassByCGLIB$$79bf8ebe.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 位于org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688) 在org.springframework.aop.framework.ReflectiveMethodInvocation.procedue(ReflectiveMethodInvocation.java:150)上 位于org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:80) 位于java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 位于java.util.concurrent.FutureTask.run(FutureTask.java:138) 位于java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 位于java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 运行(Thread.java:619)

Coherence jar在我的war文件中,我不想把它放在weblogic启动类路径上。xml文件在jar(coherence.jar)中。它的版本是3.7.1.5


有什么想法吗?

首先,请确定您的配置xml文件是否位于正确的位置。之后,缓存的服务器端可能会出现问题。然后调试客户端和服务器之间的网络问题。默认情况下,文件位于coherence.jar中,jar位于y类路径中。关于网络问题,它不是。它正在本地运行。