-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
None
-
JDK 5, client on windows 2000, and server on RHEL 4. Gone through the complete j2ee (jboss) tutorial with distributed client and server.
A few errors exist in the current version of JBoss App. Server J2EE tutorial - http://docs.jboss.org/jbossas/getting_started/v5/html/
1. .\j2eetutorial14\examples\bank\jboss-build.xml - target: app-client.jar requires 4 different classes
<jar jarfile="jar/app-client.jar">
<metainf dir="dd/client" includes="*.xml"/>
<fileset dir="${build.dir}">
<include name="com/sun/ebank/appclient/**"/>
<include name="com/sun/ebank/ejb/exception/**"/>
<include name="com/sun/ebank/util/**"/>
<!-- actually required classes -->
<include name="com/sun/ebank/ejb/customer/CustomerControllerHome.class"/>
<include name="com/sun/ebank/ejb/customer/CustomerController.class"/>
<include name="com/sun/ebank/ejb/account/AccountControllerHome.class"/>
<include name="com/sun/ebank/ejb/account/AccountController.class"/>
</fileset>
</jar>
2. .\j2eetutorial14\examples\bank\jboss-build.xml - client class path misses certain jars to run all the examples
<path id="client.classpath">
<pathelement location="${build.dir}"/>
<fileset dir="${jboss.home}/client">
<include name="*/.jar"/>
</fileset>
<!-- required for running the web-service example - the use of xerces impl. jar. Alternatively, it could be added to client dir -->
<fileset dir="${jboss.home}/lib/endorsed">
<include name="*/.jar"/>
</fileset>
</path>
3. doc error: http://docs.jboss.org/jbossas/getting_started/v5/html/ws.html#d0e1370 (section 5.2)
http://localhost:8080/bankws-ejb/TellerService?wsdl. == should be => http://localhost:8080/bankws-ejb/TellerBean?wsdl.
4. .\j2eetutorial14\examples\ejb\simplemessage\jboss-build.xml, and a few others (a suggestion for client app targets in general)
<!-- Run the standalone JMS client -->
<target name="run-mdb">
<java classname="SimpleMessageClient" fork="yes">
<classpath>
<!-- include dd directly - to facilitate switching to a remote server -->
<pathelement path="dd"/>
<pathelement path="jar/mdb-app-client.jar"/>
<path refid="client.classpath"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
</target>
There're also some minor issues with mySQL and Oracle examples, but I guess it's out of the jboss AS scope anyway.
Thanks,
Wenbo