Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2013-08-09T21:54:59Z by gurdaneta
gurdaneta
gurdaneta
13 Posts
ACCEPTED ANSWER

Pinned topic Jpa loader Application issues

‏2013-08-08T23:54:06Z |

Hi All,

I am using the Jpaloader feature for extreme scale, i have the open jpa provider, and for my compile process, the geronimo-jpa-2.jar.

I am using the traditional deploy on the grid directory for liberty server with extreme scale, but I do not know why I got this exception: it is related to JPATxCallback,

8/8/13 16:43:03:558 PDT] 0000013a m.ibm.ws.objectgrid.server.container.ObjectGridContainerImpl I CWOBJ7509I: Placement work, workId 0, from catalog server for partition IBM_SYSTEM_work.status:work.status:0  intended for container claimsAllInOneServer_C-0 was received.
[8/8/13 16:43:03:590 PDT] 00000139 .ibm.ws.objectgrid.server.catalog.placement.WorkExecutorImpl I CWOBJ7507I: The placement of workId:grid:mapSet:partition 0:IBM_SYSTEM_route.table:route.table:0; has been sent to container claimsAllInOneServer_C-0.
[8/8/13 16:43:03:590 PDT] 0000013b m.ibm.ws.objectgrid.server.container.ObjectGridContainerImpl I CWOBJ7509I: Placement work, workId 0, from catalog server for partition IBM_SYSTEM_route.table:route.table:0  intended for container claimsAllInOneServer_C-0 was received.
[8/8/13 16:43:03:605 PDT] 00000011 com.ibm.ws.logging.internal.impl.Incident                    I FFDC1015I: An FFDC Incident has been created: "com.ibm.websphere.objectgrid.config.ObjectGridConfigurationException: CWOBJ3019E: The class com.ibm.websphere.objectgrid.jpa.JPATxCallback cannot be found for ObjectGrid Airports. com.ibm.ws.xs.osgi.ContainerService.start 100" at ffdc_13.08.08_16.43.03.0.log
[8/8/13 16:43:03:605 PDT] 00000011 com.ibm.ws.xs.server.services.FileMonitorImpl                E CWOBJ0095E: The eXtreme Scale server failed to start container grids, from the monitored grids directory.
[8/8/13 16:43:03:652 PDT] 00000011 com.ibm.ws.logging.internal.impl.Incident                    I FFDC1015I: An FFDC Incident has been created: "com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.config.ObjectGridConfigurationException: CWOBJ3019E: The class com.ibm.websphere.objectgrid.jpa.JPATxCallback cannot be found for ObjectGrid Airports. com.ibm.ws.xs.server.services.FileMonitorImpl.startContainersByName 310" at ffdc_13.08.08_16.43.03.1.log
[8/8/13 16:43:03:730 PDT] 0000013a com.ibm.ws.objectgrid.replication.ReplicatedPartition        I CWOBJ1511I: IBM_SYSTEM_work.status:work.status:0 (primary) is open for business.
[8/8/13 16:43:03:730 PDT] 0000013b com.ibm.ws.objectgrid.replication.ReplicatedPartition        I CWOBJ1511I: IBM_SYSTEM_route.table:route.table:0 (primary) is open for business.
[8/8/13 16:43:03:730 PDT] 0000013b m.ibm.ws.objectgrid.server.container.ObjectGridContainerImpl I CWOBJ7508I:
 

Please, I appreciate any idea why i am getting it?.

Thanks,

