--- Edward Kenworthy <[EMAIL PROTECTED]> wrote:
> 
> OK so I have xdoclet up and running - well until I
> hit this:
> 
> ejbdoclet] Running <entitypk/>
> [ejbdoclet]   Generating PK class for 'MailListEJB'.
> [ejbdoclet] javadoc: In doclet class
> xdoclet.DocletTask$DocletMain,   
> method start has thrown an exception  
> java.lang.reflect.InvocationTargetException
> [ejbdoclet] (TemplateEngine.invokeMethod         776
> ) Invoking method  
> failed: packageOf, line=4 of template file:  
>
jar:file:/usr/local/xdoclet/xdoclet-1.1.2/lib/xdoclet.jar!/xdoclet/ejb/
> 
> entitypk.j
> [ejbdoclet]
> java.lang.reflect.InvocationTargetException:
> [ejbdoclet]
> java.lang.StringIndexOutOfBoundsException: String
> index out  
> of range: -1
> [ejbdoclet]     at
> java.lang.String.substring(String.java:1520)
> [ejbdoclet]     at  
>
xdoclet.tags.PackageTagsHandler.packageOf(PackageTagsHandler.java:141)
> [ejbdoclet]     at
> java.lang.reflect.Method.invoke(Native Method)
> 
> Not very informative :(
> 
> Anyway my ant task looks like this:
> 
>    <target name="ejbdoclet">
> 
>         <taskdef name="ejbdoclet"
> classname="xdoclet.ejb.EjbDocletTask"  
>
classpath="${xdoclet.jar.path};${log4j.jar.path};${ant.jar.path}"
> />
> 
>         <ejbdoclet
>             sourcepath="${src.dir}"
>             destdir="${generated.java.dir}"
>             classpathref="xdoclet.build.path"
>             excludedtags="@version,@author"
>             ejbspec="2.0"
>             force="${xdoclet.force}">
> 
>             <fileset dir="${src.dir}">
>                 <include name="**/*EJB.java" />
>             </fileset>
> 
>             <dataobject/>
>             <remoteinterface/>
>             <localinterface/>
>             <homeinterface/>
>             <localhomeinterface/>
>             <entitypk/>
>             <entitycmp/>
>             <deploymentdescriptor
> destdir="${basedir}/META-INF"/>
> <!--
>          <jboss version="3.0" xmlencoding="UTF-8"  
> typemapping="Hypersonic SQL"
> datasource="java:/DefaultDS"  
> destdir="${build.dir}/ejb/META-INF"/>
> -->
>        </ejbdoclet>
>     </target>
> 
> And the header to my bean like this:
> 
>      /**
>       * This is an Mail List  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="MailList"
>       *             type="CMP"
>       *             jndi-name="MailList"
>       *             primkey-field="email"
>       *             reentrant="false"
>       * @ejb:finder signature="Collection findAll()"
>       *             unchecked="true"
>       * @ejb:interface remote-class="MailList"
>       */
> 
> email is a public string.
> 
> Help again please ?

No problem. 
How do you specified getter method for email?
Did you used fully qualified class name?
What tags are on email getter method?
( BTW, judging from .j ending of template file you are
using 1.1.2 -> 1.2beat1 is out )

regards,

=====
Konstantin Priblouda ( ko5tik )    Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/


-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to