db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <to...@first.fhg.de>
Subject Re: Problems getting started with xdoclet
Date Thu, 11 Nov 2004 15:57:26 GMT
Gelhar, Wallace Joseph wrote:

>I am new to using xdoclet to generate my repository files and am having
>some trouble.  I've tried to follow the docs but am getting the
>following error:
>
>repository-files:
>The class "repositor" occurs in more than one fileset. That's illegal.
>java.lang.IllegalArgumentException: qualifiedName can't start with a
>dot! .nb
>        at
>xjavadoc.AbstractClass.setQualifiedName(AbstractClass.java:655)
>        at xjavadoc.UnknownClass.<init>(UnknownClass.java:34)
>        at xjavadoc.XJavaDoc.getXClass(XJavaDoc.java:456)
>        at xjavadoc.XJavaDoc.getOuterSourceClasses(XJavaDoc.java:802)
>        at xjavadoc.XJavaDoc.getSourceClasses(XJavaDoc.java:355)
>        at
>xdoclet.GenerationManager.isGenerationNeeded(GenerationManager.java:190)
>        at
>xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:615)
>        at
>xdoclet.modules.ojb.OjbSubTask.startProcess(OjbSubTask.java:106)
>        at xdoclet.modules.ojb.OjbSubTask.execute(OjbSubTask.java:90)
>        at xdoclet.XDocletMain.start(XDocletMain.java:48)
>        at xdoclet.DocletTask.start(DocletTask.java:462)
>        at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
>        at
>org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
>        at org.apache.tools.ant.Task.perform(Task.java:364)
>        at org.apache.tools.ant.Target.execute(Target.java:301)
>        at org.apache.tools.ant.Target.performTasks(Target.java:328)
>        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
>        at
>org.apache.tools.ant.Project.executeTargets(Project.java:1063)
>        at
>org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:1
>78)
>        at
>org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:2
>52)
>        at
>org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
>WEB-INF\build.xml [13] Unexpected error
>BUILD FAILED (total time: 5 seconds)
>
>Below is the build file and file structure I am trying to use.  Any
>ideas?
>
><project-root>\classes\(package)\(xdoclet markup files).java
><project-root>\build\
><project-root>\lib\(jar.files)
><project-root>\build.xml
>
><?xml version="1.0" encoding="UTF-8"?>
><project basedir="." default="repository-files" name="facmgt">
>    <path id="build-classpath">
>        <fileset dir="lib">
>            <include name="**/*.jar"/>
>        </fileset>
>    </path>
>    
>    <target name="repository-files">
>        <taskdef name="ojbdoclet"
>                 classname="xdoclet.modules.ojb.OjbDocletTask"
>                 classpathref="build-classpath" />
>        <ojbdoclet destdir="./build">
>            <fileset dir="./classes"/>
>            <ojbrepository destinationFile="repository_user.xml"/>
>            <torqueschema databaseName="test"
>destinationFile="project-schema.xml"/>
>        </ojbdoclet>
>    </target>
>    
></project>
>  
>
Can it be that you're using NetBeans ? XDoclet complains about a file 
ending on .nb, which it processes.
Try changing the fileset within the ojbdoclet task call so that it only 
specifies .java files, e.g.:

<fileset dir="./classes">
  <include name="**/*.java"/>
</fileset>

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message