Trying transactions on WebSphere 6.1
by Dilip Ladhani
Hey guys,
I have a WebSphere 6.1 app server and I use RAD (eclipse based) for my
development. I got the basic operations with the JbossCache (POJO)
working, however I am having trouble with the transactions.
I realized I have to set the "javaAgent" to instrument my classes, but
I am not sure how to do this in Websphere 6.1. Where in the console
(or file) can I go and set this?
thanks
15 years, 10 months
JbossCache POJO 2.1.0 on WebSphere
by Dilip Ladhani
Hello Everyone,
I am trying to get JbossCache POJO working in my RSA 7 environment
(RSA has Websphere 6.1 as the plugin server) and running into issues.
I downloaded JbossCache POJO 2.1.0 and copied all the jars from the
"lib" folder to my EAR. I also copied jbosscache-pojo.jar from root of
the download to my EAR. My WAR is (via the Manifest is pointing to all
these jars in the EAR.
I have a simple class and I get an error at the following line. The
configFile is a string with Absolute path to the replSync-service.xml.
cache=PojoCacheFactory.createCache(configFile);
I tried to debug this by attaching the source and it seems it is
unable to load the class PojoCacheImpl. I will copy my stacktrace at
the bottom. I am not sure why this file can't get loaded. Any ideas?
Thanks...
I could have copied the same jars to my WEB-INF folder in my WAR but I
get the same problem
[7/9/08 10:44:24:831 EDT] 0000001f ServletWrappe E SRVE0068E:
Uncaught exception thrown in one of the service methods of the
servlet: CachePOJO. Exception thrown :
java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:214)
at org.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:29)
at com.ford.aps.CachePOJO.doPost(CachePOJO.java:40)
at com.ford.aps.CachePOJO.doGet(CachePOJO.java:31)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:264)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
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:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.NullPointerException
at org.jboss.aop.Domain$1.run(Domain.java:107)
at java.security.AccessController.doPrivileged(AccessController.java:193)
at org.jboss.aop.Domain.getDomainName(Domain.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.initialise(PojoCacheImpl$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.<init>(PojoCacheImpl$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.<clinit>(PojoCacheImpl.java)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
... 26 more
[7/9/08 10:44:24:846 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened
incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc\server2_2e942e94_08.07.09_10.44.24_0.txt
[7/9/08 10:44:24:893 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC
closed incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc\server2_2e942e94_08.07.09_10.44.24_0.txt
[7/9/08 10:44:24:909 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened
incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc\server2_2e942e94_08.07.09_10.44.24_1.txt
[7/9/08 10:44:24:956 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC
closed incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc\server2_2e942e94_08.07.09_10.44.24_1.txt
[7/9/08 10:44:24:956 EDT] 0000001f WebApp E [Servlet
Error]-[CachePOJO]: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:214)
at org.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:29)
at com.ford.aps.CachePOJO.doPost(CachePOJO.java:40)
at com.ford.aps.CachePOJO.doGet(CachePOJO.java:31)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:264)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
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:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.NullPointerException
at org.jboss.aop.Domain$1.run(Domain.java:107)
at java.security.AccessController.doPrivileged(AccessController.java:193)
at org.jboss.aop.Domain.getDomainName(Domain.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.initialise(PojoCacheImpl$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.<init>(PojoCacheImpl$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.<clinit>(PojoCacheImpl.java)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
... 26 more
15 years, 10 months