3 Replies Latest reply on May 9, 2003 5:12 AM by juhalindfors

    Where is the template project?

    jonathansinclair

      I am having great difficulties working my way through the QuickStart manual. I have installed JBoss and the server is up and running. Ant was also easy to get up and running. However I am having difficulties locating the template project. Can anyone give me a direct web-link to where this can be located other than http://www.sf.net/projects/jboss ?

        • 1. Re: Where is the template project?
          bsckwan

          http://sourceforge.net/project/showfiles.php?group_id=22866

          But there doesn't seems to be one that match the latest version of jboss (V3.2)

          • 2. Re: Where is the template project?
            mainster

            Dear JBoss community,

            I'm having deep trouble with JBoss.3.0TemplateAndExamples on JBoss 3.2, running on Windows XP Prof. OS,
            using guidelines in Jboss QuickStart-30x.pdf.


            Seems to me that template project and QuickStart guide are "out of sync" !

            "I am guessing it has to do with my XDoclet setup. The interfaces are not generated for the EJBs and so no EJBs can be deployed for the application..."

            Any ideas on this ?

            ===

            I have instaled Java2SDK 1.4.0_01 in

            C:/j2sdk1.4.0_01/

            I have installed JBoss 3.2.1 in

            c:\JBoss 3.2.1

            And created a JavaService using JavaService.exe from Alexandrias.

            http://localhost:8080/jmx-console

            shows the JMX Agent View just fine !

            I have installed the following:

            JBoss.3.0TemplateAndExamples downloaded from http://sourceforge.net/project/jboss (dated 25-08-2002)

            More exactly at:
            http://prdownloads.sourceforge.net/jboss/JBoss.3.0TemplateAndExamples.zip?download

            [hmmm. are those mirrors really all syncronized and up to date ?]

            in c:\JBoss.3.0TemplateAndExamples

            XDoclet 1.1.2 in

            c:\java\xdoclet-1.1.2

            JUnit 3.8.1 in

            c:\java\junit3.8.1

            Jakarta Ant 1.5.1 in

            c:\jakarta-ant-1.5.1

            ==============================

            My .ant.properties file has been edited to reflect the above installations as shown below

            # ATTENTION: this is an example file how to overwrite settings in this project
            # Please rename it to ".ant.properties" and adjust the settings to your needs

            # Set the path to the runtime JBoss directory containing the JBoss application server
            # ATTENTION: the one containing directories like "bin", "client", "server" etc.
            jboss.home=C:/jboss-3.2.1
            # Set the configuration name that must have a corresponding directory under
            # <jboss.home>/server
            jboss.configuration=default
            # Set the path to the root directory of the XDoclet distribution (see
            # http://www.sf.net/projects/xdoclet)
            xdoclet.home=C:/java/xdoclet-1.1.2
            # JUnit added
            junit.home=c:/java/junit3.8.1

            # Set this to "true" when you want to force the rebuild of the XDoclet generated
            # files (see XDoclet's attribute "force")
            xdoclet.force=false
            # Set the EJB version you want to use (1.1 or 2.0, see XDoclet's attribute "ejbspec")
            ejb.version=2.0
            # Set the JBoss version you want to use (2.4, 3.0 etc., see XDoclet's attribute "version")
            jboss.version=3.0
            # Set the DB type mapping (Hypersonic SQL, PostgreSQL etc., see XDoclet's attribute "typemapping")
            type.mapping=PostgreSQL
            # Set the DataSource name your are going to use (java:/DefaultDS etc., see XDoclet's attribute "datasource")
            datasource.name=java:/DefaultDS
            # Uncomment this and adjust the path to point directly to JAR file containing the servlet classes
            # Attention: By uncommenting this line you start the creation of a WAR file
            # servlet-lib.path=C:/jboss-3.2.1/lib/javax.servlet.jar
            servlet-lib.path=C:/j2sdk1.4.0_01/jre/lib/servlet.jar

            =========
            PS:
            Note in regards to ".ant.properties" file.
            In the "Jboss QuickStart-30x.pdf" guide, it mentions JUnit 3.8 and a junit.home variable
            which does NOT exist in ".ant.properties.example" file included with template project.

            "Jboss QuickStart-30x.pdf" guide mentions the properties file as changed to "build.properties" (formerly called "ant.properties"),
            so it seems the template project is outdated (still called ".ant.properties" !)

            Also mentions and describes a TestSuite class and a "testsuite" ant task in "build.xml" file that simply do not exist in this template application, that I got straight from sourceforge.

            How can this be. It seems manual and test application are not "in sync".


            Looking in the \template project:

            \src
            \etc
            \web
            \main
            \client
            \test
            \client
            TestClient.java
            \servlet
            .donotremove
            \ejb
            \entity
            TestBMPEntityBean.java
            TestEntityBean.java
            \message
            TestMessageDrivenBean.java
            \session
            SequenceGeneratorBean.java
            TestSessionBean.java
            \interfaces
            AbstractData.java
            InvalidValueException.java
            ServiceUnavailableException.java

            ====

            This directory structure differs very much from the one described in the manual.


            I then run the "main" ant task and get the result below.

            Note all the "cannot resolve symbol" errors !

            It is clear that the referenced interfaces in the import statements simply do not exist. I expect XDoclet is supposed to pre-generate these, but it just doesn't seem to happen for some reason....

            =====


            $ant main

            Buildfile: build.xml

            check-environment:

            check-jboss:

            wrong-jboss:

            check-xdoclet:

            wrong-xdoclet:

            init:
            [echo] build.compiler =
            [echo] user.home = C:\Documents and Settings\pc2
            [echo] java.home = c:\j2sdk1.4.0_01\jre
            [echo] ant.home = c:\jakarta-ant-1.5.1\bin\..
            [echo] jboss.home = C:/jboss-3.2.1
            [echo] xdoclet.home = C:/java/xdoclet-1.1.2
            [echo] java.class.path = c:\j2sdk1.4.0_01\lib\tools.jar;c:\jakarta-ant-1.5.
            1\bin\..\lib\xml-apis.jar;c:\jakarta-ant-1.5.1\bin\..\lib\xercesImpl.jar;c:\jaka
            rta-ant-1.5.1\bin\..\lib\optional.jar;c:\jakarta-ant-1.5.1\bin\..\lib\junit.jar;
            c:\jakarta-ant-1.5.1\bin\..\lib\ant.jar;c:\jakarta-ant-1.5.1\bin\lib


            xdoclet-generate:
            [ejbdoclet] Generating Javadoc
            [ejbdoclet] Javadoc execution
            [ejbdoclet] Loading source file C:\JBoss.3.0TemplateAndExamples\template\src\mai
            n\ejb\test\entity\TestBMPEntityBean.java...
            [ejbdoclet] Loading source file C:\JBoss.3.0TemplateAndExamples\template\src\mai
            n\ejb\test\entity\TestEntityBean.java...
            [ejbdoclet] Loading source file C:\JBoss.3.0TemplateAndExamples\template\src\mai
            n\ejb\test\message\TestMessageDrivenBean.java...
            [ejbdoclet] Loading source file C:\JBoss.3.0TemplateAndExamples\template\src\mai
            n\ejb\test\session\SequenceGeneratorBean.java...
            [ejbdoclet] Loading source file C:\JBoss.3.0TemplateAndExamples\template\src\mai
            n\ejb\test\session\TestSessionBean.java...
            [ejbdoclet] Constructing Javadoc information...
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:10: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntity
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestBMPEntity;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:11: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityData
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestBMPEntityData;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:12: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityHome
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestBMPEntityHome;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:13: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityPK
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestBMPEntityPK;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:16: cannot resolve symbol
            [ejbdoclet] symbol : class SequenceGenerator
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.SequenceGenerator;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:17: cannot resolve symbol
            [ejbdoclet] symbol : class SequenceGeneratorHome
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:85: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityData
            [ejbdoclet] location: class test.entity.TestBMPEntityBean
            [ejbdoclet] public void setValueObject( TestBMPEntityData pTestEntity )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:103: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityData
            [ejbdoclet] location: class test.entity.TestBMPEntityBean
            [ejbdoclet] public TestBMPEntityData getValueObject() {
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:306: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityData
            [ejbdoclet] location: class test.entity.TestBMPEntityBean
            [ejbdoclet] public TestBMPEntityPK ejbCreate( TestBMPEntityData pTestEntity )

            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:306: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityPK
            [ejbdoclet] location: class test.entity.TestBMPEntityBean
            [ejbdoclet] public TestBMPEntityPK ejbCreate( TestBMPEntityData pTestEntity )

            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:330: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityData
            [ejbdoclet] location: class test.entity.TestBMPEntityBean
            [ejbdoclet] public void ejbPostCreate( TestBMPEntityData pTestEntity )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:433: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityPK
            [ejbdoclet] location: class test.entity.TestBMPEntityBean
            [ejbdoclet] public TestBMPEntityPK ejbFindByPrimaryKey( TestBMPEntityPK pKey
            )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stBMPEntityBean.java:433: cannot resolve symbol
            [ejbdoclet] symbol : class TestBMPEntityPK
            [ejbdoclet] location: class test.entity.TestBMPEntityBean
            [ejbdoclet] public TestBMPEntityPK ejbFindByPrimaryKey( TestBMPEntityPK pKey
            )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:10: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntity
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestEntity;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:11: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityData
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestEntityData;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:12: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityHome
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestEntityHome;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:13: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityPK
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestEntityPK;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:16: cannot resolve symbol
            [ejbdoclet] symbol : class SequenceGenerator
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.SequenceGenerator;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:17: cannot resolve symbol
            [ejbdoclet] symbol : class SequenceGeneratorHome
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:95: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityData
            [ejbdoclet] location: class test.entity.TestEntityBean
            [ejbdoclet] public void setValueObject( TestEntityData pTestEntity )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:158: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityData
            [ejbdoclet] location: class test.entity.TestEntityBean
            [ejbdoclet] public TestEntityData getValueObject() {
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:462: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityData
            [ejbdoclet] location: class test.entity.TestEntityBean
            [ejbdoclet] public TestEntityPK ejbCreate( TestEntityData pTestEntity )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:462: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityPK
            [ejbdoclet] location: class test.entity.TestEntityBean
            [ejbdoclet] public TestEntityPK ejbCreate( TestEntityData pTestEntity )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\entity\Te
            stEntityBean.java:485: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityData
            [ejbdoclet] location: class test.entity.TestEntityBean
            [ejbdoclet] public void ejbPostCreate( TestEntityData pTestEntity )
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\T
            estSessionBean.java:22: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntity
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestEntity;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\T
            estSessionBean.java:23: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityData
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestEntityData;
            [ejbdoclet] ^
            [ejbdoclet] C:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\T
            estSessionBean.java:24: cannot resolve symbol
            [ejbdoclet] symbol : class TestEntityHome
            [ejbdoclet] location: package interfaces
            [ejbdoclet] import test.interfaces.TestEntityHome;
            [ejbdoclet] ^
            [ejbdoclet] Running
            [ejbdoclet] Generating Home interface for 'test.entity.TestBMPEntityBean'.
            [ejbdoclet] Generating Home interface for 'test.entity.TestEntityBean'.
            [ejbdoclet] Generating Home interface for 'test.session.SequenceGeneratorBean'
            .
            [ejbdoclet] Generating Home interface for 'test.session.TestSessionBean'.
            [ejbdoclet] Running
            [ejbdoclet] Generating Remote interface for 'test.entity.TestBMPEntityBean'.
            [ejbdoclet] Generating Remote interface for 'test.entity.TestEntityBean'.
            [ejbdoclet] Generating Remote interface for 'test.session.SequenceGeneratorBea
            n'.
            [ejbdoclet] Generating Remote interface for 'test.session.TestSessionBean'.
            [ejbdoclet] Running
            [ejbdoclet] Generating PK class for 'test.entity.TestBMPEntityBean'.
            [ejbdoclet] Generating PK class for 'test.entity.TestEntityBean'.
            [ejbdoclet] Running
            [ejbdoclet] Generating Data Object class for 'test.entity.TestBMPEntityBean'.
            [ejbdoclet] Generating Data Object class for 'test.entity.TestEntityBean'.
            [ejbdoclet] Running
            [ejbdoclet] Generating BMP class for 'test.entity.TestBMPEntityBean'.
            [ejbdoclet] Running
            [ejbdoclet] Generating CMP class for 'test.entity.TestEntityBean'.
            [ejbdoclet] Running
            [ejbdoclet] Generating EJB deployment descriptor.
            [ejbdoclet] Running
            [ejbdoclet] Generating jboss.xml.
            [ejbdoclet] Generating jaws.xml.
            [ejbdoclet] Generating jbosscmp-jdbc.xml.
            [ejbdoclet] 27 warnings

            compile:
            [mkdir] Created dir: C:\JBoss.3.0TemplateAndExamples\template\build\classes
            [javac] Compiling 22 source files to C:\JBoss.3.0TemplateAndExamples\templat
            e\build\classes
            [javac] Compiling 1 source file to C:\JBoss.3.0TemplateAndExamples\template\
            build\classes

            jar:
            [mkdir] Created dir: C:\JBoss.3.0TemplateAndExamples\template\build\deploy
            [mkdir] Created dir: C:\JBoss.3.0TemplateAndExamples\template\build\client
            [mkdir] Created dir: C:\JBoss.3.0TemplateAndExamples\template\build\bin
            [jar] Building jar: C:\JBoss.3.0TemplateAndExamples\template\build\deploy\
            ejb-test.jar
            [jar] Building jar: C:\JBoss.3.0TemplateAndExamples\template\build\client\
            client-test.jar

            compile-web:
            [mkdir] Created dir: C:\JBoss.3.0TemplateAndExamples\template\build\war

            war:
            [copy] Copying 1 file to C:\JBoss.3.0TemplateAndExamples\template\build\war
            \WEB-INF
            [war] Building war: C:\JBoss.3.0TemplateAndExamples\template\build\deploy\
            web-client.war

            deploy-server:
            [copy] Copying 2 files to C:\jboss-3.2.1\server\default\deploy

            create-client:
            [echo] JBoss Home on Unix: C:/jboss-3.2.1
            [echo] Java Home on Unix: C:/j2sdk1.4.0_01/jre
            [copy] Copying 1 file to C:\JBoss.3.0TemplateAndExamples\template\build\bin

            [copy] Copying 1 file to C:\JBoss.3.0TemplateAndExamples\template\build\bin

            [copy] Copying 1 file to C:\JBoss.3.0TemplateAndExamples\template\build\bin

            [copy] Copying 1 file to C:\JBoss.3.0TemplateAndExamples\template\build\bin


            main:

            BUILD SUCCESSFUL
            Total time: 7 seconds

            C:\JBoss.3.0TemplateAndExamples\template>

            =====

            I get the following result from the above:

            build\
            \bin
            \deploy
            \war
            \client
            \classes
            \META-INF
            \generate

            It seems I have a \client directory not described in the Quick Start Manual:

            the \client directory contains a client-test.jar file of 13 K

            =====

            I then execute the "run-client.bat" in the \build\bin directory generated

            The generated run-client.bat:

            @echo off

            set LCP=.
            REM Default locations of jars we depend on
            for %%i in (C:\jboss-3.2.1\client\*.jar) do call lcp.bat %%i
            for %%i in (..\..\lib\*.jar) do call lcp.bat %%i
            for %%i in (..\client\*.jar) do call lcp.bat %%i

            REM This automatically adds system classes to CLASSPATH
            if exist C:\j2sdk1.4.0_01\jre\lib\tools.jar set LCP=%LCP%;C:\j2sdk1.4.0_01\jre\lib\tools.jar

            echo C:\j2sdk1.4.0_01\jre\bin\java.exe -classpath "%LCP%" test.client.TestClient

            C:\j2sdk1.4.0_01\jre\bin\java.exe -classpath "%LCP%" test.client.TestClient

            =====

            Result of running run-client.bat:

            C:\JBoss.3.0TemplateAndExamples\template\build\bin>run-client.bat
            C:\j2sdk1.4.0_01\jre\bin\java.exe -classpath ".;C:\jboss-3.2.1\client\concurrent
            .jar;C:\jboss-3.2.1\client\getopt.jar;C:\jboss-3.2.1\client\gnu-regexp.jar;C:\jb
            oss-3.2.1\client\jacorb.jar;C:\jboss-3.2.1\client\jboss-client.jar;C:\jboss-3.2.
            1\client\jboss-common-client.jar;C:\jboss-3.2.1\client\jboss-iiop-client.jar;C:\
            jboss-3.2.1\client\jboss-j2ee.jar;C:\jboss-3.2.1\client\jboss-jaas.jar;C:\jboss-
            3.2.1\client\jboss-jsr77-client.jar;C:\jboss-3.2.1\client\jboss-net-client.jar;C
            :\jboss-3.2.1\client\jboss-system-client.jar;C:\jboss-3.2.1\client\jboss-transac
            tion-client.jar;C:\jboss-3.2.1\client\jbossall-client.jar;C:\jboss-3.2.1\client\
            jbossha-client.jar;C:\jboss-3.2.1\client\jbossjmx-ant.jar;C:\jboss-3.2.1\client\
            jbossmq-client.jar;C:\jboss-3.2.1\client\jbossmqha.jar;C:\jboss-3.2.1\client\jbo
            sssx-client.jar;C:\jboss-3.2.1\client\jcert.jar;C:\jboss-3.2.1\client\jmx-connec
            tor-client-factory.jar;C:\jboss-3.2.1\client\jmx-ejb-connector-client.jar;C:\jbo
            ss-3.2.1\client\jmx-invoker-adaptor-client.jar;C:\jboss-3.2.1\client\jmx-rmi-con
            nector-client.jar;C:\jboss-3.2.1\client\jnet.jar;C:\jboss-3.2.1\client\jnp-clien
            t.jar;C:\jboss-3.2.1\client\jsse.jar;C:\jboss-3.2.1\client\log4j.jar;..\client\c
            lient-test.jar" test.client.TestClient
            javax.naming.NameNotFoundException: test not bound
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
            at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
            at sun.rmi.transport.Transport$1.run(Transport.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
            60)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
            .java:701)
            at java.lang.Thread.run(Thread.java:536)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
            RemoteCall.java:247)
            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
            223)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
            at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at test.client.TestClient.main(TestClient.java:21)

            C:\JBoss.3.0TemplateAndExamples\template\build\bin>

            ===

            I then try to view the web-application in the browser

            http://localhost:8080/web-client/

            Web Client
            The next ID of a Test Entity is:





            Caugth exception: Could not dereference object




            Have fun and see you soon



            ===

            NOT MUCH FUN ;-(

            Shutting down the "JavaService.exe" process and starting JBoss via "run.bat" gives the following deployment notifications in the console:

            ====

            ....

            23:33:35,222 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
            ration 'checkIncompleteDeployments()'
            Cause: Incomplete Deployment listing:

            Packages waiting for a deployer:

            Incompletely deployed packages:
            [org.jboss.deployment.DeploymentInfo@dfa7bdcc { url=file:/C:/jboss-3.2.1/server/
            default/deploy/ejb-test.jar }
            deployer: org.jboss.ejb.EJBDeployer@716fa0
            status: Deployment FAILED reason: Error in ejb-jar.xml for Entity Bean test/Te
            stEntity: The ejb-name for a CMP2.x Entity must be a valid Java Identifier
            state: FAILED
            watch: file:/C:/jboss-3.2.1/server/default/deploy/ejb-test.jar

            lastDeployed: 1052429608462
            lastModified: 1052429608382
            mbeans:
            ]MBeans waiting for classes:

            MBeans waiting for other MBeans:


            23:33:35,222 INFO [URLDeploymentScanner] Started
            23:33:35,252 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.1/server/
            default/conf/jboss-service.xml
            23:33:35,252 INFO [Server] JBoss (MX MicroKernel) [3.2.1 (build: CVSTag=JBoss_3
            _2_1 date=200305041533)] Started in 15s:342ms
            23:33:53,167 ERROR [STDERR] javax.naming.NamingException: Could not dereference
            object. Root exception is
            23:33:53,167 ERROR [STDERR] javax.naming.NameNotFoundException: test not bound
            23:33:53,167 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming
            Server.java:495)
            23:33:53,177 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming
            Server.java:503)
            23:33:53,177 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingS
            erver.java:509)
            23:33:53,177 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServ
            er.java:253)
            23:33:53,177 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServ
            er.java:256)
            23:33:53,177 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
            gContext.java:492)
            23:33:53,177 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
            gContext.java:471)
            23:33:53,177 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCon
            text.java:347)
            23:33:53,177 ERROR [STDERR] at org.jnp.interfaces.NamingContext.resolveLink(
            NamingContext.java:928)
            23:33:53,177 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
            gContext.java:577)
            23:33:53,177 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
            gContext.java:606)
            23:33:53,177 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
            gContext.java:471)
            23:33:53,177 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCon
            text.java:347)
            23:33:53,177 ERROR [STDERR] at org.apache.jsp.index_jsp._jspService(index_js
            p.java:53)
            23:33:53,177 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service
            (HttpJspBase.java:137)
            23:33:53,177 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
            rvlet.java:853)
            23:33:53,177 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.s
            ervice(JspServletWrapper.java:210)
            23:33:53,177 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJ
            spFile(JspServlet.java:295)
            23:33:53,177 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(
            JspServlet.java:241)
            23:33:53,177 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
            rvlet.java:853)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handl
            e(ServletHolder.java:360)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandl
            er.dispatch(WebApplicationHandler.java:294)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.dispatch
            (Dispatcher.java:192)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.forward(
            Dispatcher.java:129)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.Default.handleGet(D
            efault.java:274)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.Default.service(Def
            ault.java:191)
            23:33:53,177 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
            rvlet.java:853)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handl
            e(ServletHolder.java:360)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandl
            er.dispatch(WebApplicationHandler.java:294)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.hand
            le(ServletHandler.java:558)
            23:33:53,177 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpConte
            xt.java:1714)
            23:33:53,177 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationConte
            xt.handle(WebApplicationContext.java:507)
            23:33:53,177 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpConte
            xt.java:1664)
            23:33:53,177 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServe
            r.java:863)
            23:33:53,177 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:460)

            23:33:53,177 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpC
            onnection.java:775)
            23:33:53,177 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(Ht
            tpConnection.java:939)
            23:33:53,177 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpCo
            nnection.java:792)
            23:33:53,177 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnect
            ion(SocketListener.java:201)
            23:33:53,177 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(Thread
            edServer.java:289)
            23:33:53,177 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(Th
            readPool.java:455)

            ======

            As can be seen, a lot of errors connected to the test webapplication.

            I take note of the following errors from above, but I'm not sure how to fix these errors. :

            23:33:35,222 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
            ration 'checkIncompleteDeployments()'
            Cause: Incomplete Deployment listing:


            Incompletely deployed packages:
            [org.jboss.deployment.DeploymentInfo@dfa7bdcc { url=file:/C:/jboss-3.2.1/server/
            default/deploy/ejb-test.jar }
            deployer: org.jboss.ejb.EJBDeployer@716fa0
            status: Deployment FAILED reason: Error in ejb-jar.xml for Entity Bean test/Te
            stEntity: The ejb-name for a CMP2.x Entity must be a valid Java Identifier
            state: FAILED


            =====

            As I have described above, there are several inconsistencies in the documentation in relation to the actual template application.

            It seems these inconsitencies cause my troubles, that however hard I try to follow your guidelines, I can't make the template application work.

            I cannot currently figure out how to fix all these inconsistencies.

            Please give me some guidance on this. I'm not a deployment expert, but willing to learn ;-)

            I am guessing it has to do with my XDoclet setup. The Interfaces are not generated for the EJBs and so no EJBs can be deployed for the application...

            Any ideas on this ?


            Kind regards,


            Mainster

            • 3. Re: Where is the template project?

              Do NOT spam the forums!