2 Replies Latest reply: Feb 23, 2006 1:09 AM by 843844 RSS

    error deploying RAR on AS8 (runs fine on JBoss4)

    843844
      (This thread moved here from Sun System Application Server - Migration)

      Hi Vikas.
      Below is an excerpt from the verifiers results file:
      <failed>
      <test>
      <test-name>tests.connector.ConnectorArchiveClassesLoadable</test-name>
      <test-assertion>All classes in this Connector Archive are loadable. Please refer to J2EE 1.4 Specification Section #8.1.2 for further information.</test-assertion>
      <test-description>For [ app-adapter#app-adapter#app-adapter ]
      
      
      classes [ com.sun.jdmk.comm.HtmlAdaptorServer ] referenced by [ org.apache.log4j.jmx.Agent] are not found
      
      
      Please either bundle the above mentioned classes in the application or use optional packaging support for them.
      </test-description>
      </test>
      <test>
      <test-name>tests.connector.CheckResourceAdapterClassSerializable</test-name>
      <test-assertion>The specified resourceadapter-class implements the java.io.Serializable interface. Please refer to J2EE Connector Architecture Specification Section #17.5.1.2 for further information.</test-assertion>
      <test-description>For [ app-adapter#app-adapter#app-adapter ]
      Error: resourceadapter-class [ ases.jca.AppAdapter ] does not implement java.io.Serializable.
      </test-description>
      </test>
      <test>
      <test-name>tests.connector.CheckResourceAdapterJavaBean</test-name>
      <test-assertion> </test-assertion>
      <test-description>For [ app-adapter#app-adapter#app-adapter ]
      Error: The resourceadapter-class [ ases.jca.AppAdapter ] does not provide accessor methods for [ EisProductName ].
      </test-description>
      </test>
      </failed>
      The ResourceAdapter class provides following methods:
          public String getEisProductName() {
              return eisProductNameProperty;
          }
      
          public void setEisProductName(final String eisProductNameProperty) {
              this.eisProductNameProperty = eisProductNameProperty;
          }
      and finally an excerpt from the DD
          <resourceadapter-class>ases.jca.AppAdapter</resourceadapter-class>
            <config-property>
               <description>Name der ASES-Anwendung</description>
              <config-property-name>EisProductName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>Test ASES-EIS</config-property-value>
            </config-property>
      Thanks in advance.

      Thomas
        • 1. Re: error deploying RAR on AS8 (runs fine on JBoss4)
          843844
          Well, this seems to be another issue in verifier. The test 'CheckResourceAdapterJavaBean' has a bug. Thanks for reporting it. This will be fixed in a future release.

          The other failure reported by verifier test ConnectorArchiveClassesLoadable seems to be correct. Since you have not asked anything about that failure I guess you have understood the problem in your application.
          • 2. Re: error deploying RAR on AS8 (runs fine on JBoss4)
            843844
            Hi Vikas,

            yes the 3rd failure seems to be correct to me. But I haven't an idea to fix it. I used the log4j and put it into the RAR. But where to find com.sun....? May be it is not an issue when deploying on a server because the missed classes could be found by the class loaders. But the com.sun classes are not published to be used by a portable application, so it's my mistake to use log4j (at least that version I do). However, it's good to have a tool like verifier that tells about potential problems.

            Thomas