From: Michael D. <ho...@mi...> - 2002-05-07 20:40:41
|
Hi, I have printed out my complete classpath: echo $CLASSPATH :/usr/local/java/lib/jakarta-servletapi-4/lib/servlet.jar: /usr/local/java/catalina/server/lib/catalina.jar: /usr/local/java/lib/webapp/tomcat-webapp.jar: /usr/local/java/lib/mm_mysql-2_0/mm_mysql-2_0.jar: /usr/local/java/lib/jakarta-log4j-1.2rc1/dist/lib/log4j-1.2rc1.jar: /usr/local/java/lib/jakarta-struts-1.0.2/lib/struts.jar: =3D=3D=3D=3D=3D=3D=3D=3D XDOCLET | ANT | J2EE =3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /usr/local/java/lib/xdoclet/lib/xdoclet.jar: /usr/local/java/j2sdk1.4.0/lib/tools.jar:/usr/local/java/jakarta-ant-1.4.= 1/l ib/ant.jar: /usr/local/java/jakarta-ant-1.4.1/lib/xml.jar: /usr/local/java/j2sdkee1.3.1/lib/j2ee.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D I=B4ve checked the j2ee classpath and it is 100% correct. Is there anything missing in the classpath for the correct use of xdoclet= s? Thanks very much Michael ----- Original Message ----- From: "Ara Abrahamian" <ar...@ya...> To: "'Michael Delamere'" <ho...@mi...>; <xdo...@li...> Sent: Tuesday, May 07, 2002 10:29 PM Subject: RE: [Xdoclet-user] problem with xdoclet example > You're right. My next guess is wrong classpath. Are you sure xdoclet ca= n > find javax.ejb? > > Ara. > > > -----Original Message----- > > From: xdo...@li... [mailto:xdoclet-user- > > ad...@li...] On Behalf Of Michael Delamere > > Sent: Wednesday, May 08, 2002 12:51 AM > > To: xdo...@li...; Ara Abrahamian > > Subject: Re: [Xdoclet-user] problem with xdoclet example > > > > Hi, > > > > thanks for replying. I don=B4t think that is the problem though beca= use > > when > > I add some dummy lines to provoke an error, one comes up. So it must > be > > reading the Bean.java. > > > > Am I maybe doing something wrong: > > > > my Bean.java: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > /** > > * This is an account bean. It is an example of how to use the > > * EJBDoclet tags. > > * > > * @see Customer Accounts are owned by customers, and a customer can > > * have many accounts. > > * > > * @ejb:bean name=3D"bank/Account" > > * type=3D"CMP" > > * jndi-name=3D"ejb/bank/Account" > > * primkey-field=3D"id" > > * @ejb:finder signature=3D"Collection findAll()" > > * unchecked=3D"true" > > * @ejb:interface remote-class=3D"test.interfaces.Account" > > */ > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > my build.xml > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > <project name=3D"MyProject" default=3D"ejbdoclet" basedir=3D"."> > > > > <target name=3D"prepare"> > > <property name=3D"java.dir" value=3D"." /> > > <property name=3D"build.dir" value=3D"build" /> > > <property name=3D"generated.java.dir" value=3D"src" /> > > > > <mkdir dir=3D"${build.dir}"/> > > <mkdir dir=3D"${build.dir}/ejb/META-INF"/> > > <mkdir dir=3D"test/ejb"/> > > <mkdir dir=3D"test/interfaces"/> > > <mkdir dir=3D"${generated.java.dir}"/> > > </target> > > > > <target name=3D"ejbdoclet" depends=3D"prepare"> > > > > <taskdef name=3D"ejbdoclet" classname=3D"xdoclet.ejb.EjbDocletTask" > > classpath=3D"${xdoclet.jar.path};${log4j.jar.path};${ant.jar.path}" /= > > > > > <ejbdoclet > > sourcepath=3D"${java.dir}" > > destdir=3D"${generated.java.dir}" > > excludedtags=3D"@version,@author" > > ejbspec=3D"2.0" > > force=3D"${xdoclet.force}"> > > > > <fileset dir=3D"${java.dir}"> > > <include name=3D"Bean.java" /> > > </fileset> > > > > <dataobject/> > > <remoteinterface/> > > <localinterface/> > > <homeinterface/> > > <localhomeinterface/> > > <entitypk/> > > <entitycmp/> > > <deploymentdescriptor destdir=3D"${build.dir}/ejb/META-INF"/> > > > > <jboss version=3D"3.0" xmlencoding=3D"UTF-8" typemapping=3D"mySQL" > > datasource=3D"java:/ejbGuestbookDS" > destdir=3D"${build.dir}/ejb/META-INF"/> > > > > </ejbdoclet> > > > > </target> > > <target name=3D"compile" depends=3D"ejbdoclet"> > > <!-- Compile EJBs --> > > <javac srcdir=3D"${java.dir};${generated.java.dir}" > > destdir=3D"${build.dir}/ejb" > > includes=3D"test/ejb/*.java,test/interfaces/*.java" > > /> > > </target> > > > > </project> > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > I really would appreciate your help! What am I missing? Am I maybe > not > > specifying enough? > > > > Thanks, > > > > Michael > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > From: "Ara Abrahamian" <ar...@ya...> > > To: "'Michael Delamere'" <ho...@mi...>; > > <xdo...@li...> > > Sent: Tuesday, May 07, 2002 10:11 PM > > Subject: RE: [Xdoclet-user] problem with xdoclet example > > > > > > > The fileset is probably empty (pointing to wrong directory), so > xdoclet > > > doesn't have anything to process. > > > > > > Ara. > > > > > > > -----Original Message----- > > > > From: xdo...@li... > [mailto:xdoclet-user- > > > > ad...@li...] On Behalf Of Michael Delamere > > > > Sent: Wednesday, May 08, 2002 12:11 AM > > > > To: xdo...@li... > > > > Subject: [Xdoclet-user] problem with xdoclet example > > > > > > > > Hi, > > > > > > > > I=B4m new to xdoclet and could do with your help. So far I have > > > attempted > > > > to > > > > get the exmaples working that are available at the xdoclet site. > > > > Unfortunately I=B4m not having much luck at the moment although I= =B4ve > > > > followed > > > > all the instructions available on the site. > > > > > > > > This is the error message I get when setting classpathref to: > > > > classpathref=3D"${build.dir}" > > > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > > > Buildfile: build.xml > > > > > > > > prepare: > > > > > > > > ejbdoclet: > > > > > > > > BUILD FAILED > > > > > > > > /home/mdelamere/public_html/guestbook/build.xml:25: Reference > build > > > not > > > > found. > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > > > > > > > When I take out the classparthref attribute completely I get > "Build > > > > successful" but nothing has been created! > > > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > Buildfile: build.xml > > > > > > > > prepare: > > > > > > > > ejbdoclet: > > > > [ejbdoclet] Generating Javadoc > > > > [ejbdoclet] Javadoc execution > > > > [ejbdoclet] Loading source file > > > > /home/mdelamere/public_html/test/Bean.java... > > > > [ejbdoclet] Constructing Javadoc information... > > > > [ejbdoclet] Running <homeInterface/> > > > > [ejbdoclet] Running <localHomeInterface/> > > > > [ejbdoclet] Running <remoteInterface/> > > > > [ejbdoclet] Running <localInterface/> > > > > [ejbdoclet] Running <entitypk/> > > > > [ejbdoclet] Running <dataobject/> > > > > [ejbdoclet] Running <entitycmp/> > > > > [ejbdoclet] Running <deploymentDescriptor/> > > > > [ejbdoclet] Running <jboss/> > > > > > > > > BUILD SUCCESSFUL > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > > > What could I doing wrong?? This is on linux by the way. > > > > Any help would be appreciated > > > > > > > > Thanks, > > > > > > > > Michael > > > > > > > > > > > > _______________________________________________________________ > > > > > > > > Have big pipes? SourceForge.net is looking for download mirrors. > We > > > supply > > > > the hardware. You get the recognition. Email Us: > > > ban...@so... > > > > _______________________________________________ > > > > Xdoclet-user mailing list > > > > Xdo...@li... > > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We > supply > > the hardware. You get the recognition. Email Us: > ban...@so... > > _______________________________________________ > > Xdoclet-user mailing list > > Xdo...@li... > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We sup= ply > the hardware. You get the recognition. Email Us: bandwidth@sourceforge.= net > _______________________________________________ > Xdoclet-user mailing list > Xdo...@li... > https://lists.sourceforge.net/lists/listinfo/xdoclet-user |