gurdaneta

 

 

 

  • lisaw
    lisaw
    101 Posts
    ACCEPTED ANSWER

    Re: Jpa loader Application issues

    ‏2013-08-09T14:19:17Z  in response to gurdaneta

    I'm unsure what your objectgrid.xml or server.xml looks like, but check to see if it's configured correctly.

    objectgrid.xml will need the JPATxCallback under your Airport grid

    <bean id="TransactionCallback" className="com.ibm.websphere.objectgrid.jpa.JPATxCallback">
        <property name="persistenceUnitName" type="java.lang.String" value="myPU" />
     </bean>
    

    Liberty will need WXS and JPA features loaded   

    <featureManager>
        <feature>eXtremeScale.server-1.1</feature>
        <feature>osgi.jpa-1.0</feature>
    </featureManager>
    

    Check the ffdc files for more information on what's going wrong.

     

     

     

    • gurdaneta
      gurdaneta
      13 Posts
      ACCEPTED ANSWER

      Re: Jpa loader Application issues

      ‏2013-08-09T21:54:59Z  in response to lisaw

      Thanks Lisaw, it is working, but I have a question to you, I am getting the exception, When I execute the program

      it said:

      [8/9/13 14:16:49:730 PDT] 00000172 com.ibm.ws.objectgrid.map.BaseMap                            W CWOBJ0006W: An exception occurred: java.lang.IllegalArgumentException: The property entityClassName is not configured for the JPALoader of ObjectGrid Airports map AirportCodeInfo.
      [8/9/13 14:16:49:730 PDT] 00000172 com.ibm.ws.objectgrid.ObjectGridImpl                         W CWOBJ0006W: An exception occurred: com.ibm.websphere.objectgrid.plugins.LoaderException: java.lang.IllegalArgumentException: The property entityClassName is not configured for the JPALoader of ObjectGrid Airports map AirportCodeInfo.
      [8/9/13 14:16:49:730 PDT] 00000169 com.ibm.ws.objectgrid.replication.ReplicatedPartition        E CWOBJ1558E: The primary (Airports:airport:2) shard failed to activate. The exception that occurred is com.ibm.websphere.objectgrid.plugins.LoaderException: java.lang.IllegalArgumentException: The property entityClassName is not configured for the JPALoader of ObjectGrid Airports map AirportCodeInfo..

      Any ideas?

       

      the objectgrid has the completed configuration:

      <?xml version="1.0" encoding="UTF-8"?>

      <objectGridConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd"
          xmlns="http://ibm.com/ws/objectgrid/config">
         
          <objectGrids>
              <objectGrid name="Airports" txTimeout="60">
                  <bean id="TransactionCallback"
                      className="com.ibm.websphere.objectgrid.jpa.JPATxCallback">
                      <property name="persistenceUnitName" type="java.lang.String"
                      value="claims"/>
                  </bean>
                  <backingMap name="AirportCodeInfo" lockStrategy="PESSIMISTIC"
                      copyMode="COPY_TO_BYTES" nullValuesSupported="false"
                      pluginCollectionRef="airportCodeInfoPlugins" />
                  <querySchema>
                      <mapSchemas>
                          <mapSchema mapName="AirportCodeInfo"
                              valueClass="com.ibm.websphere.xs.sample.claims.domain.ClaimsData" />
                      </mapSchemas>
                  </querySchema>
              </objectGrid>
          </objectGrids>

          <backingMapPluginCollections>
              <backingMapPluginCollection id="airportCodeInfoPlugins">
                  <!--<bean id="Loader" osgiService="claimsLoader1" />-->
                  <bean id="Loader"
                     className="com.ibm.websphere.objectgrid.jpa.JPALoader">
                     <property
                     name="entityClassName"
                     type="java.lang.String"  
                     value="com.ibm.websphere.xs.sample.claims.domain.JpClaimsData"/>
                  </bean>
                  <bean id="MapIndexPlugin" className="com.ibm.websphere.objectgrid.plugins.index.HashIndex">
                      <property name="Name" type="java.lang.String" value="CODE"
                          description="index name" />
                      <property name="RangeIndex" type="boolean" value="true"
                          description="true for MapRangeIndex" />
                      <property name="AttributeName" type="java.lang.String"
                          value="Code" description="attribute name" />
                  </bean>
              </backingMapPluginCollection>
          </backingMapPluginCollections>
      </objectGridConfig>