1 2 3 Previous Next 35 Replies Latest reply on Mar 19, 2013 4:52 AM by jamesviet Go to original post
      • 30. Re: Where can I configure JBoss AS7 + Infinispan so that I can see cache statistics?
        pbalachandran

        James:

         

        JBoss uses Hibernate4 as the JPA provider (as you pointed out).  However your applications can be written to use JPA or Hibernate as the case may be.  My intent was to experiment with Infinsipan Caching.  To this end, I started with:

         

        a. Getting a Hibernate application to use L2 caching via Infinispan - I wasn't successful with this (see posts leading up to this one)

        b. Since JBoss appeared to have designed Infinispan with a focus on JPA, I switched tracks and got a JPA application work with Infinispan (attached code).

         

        Details:

         

        * JBoss 7.1.0.Final

        * Simple Web Service

        * JPA layer

        * Enable L2 Cache

        • 31. Re: Where can I configure JBoss AS7 + Infinispan so that I can see cache statistics?
          jamesviet

          Thank Pradeep, I will try and let you know if I have any problems.

          • 32. Re: Where can I configure JBoss AS7 + Infinispan so that I can see cache statistics?
            jamesviet

            Hi Pradeep,

             

            With your setting, i met error when build maven:

             

            It couldn't download "istack-commons-runtime-1.1.jar"

             

            Downloading: maven2/com/sun/istack/istack-commons-runtime/1.1/istack-commons-runtime-1.1.jar ....

             

            I try to search in jboss forum, but I haven't resolved it yet. Do you have any comment?

            • 33. Re: Where can I configure JBoss AS7 + Infinispan so that I can see cache statistics?
              pbalachandran

              James:

               

              I am not explicity referencing that JAR and I don't see any transitive dependencies being pulled in either - meaning when I compile I don't see this JAR being pulled in.  So it is possible that you are adding something that is in turn looking for istack JAR.  You can try declaring that as optional to get around it.

              • 34. Re: Where can I configure JBoss AS7 + Infinispan so that I can see cache statistics?
                jamesviet

                Hi Pradeep,

                 

                I uses jaxws-rt version 2.2.6 and problem was relsoved. Then I deployed project successful.

                 

                But when I went to: http://192.168.95.22:8080/infinispanJPA-WS-1.0.0/KeyValueService

                 

                I met problem like this:

                 

                This XML file does not appear to have any style information associated with it. The document tree is shown below.

                 

                      <soap:Envelope><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>No such operation: null (HTTP GET PATH_INFO: /infinispanJPA-WS-1.0.0/KeyValueServicenull)</faultstring></soap:Fault></soap:Body></soap:Envelope>

                 

                 

                Server.log:

                2013-03-19 14:44:52,315 WARNING [http--192.168.95.22-8080-1]-[org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://ws.corelogic.com}KeyValueService has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: No such operation: null (HTTP GET PATH_INFO: /infinispanJPA-WS-1.0.0/KeyValueServicenull)

                    at org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInterceptor.java:88)

                    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

                    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

                    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

                    at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

                    at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

                    at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

                    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

                    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:113)

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

                    at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

                    at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                    at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:67)

                    at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:48)

                    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)

                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                    at java.lang.Thread.run(Thread.java:722)

                 

                Would you like give me some advise?

                 

                Thanks,

                • 35. Re: Where can I configure JBoss AS7 + Infinispan so that I can see cache statistics?
                  jamesviet

                  Hi Pradeep,

                   

                  I got it. I used SOAP UI with endpoint  http://abc:8080/infinispanJPA-WS-1.0.0/KeyValueService  and imported wsdl file. I run all operations successful.

                   

                  Thanks in advande.

                  1 2 3 Previous Next