This content has been marked as final.
Show 3 replies
-
1. Re: Unknown jboss version error ?
darranl Jan 12, 2004 6:11 AM (in response to highland)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 Jan 12, 2004 9:47 AM (in response to highland)"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 Jan 12, 2004 10:43 AM (in response to highland)OK. thanx it works:)
i set version=3.0 like you said and it works :)
Thanx