[jboss-jira] [JBoss JIRA] Created: (JBAS-3479) JBoss AS - J2EE Tutorial example/document errors

Wenbo Zhu (JIRA) jira-events at jboss.com
Fri Aug 4 20:04:11 EDT 2006


JBoss AS - J2EE Tutorial example/document errors
------------------------------------------------

                 Key: JBAS-3479
                 URL: http://jira.jboss.com/jira/browse/JBAS-3479
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Other
    Affects Versions: JBossAS-4.0.4.GA
         Environment: JDK 5, client on windows 2000, and server on RHEL 4.  Gone through the complete j2ee (jboss) tutorial with distributed client and server.


            Reporter: Wenbo Zhu


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



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list