error deploying RAR on AS8 (runs fine on JBoss4)

(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 inthis Connector Archive are loadable. Please refer to J2EE 1.4 Specification Section #8.1.2for 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 supportfor them.

</test-description>

</test>

<test>

<test-name>tests.connector.CheckResourceAdapterClassSerializable</test-name>

<test-assertion>The specified resourceadapter-classimplements the java.io.Serializable interface. Please refer to J2EE Connector Architecture Specification Section #17.5.1.2for 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 methodsfor [ EisProductName ].

</test-description>

</test>

</failed>

The ResourceAdapter class provides following methods:

public String getEisProductName(){

return eisProductNameProperty;

}

publicvoid 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

[3225 byte] By [thomasRa] at [2007-10-2 13:01:05]
# 1

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.

VikasAwasthia at 2007-7-13 10:21:37 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 2

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

thomasRa at 2007-7-13 10:21:37 > top of Java-index,Enterprise & Remote Computing,AVK Portability...