Dear Bruce,
 
Thanks for the reply.
 
I have written my Ant task to support source code generation from XSD, compile, mapping and DDL generation process. But I have difficulty in xdoclet mapping by putting in the javadoc tags, I am using test and error iterative way.  I find that relationships are some how difficult to be mapped and had given me a sleepless night. I think I need more training on the mapping skill.
 
Lastly, i would like to tell you that the tags that you suggested were not supported by castor-doclet. Why?
 
May be I should give you my XSD and can you please advise me on how to map...
 
Cheers,
Ng Keng Yap
 
 
 
 
 
-------Original Message-------
 
Date: Thursday, October 07, 2004 18:53:01
Subject: Re: [castor-user] Xdoclet ends up with NullPointerException
 
Ng Keng Yap wrote:
 
> Dear Bruce,
>
> This email follow up the previous mail.
>
> Additional question:
> I copied the build file from the castor doclet tutorial, what is the
> properties directory for?
>
> Cheers,
> Ng Keng Yap
>
> /-------Original Message-------/
>
> /*Date:*/ Thursday, October 07, 2004 06:00:08
> /*Subject:*/ [castor-user] Xdoclet end up with NullPointerException
>
> Dear Bruce,
>
> I am now trying to test on the feasibility of the XSD castor Xdoclet
> Javadoc tags.
>
> It returned a nullpointerexception...I just wonder what was missing?
>
> What are the pitfalls that should be aware of ? May be it should be
> highlighted in the <castor Live>...
>
>
> Thanks
>
> Cheers,
> Ng Keng Yap
>
> *Console:*
> C:\Documents and Settings\Ng Keng Yap\SMML\conf>ant -buildfile buildDDL.xml
> Buildfile: buildDDL.xml
>
> init:
>
> mapping:
> [javadoc] Generating Javadoc
> [javadoc] Javadoc execution
> [javadoc] Loading source files for package com.smml.castor.bean...
> [javadoc] Constructing Javadoc information...
> [javadoc] 1: configuring the logger
> [javadoc] 1: configuring the tag handler factory
> [javadoc] 1: configuring the type factory
> [javadoc] java.lang.NullPointerException
> [javadoc] at
> java.util.Properties$LineReader.readLine(Properties.java:365)
>
> [javadoc] at java.util.Properties.load(Properties.java:293)
> [javadoc] at
> org.castor.doclet.helper.TypeFactory.configure(TypeFactory.ja
> va:58)
> [javadoc] at org.castor.doclet.ddl.DDL.configure(DDL.java:95)
> [javadoc] at org.castor.doclet.ddl.DDL.start(DDL.java:49)
> [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [javadoc] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
> [javadoc] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
> [javadoc] at java.lang.reflect.Method.invoke(Method.java:585)
> [javadoc] at
> com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java
> :215)
> [javadoc] at
> com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:
> 91)
> [javadoc] at
> com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
> [javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
> [javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
> [javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31)
 
I'm not familiar with the Castor Doclet project, but the exception
you're receiving is clearly coming from there. The last maintainer of
Castor Doclet was Mickael Guessant who is an inactive Castor committer.
Unfortunately it appears that the Castor Doclet project has been
abandoned and does not have an active committer.
 
BTW, if you're trying to generate Java code from an XSD as you state
above, the Castor Doclet will not do this. You said yourself that you
are using the Ant build descriptor from the Castor Doclet project. This
Ant build descriptor is going to execute Castor Doclet, not the Castor
Source Generator.
 
One of my additional goals to getting the XDoclet tags extended to cover
all of Castor XML is to generate DDL from either the classes using more
XDoclet taglets or the mapping descriptor or straight from the database
using MiddleGen. I haven't thought much about this one yet.
 
Bruce
--
perl -e 'print
unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'
 
The Castor Project
 
Apache Geronimo
 
 
 
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
         unsubscribe castor-user
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to