Hello,

I have created a web service for WebSphere that uses a basic JCS configuration. 
 When I package and deploy for WAS under Windows on my local machine I have no 
issues.  When I deploy that same .ear file to my WAS running on Linux I get the 
following exception when I try to start my service in the WAS console:

[6/1/15 2:00:51:875 CEST] 00000093 BeansDeployer E BeansDeployer deploy 
java.lang.NullPointerException at 
java.util.Properties.load(Properties.java:356) at 
org.apache.commons.jcs.jcache.JCSCachingManager.readConfig(JCSCachingManager.java:95)
 at 
org.apache.commons.jcs.jcache.JCSCachingManager.<init>(JCSCachingManager.java:70)
 at 
org.apache.commons.jcs.jcache.JCSCachingProvider.getCacheManager(JCSCachingProvider.java:56)
 at 
org.apache.commons.jcs.jcache.extras.cdi.ExtraJCacheExtension.addJCacheBeans(ExtraJCacheExtension.java:81)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:619) at 
org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:285)
 at 
org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:455)
 at 
org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:452)
 at 
org.apache.webbeans.config.BeansDeployer.fireAfterBeanDiscoveryEvent(BeansDeployer.java:269)
 at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:180) at 
org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
 at 
org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)
 at 
com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)
 at 
com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)
 at 
com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)
 at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409) 
at 
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
 at 
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
 at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749) 
at 
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
 at 
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
 at 
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
 at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1177)
 at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
 at 
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
 at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
 at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:776)
 at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1379)
 at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2189)
 at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:435)
 at 
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
 at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:378)
 at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:126)
 at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:653)
 at 
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5477) 
at 
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5603)
 at 
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255) 
at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:667)
 at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:611)
 at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1269)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:619) at 
sun.reflect.misc.Trampoline.invoke(MethodUtil.java:87) at 
sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:619) at 
sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:291) at 
javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1260)
 at java.security.AccessController.doPrivileged(AccessController.java:300) at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
 at 
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1254)
 at 
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1092)
 at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813) at 
com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335) at 
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
 at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228) 
at 
com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
 at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247) 
at 
com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
 at 
com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
 at 
com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
 at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
 at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
 at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
 at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at 
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) 
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at 
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865) 

At first I figured it was an issue with WAS finding the cache.ccf file, but 
since it works fine under WAS Windows that wasn’t the problem.  Then I thought 
maybe it was a problem with the disk auxiliary cache settings, so I removed 
them, that didn’t solve the problem.  No matter what I do the service won’t 
start under Linux.

Given the exception included, can somebody please point me in the right 
direction on how to solve the problem?

Regards,

Barry Lulas | Rules Ninja at Teknovare | 727.433.9839 | blu...@teknovare.com

Reply via email to