0 Replies Latest reply on Jan 30, 2017 2:57 AM by armahdi

    wildfly loading partial module

    armahdi

      I am trying to create a resource adapter. My resource adapter was working as long as the supplied jar was embedded within the ear file and the rar referenced it from the same classloader.

      For some reason ( to solve another issue) I created a global module for the jar, by placing it in the modules and putting the dependency in the related applications' jboss-deployment-descriptor.xml so there is only one place where this jar library can be referenced from. Now, Strangely, it loads the classes in the first package that it encounters the classes are in but it does not load the folders after that package and the classes in those folders.

       

      Caused by: org.jboss.jca.deployers.common.DeployException: IJ020060: Unable to inject: com.comp.integopn.ra.MyCompManagedConnectionFactory property: InteractionClass value: com.comp.integopn.ra.interactions.TxDirectInteraction

       

      When I verbose the ouput i see:

      [Loaded com.comp.integopn.ra.MyCompManagedConnectionFactory from jar:file:/C:/JAVA/WF9/wildfly-10.0.0.Final/modules/com/comp/common-progintegconnector/main/common-progintegconnector-1.6.jar!/]

      So it loads classes in  com.comp.integopn.ra package but not in com.comp.integopn.ra.interactions

       

       

      Why is it not loading the whole jar and all the classes and just the classes in the first package.

       

      my  resourceadapter configs:

                      <resource-adapter id="HnMRAConnectionFactory">

                          <archive>

                              CnMServices-ear-4.2.5.ear#HnMEisConnector-4.2.5.rar

                          </archive>

                          <transaction-support>NoTransaction</transaction-support>

                          <connection-definitions>

                              <connection-definition class-name="com.comp.integopn.ra.MyCompManagedConnectionFactory" jndi-name="java:/HnMRAConnectionFactory" pool-name="HnMRAConnectionFactory">

                                  <config-property name="Endpoint">

                                      AppServer://localhost:5164/appserv1

                                  </config-property>

                                  <config-property name="InteractionClass">

                                      com.comp.integopn.ra.interactions.TxDirectInteraction

                                  </config-property>

                                  <config-property name="ManagedConnectionClass">

                                      com.comp.dao.HnMDirectConnection

                                  </config-property>

                                  <pool>

                                      <min-pool-size>0</min-pool-size>

                                      <max-pool-size>3</max-pool-size>

                                  </pool>

                                  <security>

                                      <security-domain>HnMDomain</security-domain>

                                  </security>

                                  <timeout>

                                      <blocking-timeout-millis>5000</blocking-timeout-millis>

                                      <idle-timeout-minutes>5</idle-timeout-minutes>

                                  </timeout>

                              </connection-definition>

                          </connection-definitions>

                      </resource-adapter>