4 Replies Latest reply on Apr 19, 2004 4:30 AM by mlehradt

    XDoclets in Version 1.2.230 does not work with eclipse 3.0 M

    mlehradt

      Hi,

      I installed JBoss IDE 1.2.230 for a fresh installation of eclipse 3.0 with no other plugins. Unfortunately the Xdoclet support does not work at all. There are no templates listed in Window > Preferences > JBoss IDE > XDoclet > Code Assist > Templates. If I try to display the templates I got an error message "The currently displayed page contains invalid values". Click on OK next click on templates again and the page is empty except the header message "XDoclet Tags available for completition".

      Regards,
      Maik

        • 1. Re: XDoclets in Version 1.2.230 does not work with eclipse 3
          npopov

          Hi all,

          Same here...
          I got an error message "The currently displayed page contains invalid values" once I got to the Template page.


          Maik, did you got it resolved?

          Regards
          Nick

          • 2. Re: XDoclets in Version 1.2.230 does not work with eclipse 3
            rfolkerts

            Hi,

            same here :-(

            I just started Eclipse from c/l and got:

            ---

            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-ejb-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Exception while reading: ejb.home null Attention: Can't add org.jboss.ide.eclipse.xdoclet.assist.model.conditions.Or to Condition org.jboss.ide.eclipse.xdoclet.assist.model.conditions.IsClass
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-java-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-jboss-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-jmx-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-web-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-xdoclet-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-ejb-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Exception while reading: ejb.home null Attention: Can't add org.jboss.ide.eclipse.xdoclet.assist.model.conditions.Or to Condition org.jboss.ide.eclipse.xdoclet.assist.model.conditions.IsClass
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-java-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-jboss-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-jmx-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-web-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Process: jar:file:/usr/opt/eclipse3.0M8/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.230/./xdoclet-xdoclet-module-1.2b3-dev.jar!/META-INF/xtags.xml
            Unhandled event loop exception
            Reason:
            java.lang.NullPointerException
            P
            

            ---

            The Log-File has:
            ---
            !SESSION Apr 17, 2004 15:49:11.935 ---------------------------------------------
            java.version=1.4.2_04
            java.vendor=Sun Microsystems Inc.
            BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
            !ENTRY org.jboss.ide.eclipse.xdoclet.assist 4 0 Apr 17, 2004 15:49:11.936
            !MESSAGE Internal Error
            !STACK 0
            java.io.FileNotFoundException: /resources/additional_values.xml (Datei oder Verzeichnis nicht gefunden)
             at java.io.FileInputStream.open(Native Method)
             at java.io.FileInputStream.<init>(FileInputStream.java:106)
             at java.io.FileInputStream.<init>(FileInputStream.java:66)
             at java.io.FileReader.<init>(FileReader.java:41)
             at org.jboss.ide.eclipse.xdoclet.assist.XDocletAssistPlugin.getXMLPersistenceManager(XDocletAssistPlugin.java:382)
             at org.jboss.ide.eclipse.xdoclet.assist.XDocletAssistPlugin.getXMLDocument(XDocletAssistPlugin.java:344)
             at org.jboss.ide.eclipse.xdoclet.assist.XDocletAssistPlugin.getXMLDocument(XDocletAssistPlugin.java:329)
             at org.jboss.ide.eclipse.xdoclet.assist.XDocletAssistPlugin.addValuesToDocletTree(XDocletAssistPlugin.java:139)
             at org.jboss.ide.eclipse.xdoclet.assist.XDocletAssistPlugin$1.run(XDocletAssistPlugin.java:219)
             at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
            

            ---

            So it seems to be related to the mentioned "additional_values.xml" which is not found?!

            Does anyone have a solution?
            Regards,
            _ralf_

            • 3. Re: XDoclets in Version 1.2.230 does not work with eclipse 3
              rfolkerts

              Hi,

              I just got a bit further; unfortunately, Xdoclet Generation still doesn't work :-(

              I checked out the JBoss-IDE Source Code fom Sourceforge CVS, searched it for additional_values.xml and copied that file to /resources. Then started again. Got another problem with a missing configuration2xdoclet.xsl. Located that in the Source and again copied to /resources. While still there I copied all other .xml and .xsl-Files from the Source Dir to /resources.

              Now, the Xdoclet Page in the Preferences/JBoss works as does the XDoclet Config for the Project. Also the code-Completion for the @ejb-stuff works now.

              Unfortunately, when running "Run XDoclet" on the Project I get a

              BUILD FAILED: /home/ralf/workspace/Tutorial/xdoclet-build.xml:13: taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
              

              Regards,
              _ralf_

              • 4. Re: XDoclets in Version 1.2.230 does not work with eclipse 3
                mlehradt

                There were no resource files in eclipse\workspace\.metadata\.plugins\org.jboss.ide.eclipse.xdoclet.assist. I tried to copy them from a eclipse 2.1 installation. Now the templates are displayed, but code generation still does not work :/