Monkeyden wrote:
> Do you have a file, in the directory to be processed, with a leading
> dot in the name?
>
> qualifiedName can't start with a dot! *.resellerChecker.jav
> *
Thanks for the reply. I have found the problem. Yeah the file was there,
but the actual problem was that I was using the package directories in
dir attribute for fileset tag. Now, I have removed those directories
from the dir attribute and added the same to the incude tag.
Incase someone might find it useful,
The old one was
<fileset dir="${src}/tools/CustomerChecker/frontend/">
<include name="**/customerChecker.java" />
</fileset>
The new & correct one is
<fileset dir="${src}">
<include
name="**/tools/CustomerChecker/frontend/customerChecker.java" />
</fileset>
Regards,
Usman.
>
>
> On 8/1/06, *Usman Riaz* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Gwyn Evans wrote:
>
> >Can't be sure, but one typical error is not having all the classes
> >needed by the servlet (and whatever it extends) in the XDoclet
> >classpath.
> >
> >/Gwyn
> >
> >
> Thanks for the reply Gwyn, appreciated! I just noticed that if in
> place
> an incorrect filename (a non existent java file) for the fileset
> tag like
>
> <fileset dir="${src}/tools/CustomerChecker/frontend/">
> <include name="**/some_non_existant_file.java" />
> </fileset>
>
> I dont get any error, looks like this file is not searched for & a
> web.xml is generated as before.
>
> And if I remove this include tag altogether like
>
> <fileset dir="${src}/tools/CustomerChecker/frontend/">
> </fileset>
>
> Then Xdoclet engine throws (in the frontend directory, there are
> ONLY 2
> java files, the other java fils is just a helper class). The throw
> exceptions are
>
> [webdoclet] (XDocletMain.start 47 ) Running
> <deploymentdescriptor/>
> [webdoclet] Generating web.xml .
> [webdoclet] (TemplateEngine.invokeMethod 547 ) Invoking method
> failed: xdoclet.tagshandler.ClassTagsHandler.forAllClasses, line=36 of
> template file:
> jar:file:/home/usman/customerChecker/scripts/lib/xdoclet-
> web-module-1.2.3.jar!/xdoclet/modules/web/resources/web_xml.xdt
> [webdoclet] java.lang.reflect.InvocationTargetException
> [webdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [webdoclet] at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [webdoclet] at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [webdoclet] at java.lang.reflect.Method.invoke (Method.java:324)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:641)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:540)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:965)
> [webdoclet] at
> xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:932)
> [webdoclet] at
> xdoclet.template.TemplateEngine.handleTag (TemplateEngine.java:472)
> [webdoclet] at
> xdoclet.template.TemplateEngine.generate(TemplateEngine.java:348)
> [webdoclet] at
> xdoclet.XDocletTagSupport.generate(XDocletTagSupport.java:742)
> [webdoclet] at
>
> xdoclet.tagshandler.ConfigTagsHandler.ifConfigParamGreaterOrEquals(ConfigTagsHandler.java:297)
> [webdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [webdoclet] at
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> [webdoclet] at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [webdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:641)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:540)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invokeBlockMethod
> (TemplateEngine.java:965)
> [webdoclet] at
> xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:932)
> [webdoclet] at
> xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:472)
> [webdoclet] at
> xdoclet.template.TemplateEngine.generate(TemplateEngine.java:348)
> [webdoclet] at
> xdoclet.template.TemplateEngine.start(TemplateEngine.java:415)
> [webdoclet] at
> xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java :562)
> [webdoclet] at
> xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:618)
> [webdoclet] at
> xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:599)
> [webdoclet] at xdoclet.XmlSubTask.startProcess
> (XmlSubTask.java:227)
> [webdoclet] at
> xdoclet.modules.web.WebXmlSubTask.execute(WebXmlSubTask.java:390)
> [webdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
> [webdoclet] at xdoclet.DocletTask.start (DocletTask.java:468)
> [webdoclet] at
> xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)
> [webdoclet] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [webdoclet] at org.apache.tools.ant.Task.perform (Task.java:364)
> [webdoclet] at
> org.apache.tools.ant.Target.execute(Target.java:341)
> [webdoclet] at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> [webdoclet] at
> org.apache.tools.ant.Project.executeSortedTargets (Project.java:1216)
> [webdoclet] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> [webdoclet] at
>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
> [webdoclet] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [webdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:668)
> [webdoclet] at org.apache.tools.ant.Main.startAnt(Main.java:187)
> [webdoclet] at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> [webdoclet] at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> [webdoclet] Caused by: java.lang.IllegalArgumentException:
> qualifiedName
> can't start with a dot! .resellerChecker.jav
> [webdoclet] at
> xjavadoc.AbstractClass.setQualifiedName(AbstractClass.java:655)
> [webdoclet] at xjavadoc.UnknownClass.<init>(UnknownClass.java:34)
> [webdoclet] at xjavadoc.XJavaDoc.getXClass(XJavaDoc.java:424)
> [webdoclet] at
> xjavadoc.XJavaDoc.getOuterSourceClasses(XJavaDoc.java:760)
> [webdoclet] at
> xjavadoc.XJavaDoc.getSourceClasses(XJavaDoc.java:323)
> [webdoclet] at
>
> xdoclet.tagshandler.AbstractProgramElementTagsHandler.getAllClasses(AbstractProgramElementTagsHandler.java:95)
> [webdoclet] at
>
> xdoclet.tagshandler.ClassTagsHandler.forAllClasses(ClassTagsHandler.java:339)
> [webdoclet] ... 43 more
> [webdoclet] (XDocletMain.start 53 ) Running XDoclet
> failed.
> [webdoclet] (XDocletMain.start 54 ) <<Running
> XDoclet
> failed.: xdoclet.template.TemplateException : Invoking method in class
> xdoclet.tagshandler.ClassTagsHandler failed: forAllClasses, line=36 of
> template file:
>
> jar:file:/home/usman/customerChecker/scripts/lib/xdoclet-web-module-1.2.3.jar!/xdoclet/modules/web/resources/web_xml.xdt
> ,
> exception: null>>
> [webdoclet] xdoclet.template.TemplateException: Invoking method in
> class
> xdoclet.tagshandler.ClassTagsHandler failed: forAllClasses, line=36 of
> template file:
> jar:file:/home/usman/customerChecker/scripts/lib/xdoclet-
> web-module-1.2.3.jar!/xdoclet/modules/web/resources/web_xml.xdt,
> exception: null
>
> <snip>
>
>
> May be this might give you are better idea what might be wrong.
>
> Thanks for your time,
> Regards,
> Usman.
>
>
>
> >On 01/08/06, Usman Riaz <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >
> >>Hi*!
> >> I am trying to use Webdoclet for my webapplication to
> generate
> >>'web.xml' and 'sun-web.xml'. Here is how the task for Webdoclet
> looks
> >>like in my build.xml file for the project...
> >>
> >><target name="gen-web">
> >> <taskdef name="webdoclet"
> >> classname="xdoclet.modules.web.WebDocletTask"
> >> classpathref="xdoclet.lib.path"/>
> >>
> >> <!-- Generate servlet and JSP Tag "stuff" -->
> >> <webdoclet destdir="${web.deployment.dir}" force = "true" >
> >> <fileset dir="${src}/tools/CustomerChecker/frontend/">
> >> <include name="**/customerChecker.java" />
> >> </fileset>
> >>
> >> <deploymentdescriptor
> >> destdir="${web.deployment.dir}"
> >> displayname="customerChecker"
> >> sessiontimeout="30"
> >> distributable="false" />
> >> </webdoclet>
> >></target>
> >>
> >>And the customerChecker.java (a servelet) file contains XDoclet
> tags like...
> >>
> >>/**
> >> *
> >> * @web:servlet
> >> * name="customerChecker"
> >> * @web:servlet-mapping
> >> * url-pattern="/*"
> >> *
> >> */
> >>
> >>The problem is that xdoclet ignores the property values
> altogether in
> >>the above java file. The web.xml file generated just contains
> >>'sessiontimeout' and 'displayname' that are defined in the
> build.xml in
> >><deploymentdescriptor> tag, & none of those properties defined
> in java
> >>file as XDoclet tags are used. Anyone knows what am I doing
> wrong here???
> >>
> >>Thanks for your time,
> >>Regards,
> >>Usman.
> >>
> >>
> >
> >-------------------------------------------------------------------------
> >Take Surveys. Earn Cash. Influence the Future of IT
> >Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> >opinions on IT & business topics through brief surveys -- and
> earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> >_______________________________________________
> >xdoclet-user mailing list
> > [email protected]
> <mailto:[email protected]>
> >https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
> >
>
>
> -------------------------------------------------------------------------
>
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>------------------------------------------------------------------------
>
>_______________________________________________
>xdoclet-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user