3 Replies Latest reply on Jan 12, 2004 10:43 AM by highland

    Unknown jboss version error ?

    highland Newbie

      Hello
      i try to compile simple ejb module, but i receive error:

      [ejbdoclet] (XDocletMain.start 53 ) Running XDoclet failed.
      [ejbdoclet] (XDocletMain.start 54 ) <<Unknown jboss version number for cmp2 2.4>>
      [ejbdoclet] /opt/jboss/server/default/deploy/myapp/build.xml:52: XDoclet failed.

      what could it be ?
      Thanx

        • 1. Re: Unknown jboss version error ?
          Darran Lofthouse Master

          Inside your build.xml file there should be a ejbdoclet element that contains a jboss element.

          One of the attributes for the jboss element should be version, the error looks like this is set to a version that is not supported.

          Look at the XDoclet documentation for supported values.

          If you still can not resolve your problem please post your build.xml or at least the section that calls XDoclet.

          • 2. Re: Unknown jboss version error ?
            highland Newbie

             

            "highland" wrote:
            Hello
            i still can not find error. Here is my build.xml file:

            <?xml version="1.0"?>
            <project name="Wypozyczalnia" default="ejb" basedir=".">
            <property name="web.dir" value="${basedir}/web"/>
            <property name="dist.dir" value="${basedir}/dist"/>
            <property name="src.dir" value="${basedir}/src"/>
            <property name="gen-src.dir" value="${dist.dir}/gen-src"/>
            <property name="xdoclet.lib.dir" value="/opt/xdoclet/lib"/>
            <property name="merge.dir" value="${src.dir}/struts-merge"/>
            <property name="classes.dir" value="${dist.dir}/classes"/>
            <property name="dtd.dir" value="/opt/jboss/docs/dtd"/>

            <!-- Classpath -->

            <path id="test.class.path">
            <fileset dir="${xdoclet.lib.dir}">
            <include name="*.jar"/>
            </fileset>
            </path>

            <!-- Init -->

            <target name="init">
            <taskdef
            name="webdoclet"
            classname="xdoclet.modules.web.WebDocletTask"
            classpathref="test.class.path"
            />
            <taskdef
            name="ejbdoclet"
            classname="xdoclet.modules.ejb.EjbDocletTask"
            classpathref="test.class.path"
            />
            </target>

            <target name="prepare" depends="init">
            <mkdir dir="${classes.dir}"/>
            </target>

            <!--EJB -->

            <target name="ejb" depends="prepare">
            <ejbdoclet
            destdir="${gen-src.dir}"
            >
            <fileset dir="${src.dir}">
            <include name="**/*.java"/>
            </fileset>
            <packageSubstitution packages="ejb" substituteWith="interfaces"/>
            <remoteinterface/>
            <homeinterface/>
            <localinterface/>
            <entitycmp/>
            <entitypk/>
            <session/>
            <localhomeinterface/>
            <deploymentdescriptor destdir="${dist.dir}/ejb/META-INF"/>
            <jboss destdir="${dist.dir}/ejb/META-INF"/>
            <strutsform>
            <packageSubstitution packages="ejb" substituteWith="struts.form"/>
            </strutsform>
            </ejbdoclet>
            <copy todir="${classes.dir}">
            <fileset dir="${src.dir}">
            <include name="**/*.properties"/>
            </fileset>
            </copy>
            <javac destdir="${classes.dir}"
            classpathref="test.class.path">
            <src path="${src.dir}"/>
            <src path="${gen-src.dir}"/>
            </javac>
            <ejbjar srcdir="${classes.dir}"
            descriptordir="${dist.dir}/ejb/META-INF"
            destdir="${dist.dir}"
            basejarname="generic"
            >
            <dtd publicId ="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
            location="${dtd.dir}/ejb-jar_2_0.dtd"/>
            <exclude name="**/jboss.xml"/>
            <exclude name="**/jaws.xml"/>
            <support dir ="${classes.dir}" >
            <include name="**/ejb/*.class"/>
            </support>
            <jboss destdir="${dist.dir}"/>
            </ejbjar>
            </target>
            </project>

            Thanx for any help


            • 3. Re: Unknown jboss version error ?
              highland Newbie

              OK. thanx it works:)
              i set version=3.0 like you said and it works :)

              Thanx