Hi Jens See my answers below
<aslak/> > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Jens > Kumpfmueller > Sent: 28. oktober 2001 17:08 > To: [EMAIL PROTECTED] > Subject: [Xdoclet-user] newbie trouble with PKclass > > > hi *, > > when using xdoclet i get this error: What version are you using? > > ------ > [ejbdoclet] Loading source file > /home/kumpf/work/tc2/sources/de/inmediasp/services/IdBean.java... > [ejbdoclet] Constructing Javadoc information... > [ejbdoclet] > /home/kumpf/work/tc2/sources/de/inmediasp/services/IdBean.java:38: > cannot resolve symbol Your IdBean code refers to a class (IdPK) that Javadoc can't find. Javadoc always complains about this, but it doesn't stop XDoclet from doing its job. If you want to get rid of these messages, you must have the XDoclet output directory on the classpath when running XDoclet. If you run XDoclet for the first time (i.e. IdPK doesn't exist yet), you'll still get the warning. > [ejbdoclet] symbol : class IdPK > [ejbdoclet] location: class de.inmediasp.services.IdBean > [ejbdoclet] public IdPK ejbCreate(IdPK key) throws > RemoteException,CreateException > ------ > > this told me that there is no IdPK class, but this should be generated > by xdoclet. In case IdPK isn't generated (you didn't say whether it was) you should add an <entitypk/> subtarget in your ant file. > in IdBean i wrote: > > ------ > * @ejb:bean name="services.Id" > display-name="IdBean" > jndi-name="de.inmediasp.services.Id" > view-type="remote" > type="CMP" > reentrant="False" > cmp-version="1.x" > primkey-field="idName" > * @ejb:finder signature="Collection findAll()" role-name="all" > * @ejb:pk generate="true" > class="de.inmediasp.services.IdPK" > * @ejb:permission role-name="all" > * @ejb:data-object container="true" > setdata="true" > equals="true" > * @ejb:interface generate="remote" > remote-class="de.inmediasp.services.Id" > * @ejb:home generate="remote" > remote-class="de.inmediasp.services.IdHome" > ------ > > > thx in advice > > jens > > ps: xdoclet gives another error msg: > It looks to me like the error message comes from log4j, not XDoclet. It seems your log4j library doesn't have that method. According to the log4j javadoc, this method was introduced in log4j 1.0. Are you using an older version? > ---- > [ejbdoclet] java.lang.NoSuchMethodError: > org.apache.log4j.Category.getInstance(Ljava/lang/String;)Lorg/apac > he/log4j/Category; > [ejbdoclet] at > xdoclet.util.TemplateEngine.getCategory(TemplateEngine.java:678) > [ejbdoclet] at xdoclet.SubTask.init(SubTask.java:382) > [ejbdoclet] 1 error > [ejbdoclet] at > xdoclet.ejb.AbstractEjbSubTask.init(AbstractEjbSubTask.java:555) > [ejbdoclet] at > xdoclet.DocletTask$DocletMain.start(DocletTask.java:283) > [ejbdoclet] 4 warnings > [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [ejbdoclet] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > pl.java:42) > [ejbdoclet] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > cessorImpl.java:28) > [ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:313) > [ejbdoclet] at > com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:196) > [ejbdoclet] at > com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95) > [ejbdoclet] at > com.sun.tools.javadoc.Start.parseAndExecute(Start.java:289) > [ejbdoclet] at com.sun.tools.javadoc.Start.begin(Start.java:114) > [ejbdoclet] at com.sun.tools.javadoc.Main.execute(Main.java:44) > [ejbdoclet] at com.sun.tools.javadoc.Main.main(Main.java:34) > ---- > > how could this be solved? > > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
