14 Replies Latest reply on Oct 8, 2002 12:27 AM by schaefera

    Where's the Template ??

    s3ma4


      I am reading the docs, and I want to play with the template program discussed on p 25, and it's nowhere to be found in my distribution!!
      Where is it ?
      I am using jboss-3.0.2.zip which I just d'l'ed today.
      restlessly,
      Nat

        • 1. Re: Where's the Template ??
          rasmusmohr

          It's located at the same spot where you found the docs.

          • 2. Re: Where's the Template ??
            oakleaf

            What the name of the template file?

            • 3. Re: Where's the Template ??
              oakleaf

              I found the template project. It's a seperate download from the getting started guide.

              • 4. Re: Where's the Template ??
                marc.fleury

                Good point, maybe we should include the template with the download.

                • 5. Re: Where's the Template ??
                  dansv

                  That might be a good idea. By the way, the QuickStart 3.0 documentation says that there should be an .ant.properties file in the templates. I just downloaded it and can't find neither that file nor an .ant.properties.example file in that zip archive. Does anybody else know where to find it?

                  • 6. Re: Where's the Template ??
                    mborland

                    the .ant.properties.example file is part of the Template download (right in the template subdirectory)...but remember a 'dot' file is invisible unless (in the case of ls) you use ls -a.

                    I hope this helps.

                    • 7. Re: Where's the Template ??
                      mkithany

                      Hi JBosses,

                      What si this Template about...? Could you give me more information...?

                      Thanks!

                      Manoj G. Kithany

                      • 8. Re: Where's the Template ??
                        mkithany

                        Hi JBosses,

                        What si this Template about...? Could you give me more information...?

                        Thanks!

                        Manoj G. Kithany

                        • 9. Re: Where's the Template ??
                          toastchum
                          • 10. Re: Where's the Template ??
                            schaefera

                            Hi

                            The template project should allow a new JBoss user to create a simple J2EE project with some plattform independent tools like ANT and XDoclet.

                            You can take the template, add your own EJB, JSP and client code, compile and if the .ant.properties file is setup correctly it will also deploy automatically.

                            I used it often to create a test scenario when help JBoss users with their problems.

                            Hope this helps - Andy

                            • 11. Re: Where's the Template ??
                              schaefera

                              No, I don't think so. Currently you can view the PDF file without saving and extracting a file. On the other hand you can use the template project w/o downloading the PDF file.
                              I also think that the template project will most likely be updated often than the PDF file.

                              Have fun - Andy

                              • 12. Re: Where's the Template ??
                                schaefera

                                The ".ant.properties" files contains paths with a user specific and changes of this file should not trigger changes on CVS. So I just delivered an example file called ".ant.properties.example" file that you could copy/rename to ".ant.properties".
                                ATTENTION: under UNIX this file is not listed with "ls" use "ls -a" but I hope that every Unix user knows that.

                                Have fun - Andy

                                • 13. Re: Where's the Template ??
                                  tim_perdue

                                  Unfortunately, I am getting a compile error when trying to run ant on the "Template" project.

                                  In addition, port :8082 is saying "connection refused", while port :8080 appears to work as it is supposed to.

                                  xdoclet-generate:
                                  [ejbdoclet] Generating Javadoc
                                  [ejbdoclet] Javadoc execution
                                  [ejbdoclet] Loading source file C:\java\jb-test\src\main\ejb\test\entity\TestBMP
                                  EntityBean.java...
                                  [ejbdoclet] Loading source file C:\java\jb-test\src\main\ejb\test\entity\TestEnt
                                  ityBean.java...
                                  [ejbdoclet] Loading source file C:\java\jb-test\src\main\ejb\test\message\TestMe
                                  ssageDrivenBean.java...
                                  [ejbdoclet] Loading source file C:\java\jb-test\src\main\ejb\test\session\Sequen
                                  ceGeneratorBean.java...
                                  [ejbdoclet] Loading source file C:\java\jb-test\src\main\ejb\test\session\TestSe
                                  ssionBean.java...
                                  [ejbdoclet] Constructing Javadoc information...
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestBMPEntityBean.java:10:
                                  Class test.interfaces.TestBMPEntity not found in import.
                                  [ejbdoclet] import test.interfaces.TestBMPEntity;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestBMPEntityBean.java:11:
                                  Class test.interfaces.TestBMPEntityData not found in import.
                                  [ejbdoclet] import test.interfaces.TestBMPEntityData;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestBMPEntityBean.java:12:
                                  Class test.interfaces.TestBMPEntityHome not found in import.
                                  [ejbdoclet] import test.interfaces.TestBMPEntityHome;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestBMPEntityBean.java:13:
                                  Class test.interfaces.TestBMPEntityPK not found in import.
                                  [ejbdoclet] import test.interfaces.TestBMPEntityPK;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestBMPEntityBean.java:16:
                                  Class test.interfaces.SequenceGenerator not found in import.
                                  [ejbdoclet] import test.interfaces.SequenceGenerator;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestBMPEntityBean.java:17:
                                  Class test.interfaces.SequenceGeneratorHome not found in import.
                                  [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestEntityBean.java:10: Cla
                                  ss test.interfaces.TestEntity not found in import.
                                  [ejbdoclet] import test.interfaces.TestEntity;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestEntityBean.java:11: Cla
                                  ss test.interfaces.TestEntityData not found in import.
                                  [ejbdoclet] import test.interfaces.TestEntityData;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestEntityBean.java:12: Cla
                                  ss test.interfaces.TestEntityHome not found in import.
                                  [ejbdoclet] import test.interfaces.TestEntityHome;
                                  [ejbdoclet] ^
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestEntityBean.java:13: Cla
                                  ss test.interfaces.TestEntityPK not found in import.
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestBMPEntity -
                                  ignoring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestBMPEntityDa
                                  ta - ignoring!
                                  [ejbdoclet] import test.interfaces.TestEntityPK;
                                  [ejbdoclet] ^
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestBMPEntityHo
                                  me - ignoring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestBMPEntityPK
                                  - ignoring!
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestEntityBean.java:16: Cla
                                  ss test.interfaces.SequenceGenerator not found in import.
                                  [ejbdoclet] import test.interfaces.SequenceGenerator;
                                  [ejbdoclet] ^
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.SequenceGenerat
                                  or - ignoring!
                                  [ejbdoclet] C:\java\jb-test\src\main\ejb\test\entity\TestEntityBean.java:17: Cla
                                  ss test.interfaces.SequenceGeneratorHome not found in import.
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.SequenceGenerat
                                  orHome - ignoring!
                                  [ejbdoclet] javadoc: warning - Cannot find class test.interfaces.TestBMPEntityDa
                                  ta
                                  [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
                                  [ejbdoclet] ^
                                  [ejbdoclet] javadoc: warning - Cannot find class test.interfaces.TestBMPEntityPK

                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestEntity - ig
                                  noring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestEntityData
                                  - ignoring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestEntityHome
                                  - ignoring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestEntityPK -
                                  ignoring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.SequenceGenerat
                                  or - ignoring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.SequenceGenerat
                                  orHome - ignoring!
                                  [ejbdoclet] javadoc: warning - Cannot find class test.interfaces.TestEntityData
                                  [ejbdoclet] javadoc: warning - Cannot find class test.interfaces.TestEntityPK
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestEntity - ig
                                  noring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestEntityData
                                  - ignoring!
                                  [ejbdoclet] javadoc: warning - Import not found: test.interfaces.TestEntityHome
                                  - ignoring!
                                  [ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, method star
                                  t has thrown an exception java.lang.reflect.InvocationTargetException
                                  [ejbdoclet] java.lang.NoClassDefFoundError: org/apache/tools/ant/types/Enumerate
                                  dAttribute
                                  [ejbdoclet] at java.lang.Class.getField0(Native Method)
                                  [ejbdoclet] at java.lang.Class.getDeclaredField(Class.java:1113)
                                  [ejbdoclet] at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:300)
                                  [ejbdoclet] at java.security.AccessController.doPrivileged(Native Method)
                                  [ejbdoclet] at java.io.ObjectStreamClass.init(ObjectStreamClass.java:293)
                                  [ejbdoclet] at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.ja
                                  va:112)
                                  [ejbdoclet] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:59)
                                  [ejbdoclet] at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.ja
                                  va:88)
                                  [ejbdoclet] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:59)
                                  [ejbdoclet] at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.ja
                                  va:88)
                                  [ejbdoclet] at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:566
                                  )
                                  [ejbdoclet] at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStr
                                  eam.java:936)
                                  [ejbdoclet] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
                                  66)
                                  [ejbdoclet] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2
                                  36)
                                  [ejbdoclet] at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:
                                  1186)
                                  [ejbdoclet] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
                                  86)
                                  [ejbdoclet] at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1
                                  142)
                                  [ejbdoclet] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
                                  74)
                                  [ejbdoclet] at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.
                                  java:2262)
                                  [ejbdoclet] at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream
                                  .java:519)
                                  [ejbdoclet] at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:
                                  1411)
                                  [ejbdoclet] 1 error
                                  [ejbdoclet] 19 warnings
                                  [ejbdoclet] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
                                  86)
                                  [ejbdoclet] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2
                                  36)
                                  [ejbdoclet] at xdoclet.DocletTask$DocletMain.loadContext(DocletTask.java:603
                                  )
                                  [ejbdoclet] at xdoclet.DocletTask$DocletMain.start(DocletTask.java:529)
                                  [ejbdoclet] at java.lang.reflect.Method.invoke(Native Method)
                                  [ejbdoclet] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java
                                  :193)
                                  [ejbdoclet] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:
                                  95)
                                  [ejbdoclet] at com.sun.tools.javadoc.Main.main(Main.java:233)

                                  BUILD FAILED
                                  file:C:/java/jb-test/build.xml:147: Javadoc returned 1

                                  • 14. Re: Where's the Template ??
                                    schaefera

                                    I suggest that you use at least ant 1.4.1 for JDK 1.4.

                                    Otherwise could you tell me the OS, JDK, ant, XDoclet version.

                                    Thanx - Andy