On Jun 16, 2004, at 10:22 AM, Kyle Korndoerfer wrote:
Thanks for the suggestion, but unfortunately the FooBase.java class is
already abstract, so that doesn't seem to be the solution.

Any other ideas?

It looks like NexusBase is causing an issue. xjavadoc, the parser under XDoclet, has some oddities - maybe you have some odd syntax that it is not happy with?


At this point you need to bring this issue over to the xdoclet-user list.

        Erik



--- Erik Hatcher <[EMAIL PROTECTED]> wrote:
On Jun 15, 2004, at 3:56 PM, Kyle Korndoerfer wrote:
Sorry if this seems like a newbie question...

(We are using Ant v1.6.1, XDoclet v1.2.1, & Struts v1.1)

We are using the Webdoclet task from XDoclet to build our
struts-config.xml file, but are having some problems using a
FileSet to
select the files that contain XDoclet tags for processing.

Brief overview...

- Several classes named ...\form\*Form.java
- Several classes named ...\action\*Action.java that are all
children
of ...\Action\FooBase.java
- Since FooBase.java is just a base class (and therfore doesn't
contain
any XDoclet tags) our FileSet doesn't include it.
- When we run the webdoclet task, we get a lexical error for the
FooBase.java file and the resulting struts-config.xml file is
missing
data from other files

XDoclet needs to see the full picture of the base classes you extend,

so you need to include it in your fileset (or the .class in your
taskdef classpath).   You probably should make sure it is abstract to

avoid XDoclet interpreting it as a real Struts action also.

        Erik



========== BEGIN: build.xml snippet ====================

<webdoclet force="true"
        destdir="${meta-data.home}"
        mergedir="${meta-data.home}">
    <fileset dir="${src.home}">
        <include name="**/*Form.java" />
        <include name="**/*Action.java" />
    </fileset>
                        
    <!-- build the deployment descriptor -->
    <deploymentdescriptor servletspec="2.3"
        destDir="${build.home}/WEB-INF"
        displayname="${webapp.name}"
        validateXML="true" />
                        
    <!-- build the Struts Config file -->
    <strutsconfigxml version="1.1"
        destDir="${build.home}/WEB-INF/conf"
        validateXML="true" />

</webdoclet>

========== END: build.xml snippet ====================

========== BEGIN: Ant output ====================

webdoclet:
[webdoclet] (XDocletMain.start                   47  ) Running
<deploymentdescriptor/>
[webdoclet] Generating web.xml.
[webdoclet] Error parsing File
C:\<...snip...>\action\NexusBase.java:Lexical error:
xjavadoc.TokenMgrError: Lexical error at line 191, column 17.
Encountered: <EOF> after : ""
[webdoclet] (XDocletMain.start                   47  ) Running
<strutsconfigxml/>
[webdoclet] (TemplateSubTask.engineStarted       794 ) Generating
output 'struts-config.xml' using template file
'jar:file:C:\<...snip...>\lib\XDoclet-v1.2.1\xdoclet-apache-module
-1.2.1.jar!/xdoclet/modules/apache/struts/resources/
struts_config_xml.xdt'.

========== END: Ant output ====================

It looks like the FooBase.java file is being included because it is
the
parent of all the other Action classes (...\action\*Action.java).
If
this is the case, can it be prevented?

If it isn't the case, what IS happening and how can we prevent it?

Thanks in advance for any help that can be given!

- Kyle


__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





__________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to